fm10k/base: avoid Tx drop increment during mailbox negotiation
authorWang Xiao W <xiao.w.wang@intel.com>
Thu, 10 Sep 2015 04:38:15 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Oct 2015 11:25:07 +0000 (13:25 +0200)
commit400f3c18fa9e11f0eabc043fd639924a2f4c8f20
tree3070396b2d1ffd77fade5e6b712f6d3314ce437d
parente18683f8ef6ce08fd587e3e8537e2030bcfe0825
fm10k/base: avoid Tx drop increment during mailbox negotiation

After shutting down the mailbox by force, we then go about resetting max
size to 0, and clearing all messages in the FIFO. However, we should
just reset the head pointer so that the FIFO will become empty, rather than
changing the max size to 0. This helps prevent increment in tx_dropped
counter during mailbox negotiation, which is confusing to viewers of
Linux ethtool statistics output.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
drivers/net/fm10k/base/fm10k_mbx.c