]> 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)
commit9d7ce0299b98c43ae6a1aa923f9b00dfaa353e2b
treeddbdd8f4cee296b26e93fa87143231d14bc8779b
parente4be7a5d0883ea84b2a8f420ac641ef4cc15cfc4
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