]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: switchx2: Don't count internal TX header bytes to stats
authorNogah Frankel <nogahf@mellanox.com>
Fri, 17 Jun 2016 13:09:06 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 04:57:53 +0000 (21:57 -0700)
commit6fd34731a0dc303deb67b4e0c4038afd2a2740d5
tree9d3208177264ba4356c7f46a8691d39f558472b7
parente92fa96993f1c2370f5782285ae06472b180f270
mlxsw: switchx2: 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: f776bc285e30 ("mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit")
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c