From: Ido Schimmel <ido...@idosch.org> Date: Thu, 17 Oct 2019 10:11:03 +0300
> From: Ido Schimmel <ido...@mellanox.com> > > devlink maintains packets and bytes statistics for each trap. Since > eth_type_trans() was called to set the skb's protocol, the data pointer > no longer points to the start of the packet and the bytes accounting is > off by 14 bytes. > > Fix this by pushing the skb's data pointer to the start of the packet. > > Fixes: b5ce611fd96e ("mlxsw: spectrum: Add devlink-trap support") > Reported-by: Alex Kushnarov <alexand...@mellanox.com> > Tested-by: Alex Kushnarov <alexand...@mellanox.com> > Acked-by: Jiri Pirko <j...@mellanox.com> > Signed-off-by: Ido Schimmel <ido...@mellanox.com> Applied, thanks.