Skip to content

Commit 5f228d7

Browse files
sumang-mrvldavem330
authored andcommitted
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: 81a4362 ("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>
1 parent 93da8d7 commit 5f228d7

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+2
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,8 @@ int otx2_stop(struct net_device *netdev)
19341934
/* Clear RSS enable flag */
19351935
rss = &pf->hw.rss_info;
19361936
rss->enable = false;
1937+
if (!netif_is_rxfh_configured(netdev))
1938+
kfree(rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]);
19371939

19381940
/* Cleanup Queue IRQ */
19391941
vec = pci_irq_vector(pf->pdev,

0 commit comments

Comments
 (0)