]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
be2net: Clear pending tx completions before destroying tx queue
authorSathya Perla <sathyap@serverengines.com>
Mon, 10 Aug 2009 03:42:43 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 05:13:16 +0000 (22:13 -0700)
commita8e9179a7de196d37410fd3e9528081f22c70a4e
treeb7ad488a9493feab8babdb5c00165cc5fa57a76e
parentf2341641766af3de18502abb6ac9b98e0e4c6bdb
be2net: Clear pending tx completions before destroying tx queue

Clear pending tx completions in be_close() (ndo.stop method) so that after
unregister_netdev() calls be_close(), all tx skbs are freed and there are
no more tx completions when txq is destroyed.

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c