On 6/29/2018 6:05 AM, David Miller wrote: > From: Amritha Nambiar <amritha.namb...@intel.com> > Date: Wed, 27 Jun 2018 15:31:28 -0700 > >> @@ -1681,17 +1681,25 @@ static inline int sk_receive_skb(struct sock *sk, >> struct sk_buff *skb, >> >> static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) >> { >> + /* sk_tx_queue_mapping accept only upto a 16-bit value */ >> + if (WARN_ON_ONCE((unsigned short)tx_queue > USHRT_MAX)) >> + return; >> sk->sk_tx_queue_mapping = tx_queue; >> } >> >> +#define NO_QUEUE_MAPPING USHRT_MAX > > I think you need to check ">= USHRT_MAX" since USHRT_MAX is how you > indicate no queue. > Agree, I'll fix this.
- [net-next PATCH v5 0/7] Symmetric queue selection using X... Amritha Nambiar
- [net-next PATCH v5 1/7] net: Refactor XPS for CPUs a... Amritha Nambiar
- Re: [net-next PATCH v5 1/7] net: Refactor XPS fo... David Miller
- Re: [net-next PATCH v5 1/7] net: Refactor XP... Nambiar, Amritha
- [net-next PATCH v5 2/7] net: Use static_key for XPS ... Amritha Nambiar
- [net-next PATCH v5 5/7] net: Enable Tx queue selecti... Amritha Nambiar
- [net-next PATCH v5 6/7] net-sysfs: Add interface for... Amritha Nambiar
- [net-next PATCH v5 3/7] net: sock: Change tx_queue_m... Amritha Nambiar
- Re: [net-next PATCH v5 3/7] net: sock: Change tx... David Miller
- Re: [net-next PATCH v5 3/7] net: sock: Chang... Nambiar, Amritha
- [net-next PATCH v5 4/7] net: Record receive queue nu... Amritha Nambiar
- Re: [net-next PATCH v5 4/7] net: Record receive ... David Miller
- Re: [net-next PATCH v5 4/7] net: Record rece... Nambiar, Amritha
- [net-next PATCH v5 7/7] Documentation: Add explanati... Amritha Nambiar