]> git.baikalelectronics.ru Git - 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)
commit35ef36c14eff2c26451df1df9604288eea8a2b66
tree163999dc96988c0b9b03c7227df37c79c9ed6ac6
parent360c73eb3ede65a726c3786c591f0c7fdc711e5a
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