]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Change number of XDP Tx queues to match number of Rx queues
authorMarta Plantykow <marta.a.plantykow@intel.com>
Sat, 16 May 2020 00:42:17 +0000 (17:42 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:55:56 +0000 (17:55 -0700)
commit7fba19060479ad9c239c25d72fc282f9935fd0c4
tree188c0e0f92bea4f01289aca129da19fb9a8dfe89
parent412e8461a95b007e2c48fedfbd5dcaf2c4928502
ice: Change number of XDP Tx queues to match number of Rx queues

In current implementation number of XDP Tx queues is the same as
the number of transmit queues, which is not always true. This
patch changes this number to match the number of receive queues.
XDP programs are running on Rx rings, so what we actually need to
provide is the XDP Tx ring per each Rx ring so that the whole XDP
ecosystem is functional, e.g. if the result of XDP prog is XDP_TX
then you have the need to access the XDP Tx ring.

Signed-off-by: Marta Plantykow <marta.a.plantykow@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c