V2-changes:
 - patch 5: fail PCI removal if a representor cannot be released
 - patch 8: new, report the VF reset event only once the interrupt
   handler is done with the device
 - patch 9 (patch 8 in v1): mention closing the port from the reset
   callback in the commit message

This patch series fixes memory and resource leaks in the ixgbe PMD.

1. The first patch fixes a regression from 26.07: since the common Tx path
frees mbufs during descriptor cleanup, stopping an ixgbe Tx queue that
uses a scalar path (full-featured or simple) drops mbufs without
freeing them. Repeated port stop/start cycles exhaust the mempool.

2. The other patches fix leaks on error paths and in device lifecycle
operations:
a. Tx queue structure when the descriptor ring cannot be reserved
b. Rx mbufs when a failed runtime queue start is retried
c. MAC address arrays on every PF and VF device reset
d. VF representor ports, which are never released
e. security context when the dynamic mbuf field registration fails
f. Rx interrupt eventfds when device start fails
g. Not a leak fix but it makes the VF interrupt handler stop using
the device once it has reported a PF reset, so that the port can be
closed from the event callback.
h. VF interrupt callback when it is running during close

Anurag Mandal (9):
  net/ixgbe: fix Tx mbuf leak on queue stop
  net/ixgbe: fix Tx queue leak on ring allocation failure
  net/ixgbe: fix Rx mbuf leak on queue start failure
  net/ixgbe: fix MAC address leak on device reset
  net/ixgbe: fix VF representor port leak
  net/ixgbe: fix security context leak on init failure
  net/ixgbe: fix eventfd leak on start failure
  net/ixgbe: fix VF use after free in interrupt handler
  net/ixgbe: fix VF interrupt callback leak on close

 drivers/net/intel/ixgbe/ixgbe_ethdev.c        | 75 +++++++++++++------
 drivers/net/intel/ixgbe/ixgbe_rxtx.c          | 34 ++++++++-
 .../net/intel/ixgbe/ixgbe_vf_representor.c    |  5 +-
 3 files changed, 88 insertions(+), 26 deletions(-)

-- 
2.25.1

Reply via email to