OSDN Git Service

hv_netvsc: Allocate rx indirection table size dynamically
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Mon, 5 Jun 2023 11:30:06 +0000 (04:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2023 08:46:49 +0000 (09:46 +0100)
commit4cab498f33f7adaa01ad15909c0f34a81e5a0b0a
treee62655bbe73d7fda9813d8e71083da4dd251ffd1
parentae28ea5cbdee9956464223b304d6c767238b2506
hv_netvsc: Allocate rx indirection table size dynamically

Allocate the size of rx indirection table dynamically in netvsc
from the value of size provided by OID_GEN_RECEIVE_SCALE_CAPABILITIES
query instead of using a constant value of ITAB_NUM.

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Tested-on: Ubuntu22 (azure VM, SKU size: Standard_F72s_v2)
Testcases:
1. ethtool -x eth0 output
2. LISA testcase:PERF-NETWORK-TCP-THROUGHPUT-MULTICONNECTION-NTTTCP-Synthetic
3. LISA testcase:PERF-NETWORK-TCP-THROUGHPUT-MULTICONNECTION-NTTTCP-SRIOV
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c