Re: net: thunder: change q_len's type to handle max ring size

2018-02-09 Thread Dean Nelson
On 02/08/2018 10:29 PM, Sunil Kovvuri wrote: On Fri, Feb 9, 2018 at 3:27 AM, Dean Nelson wrote: On 02/08/2018 02:34 PM, David Miller wrote: From: Dean Nelson Date: The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries per.

Re: net: thunder: change q_len's type to handle max ring size

2018-02-09 Thread Dean Nelson
On 02/08/2018 10:29 PM, Sunil Kovvuri wrote: On Fri, Feb 9, 2018 at 3:27 AM, Dean Nelson wrote: On 02/08/2018 02:34 PM, David Miller wrote: From: Dean Nelson Date: The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries per. ... Another way to solve this could have

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread Sunil Kovvuri
On Fri, Feb 9, 2018 at 3:27 AM, Dean Nelson wrote: > On 02/08/2018 02:34 PM, David Miller wrote: >> >> From: Dean Nelson >> Date: >> >>> The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 >>> entries per. >>> The number of entires are

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread Sunil Kovvuri
On Fri, Feb 9, 2018 at 3:27 AM, Dean Nelson wrote: > On 02/08/2018 02:34 PM, David Miller wrote: >> >> From: Dean Nelson >> Date: >> >>> The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 >>> entries per. >>> The number of entires are stored in the q_len member of struct >>>

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread Dean Nelson
On 02/08/2018 02:34 PM, David Miller wrote: From: Dean Nelson Date: The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries per. The number of entires are stored in the q_len member of struct q_desc_mem. The problem is that q_len being a u16, results in

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread Dean Nelson
On 02/08/2018 02:34 PM, David Miller wrote: From: Dean Nelson Date: The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries per. The number of entires are stored in the q_len member of struct q_desc_mem. The problem is that q_len being a u16, results in 65536 becoming 0.

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread David Miller
From: Dean Nelson Date: > The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries > per. > The number of entires are stored in the q_len member of struct q_desc_mem. The > problem is that q_len being a u16, results in 65536 becoming 0. > > In getting

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread David Miller
From: Dean Nelson Date: > The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries > per. > The number of entires are stored in the q_len member of struct q_desc_mem. The > problem is that q_len being a u16, results in 65536 becoming 0. > > In getting pointers to