summaryrefslogtreecommitdiffstats
path: root/lib/test_user_copy.c
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-03 13:27:13 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-14 15:56:22 -0700
commit78288e3750c568f0f95db235a06475db3b1a122a (patch)
tree9f9aaf8c51491fbca0a417de0cf1d9a176850590 /lib/test_user_copy.c
parent750c607e303971e1746f98bfeec17bf45cbf228d (diff)
downloadlinux-78288e3750c568f0f95db235a06475db3b1a122a.tar.bz2
fm10k: reset head instead of calling update_max_size
When we forcefully shutdown the mailbox, we then go about resetting max size to 0, and clearing all messages in the FIFO. Instead, we should just reset the head pointer so that the FIFO becomes 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: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Acked-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'lib/test_user_copy.c')
0 files changed, 0 insertions, 0 deletions