]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Don't count internal TX header bytes to stats
authorNogah Frankel <nogahf@mellanox.com>
Fri, 17 Jun 2016 13:09:05 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 04:57:53 +0000 (21:57 -0700)
commitfa7ff17e4f1bf0c8d2aaafc950c2ff97c3c4a10f
tree9fd85b5cd7cc9f3da8ac9e7674512154926808b3
parenteb4adb4e6dd2a538a03430db200dbdec86fec22f
mlxsw: spectrum: Don't count internal TX header bytes to stats

Stop the SW TX counter from counting the TX header bytes
since they are not being sent out.

Fixes: 91747a7223b2 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c