]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: cleanup tx ring flush and rename to reset
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 7 Apr 2016 18:39:39 +0000 (19:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:26:04 +0000 (15:26 -0400)
commitd4caa0437d6d5fe03ed1bea97bed57fdb7162999
treeddbdd8f4cee296b26e93fa87143231d14bc8779b
parent4858642b70e091c9489ebbcd742cfeb6edfb9321
nfp: cleanup tx ring flush and rename to reset

Since we never used flush without freeing the ring later
the functionality of the two operations is mixed.
Rename flush to ring reset and move there all the things
which have to be done after FW ring state is cleared.
While at it do some clean-ups.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c