aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMitko Haralanov <[email protected]>2018-02-01 10:52:43 -0800
committerJason Gunthorpe <[email protected]>2018-02-01 15:43:31 -0700
commitb5de809ef6f6c32cfbbf0da14ed11b0fdc0888f8 (patch)
tree1b81d3e6fe3740fd94ccc6b9b51134855e46d525 /net/unix/sysctl_net_unix.c
parent78d3633ba9c2351fc869271ee00284f46e6b15b2 (diff)
IB/hfi1: Show fault stats in both TX and RX directions
The routine which shows the fault stats checks the counters to determine whether to show any stats based on the number of transmitted pkts/bytes for a particular opcode. Unfortunately, it only checked the receive counters. As a result, if any packet faults have happened for packets egressing the HFI, those stats would not be shown. In order to fix this, the routine is amended to also check the TX counters. With this change the pkt/byte counts are the sum of both TX and RX counts for the opcode. Fixes: 1b311f8931cf ("IB/hfi1: Add tx_opcode_stats like the opcode_stats") Reviewed-by: Don Hiatt <[email protected]> Reviewed-by: Michael J. Ruhl <[email protected]> Signed-off-by: Mitko Haralanov <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions