]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: clean zero-copy XDP Tx ring on shutdown/reset
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 7 Sep 2018 08:18:45 +0000 (10:18 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 25 Sep 2018 20:10:24 +0000 (13:10 -0700)
commit777c7e587e4d8d8326fc09087d3d1ed411fdb696
treed91c499d61aed51320f436891ace5a4c09867f73
parent256bbedc42d7d7618227498dfc5a328b638225a1
i40e: clean zero-copy XDP Tx ring on shutdown/reset

When the zero-copy enabled XDP Tx ring is torn down, due to
configuration changes, outstanding frames on the hardware descriptor
ring are queued on the completion ring.

The completion ring has a back-pressure mechanism that will guarantee
that there is sufficient space on the ring.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx_common.h
drivers/net/ethernet/intel/i40e/i40e_xsk.c