diff options
author | Fuyun Liang <[email protected]> | 2018-05-25 19:43:04 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-05-29 00:04:26 -0400 |
commit | 7b763f3f7e52b1e0284c9f42acc4229935b7ec5f (patch) | |
tree | 75425004bb92d2796589b5a0a61c92cfa5b85744 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 6986df9686c55464b0fa0f36a02f4da81d99a3b1 (diff) |
net: hns3: Clear TX/RX rings when stopping port & un-initializing client
When we down the port, some packets are left in TX/RX buffer. When we
up the port again, these old packets are forwarded to protocol stack
or are sent to internet. It will make some problem. TX/RX buffer should
be cleared when stopping port. This patch adds some function to ensure
the buffer is clean when port is started. We should clear the rings
when clients are being un-initialized as well.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Fuyun Liang <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Salil Mehta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions