Commit 5f228d7c authored by Suman Ghosh's avatar Suman Ghosh Committed by David S. Miller

octeontx2-pf: Fix memory leak during interface down

During 'ifconfig <netdev> down' one RSS memory was not getting freed.
This patch fixes the same.

Fixes: 81a43620 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: default avatarSuman Ghosh <sumang@marvell.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93da8d75
...@@ -1934,6 +1934,8 @@ int otx2_stop(struct net_device *netdev) ...@@ -1934,6 +1934,8 @@ int otx2_stop(struct net_device *netdev)
/* Clear RSS enable flag */ /* Clear RSS enable flag */
rss = &pf->hw.rss_info; rss = &pf->hw.rss_info;
rss->enable = false; rss->enable = false;
if (!netif_is_rxfh_configured(netdev))
kfree(rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]);
/* Cleanup Queue IRQ */ /* Cleanup Queue IRQ */
vec = pci_irq_vector(pf->pdev, vec = pci_irq_vector(pf->pdev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment