aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorTaehee Yoo <[email protected]>2025-03-09 13:42:14 +0000
committerJakub Kicinski <[email protected]>2025-03-10 20:31:11 +0000
commit661958552eda5bf64bfafb4821cbdded935f1f68 (patch)
tree473a009ecf539fe5d3681aedbf346b6c7f9e7de7 /net/switchdev/switchdev.c
parenteth: bnxt: return fail if interface is down in bnxt_queue_mem_alloc() (diff)
downloadkernel-661958552eda5bf64bfafb4821cbdded935f1f68.tar.gz
kernel-661958552eda5bf64bfafb4821cbdded935f1f68.zip
eth: bnxt: do not use BNXT_VNIC_NTUPLE unconditionally in queue restart logic
When a queue is restarted, it sets MRU to 0 for stopping packet flow. MRU variable is a member of vnic_info[], the first vnic_info is default and the second is ntuple. Only when ntuple is enabled(ethtool -K eth0 ntuple on), vnic_info for ntuple is allocated in init logic. The bp->nr_vnics indicates how many vnic_info are allocated. However bnxt_queue_{start | stop}() accesses vnic_info[BNXT_VNIC_NTUPLE] regardless of ntuple state. Reviewed-by: Somnath Kotur <[email protected]> Fixes: b9d2956e869c ("bnxt_en: stop packet flow during bnxt_queue_stop/start") Signed-off-by: Taehee Yoo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions