ice: Refactor ice_setup_rx_ctx
authorKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Sat, 21 Nov 2020 00:39:32 +0000 (16:39 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 7 Jun 2021 15:58:56 +0000 (08:58 -0700)
commit43c7f9198deb855b7fee1ecb2c2f98f2bfd757c8
tree96d741131c56cb01fab722f7a8e2763b98f3091a
parentf28cd5ce1a60949149f9870292879e0685892a22
ice: Refactor ice_setup_rx_ctx

Move AF_XDP logic and buffer allocation out of ice_setup_rx_ctx() to a
new function ice_vsi_cfg_rxq(), so the function actually sets up the Rx
context.

Signed-off-by: Krzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Co-developed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
drivers/net/ethernet/intel/ice/ice_base.c
drivers/net/ethernet/intel/ice/ice_base.h
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_xsk.c