]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: thunderx: Fix memory leak and other issues upon interface toggle
authorSunil Goutham <sgoutham@cavium.com>
Tue, 15 Nov 2016 12:08:29 +0000 (17:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:28:33 +0000 (13:28 -0500)
commitc94acf805d93e7beb5898ac97ff327ae0b6f04dd
tree163999dc96988c0b9b03c7227df37c79c9ed6ac6
parent964cb69bdc9db255f7c3a80f6e1bed8a25e4c60e
net: thunderx: Fix memory leak and other issues upon interface toggle

This patch fixes the following
1. When interface is being teardown and queues are being cleaned up,
   free pending SKBs that are in SQ which are either not transmitted
   or freed as NAPI is disabled by that time.
2. While interface initialization, delay CFG_DONE notification till
   the end to avoid corner cases where TXQs are enabled but CQ
   interrupts are not which results blocking transmission and kicking
   off watchdog.
3. Check for IFF_UP while re-enabling RBDR interrupts from tasklet.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c