]> 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)
commitca79a28f11f1754796bba1a3b9311c3f5e573d7b
tree163999dc96988c0b9b03c7227df37c79c9ed6ac6
parent99de99b191ee2a95779b997403f3a497e92638d7
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