mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
octeontx2-pf: Fix memory leak during interface down
[ Upstream commit5f228d7c8a] During 'ifconfig <netdev> down' one RSS memory was not getting freed. This patch fixes the same. Fixes:81a4362016("octeontx2-pf: Add RSS multi group support") Signed-off-by: Suman Ghosh <sumang@marvell.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b605d23cb1
commit
8da4a34c8f
|
|
@ -1934,6 +1934,8 @@ int otx2_stop(struct net_device *netdev)
|
|||
/* Clear RSS enable flag */
|
||||
rss = &pf->hw.rss_info;
|
||||
rss->enable = false;
|
||||
if (!netif_is_rxfh_configured(netdev))
|
||||
kfree(rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]);
|
||||
|
||||
/* Cleanup Queue IRQ */
|
||||
vec = pci_irq_vector(pf->pdev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user