aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorCorinna Vinschen <[email protected]>2022-01-19 14:52:59 +0000
committerTony Nguyen <[email protected]>2022-02-07 22:23:01 +0000
commite62ad74aa534404b3ee7e250b114a3536ac56987 (patch)
tree6ba6010c8a5fae0a5272eba6b1e90c8336f36dc9 /net/switchdev/switchdev.c
parentigc: avoid kernel warning when changing RX ring parameters (diff)
downloadkernel-e62ad74aa534404b3ee7e250b114a3536ac56987.tar.gz
kernel-e62ad74aa534404b3ee7e250b114a3536ac56987.zip
igb: refactor XDP registration
On changing the RX ring parameters igb uses a hack to avoid a warning when calling xdp_rxq_info_reg via igb_setup_rx_resources. It just clears the struct xdp_rxq_info content. Instead, change this to unregister if we're already registered. Align code to the igc code. Fixes: 9cbc948b5a20c ("igb: add XDP support") Signed-off-by: Corinna Vinschen <[email protected]> Acked-by: Vinicius Costa Gomes <[email protected]> Tested-by: Sandeep Penigalapati <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions