mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
qede: Fix XDP memory leak on unload
When (re|un)loading, Tx-queues belonging to XDP would not get freed.
Fixes: cb6aeb0792
("qede: Add support for XDP_TX")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cf680179c1
commit
92c43eb416
@ -1313,6 +1313,9 @@ static void qede_free_mem_fp(struct qede_dev *edev, struct qede_fastpath *fp)
|
||||
if (fp->type & QEDE_FASTPATH_RX)
|
||||
qede_free_mem_rxq(edev, fp->rxq);
|
||||
|
||||
if (fp->type & QEDE_FASTPATH_XDP)
|
||||
qede_free_mem_txq(edev, fp->xdp_tx);
|
||||
|
||||
if (fp->type & QEDE_FASTPATH_TX)
|
||||
qede_free_mem_txq(edev, fp->txq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user