[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230524075402.3a0e36bc@hermes.local>
Date: Wed, 24 May 2023 07:54:02 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Shradha Gupta <shradhagupta@...ux.microsoft.com>
Cc: linux-kernel@...r.kernel.org, linux-hyperv@...r.kernel.org,
netdev@...r.kernel.org, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, "K. Y. Srinivasan"
<kys@...rosoft.com>, Haiyang Zhang <haiyangz@...rosoft.com>, Wei Liu
<wei.liu@...nel.org>, Dexuan Cui <decui@...rosoft.com>, Long Li
<longli@...rosoft.com>, Michael Kelley <mikelley@...rosoft.com>, "David S.
Miller" <davem@...emloft.net>, Steen Hegelund
<steen.hegelund@...rochip.com>, Simon Horman <simon.horman@...igine.com>
Subject: Re: [PATCH v2] hv_netvsc: Allocate rx indirection table size
dynamically
On Wed, 24 May 2023 02:57:10 -0700
Shradha Gupta <shradhagupta@...ux.microsoft.com> wrote:
> @@ -1034,7 +1035,9 @@ struct net_device_context {
>
> u32 tx_table[VRSS_SEND_TAB_SIZE];
>
> - u16 rx_table[ITAB_NUM];
> + u16 *rx_table;
> +
> + int rx_table_sz;
Size should never be negative, use u32 or u16 here?
Powered by blists - more mailing lists