linux/drivers/net/ethernet
Ido Schimmel 2e978795bb mlxsw: spectrum_trap: Push Ethernet header before reporting trap
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: b5ce611fd9 ("mlxsw: spectrum: Add devlink-trap support")
Reported-by: Alex Kushnarov <alexanderk@mellanox.com>
Tested-by: Alex Kushnarov <alexanderk@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-18 10:15:09 -07:00
..
3com
8390
adaptec
aeroflex
agere
alacritech
allwinner drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
alteon
altera
amazon net: ena: clean up indentation issue 2019-09-27 20:32:02 +02:00
amd
apm
apple
aquantia net: aquantia: correctly handle macvlan and multicast coexistence 2019-10-14 17:01:53 -07:00
arc
atheros net: ag71xx: fix mdio subnode support 2019-10-01 10:19:19 -07:00
aurora
broadcom net: bcmgenet: reset 40nm EPHY on energy detect 2019-10-18 10:00:07 -07:00
brocade
cadence net: macb: Remove dead code 2019-09-25 13:59:43 +02:00
calxeda
cavium net: cavium: Use the correct style for SPDX License Identifier 2019-10-15 15:00:56 -07:00
chelsio cxgb4:Fix out-of-bounds MSI-X info array access 2019-10-04 14:42:13 -07:00
cirrus
cisco
cortina
davicom
dec
dlink
emulex drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
ezchip
faraday
freescale dpaa2-eth: Fix TX FQID values 2019-10-17 15:27:29 -04:00
fujitsu
google
hisilicon net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write() 2019-10-02 14:20:22 -07:00
hp
huawei
i825xx net: i82596: fix dma_alloc_attr for sni_82596 2019-10-15 20:50:05 -07:00
ibm net/ibmvnic: Fix EOI when running in XIVE mode. 2019-10-13 11:18:56 -07:00
intel pci-v5.4-changes 2019-09-23 19:16:01 -07:00
marvell skge: fix checksum byte order 2019-09-24 16:53:19 +02:00
mediatek net: ethernet: mediatek: Fix MT7629 missing GMII mode support 2019-10-15 18:03:35 -07:00
mellanox mlxsw: spectrum_trap: Push Ethernet header before reporting trap 2019-10-18 10:15:09 -07:00
micrel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2019-09-18 12:34:53 -07:00
microchip lan743x: remove redundant assignment to variable rx_process_result 2019-09-06 16:47:07 +02:00
moxa
mscc net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name 2019-10-01 10:01:58 -07:00
myricom
natsemi net: sonic: replace dev_kfree_skb in sonic_send_packet 2019-09-11 09:14:01 +01:00
neterion
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-28 17:47:33 -07:00
ni net: nixge: Fix a signedness bug in nixge_probe() 2019-09-27 10:20:36 +02:00
nvidia Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-15 14:17:27 +02:00
nxp net: lpc_eth: avoid resetting twice 2019-10-13 11:15:25 -07:00
oki-semi
packetengines
pasemi
pensando ionic: fix stats memory dereference 2019-10-07 09:41:56 -04:00
qlogic net: qlogic: Fix memory leak in ql_alloc_large_buffers 2019-10-04 18:33:13 -07:00
qualcomm
rdc
realtek r8169: fix jumbo packet handling on resume from suspend 2019-10-10 16:25:46 -07:00
renesas ravb: TROCR register is only present on R-Car Gen3 2019-09-06 16:46:10 +02:00
rocker
samsung
seeq
sfc
sgi
silan
sis
smsc
socionext net: socionext: netsec: always grab descriptor lock 2019-10-01 09:07:47 -07:00
stmicro net: stmmac: fix argument to stmmac_pcs_ctrl_ane() 2019-10-17 15:31:04 -04:00
sun
synopsys
tehuti
ti davinci_cpdma: make cpdma_chan_split_pool static 2019-10-15 20:56:14 -07:00
toshiba
tundra
via
wiznet
xilinx net: axienet: fix a signedness bug in probe 2019-09-27 10:17:22 +02:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c pci-v5.4-changes 2019-09-23 19:16:01 -07:00
jme.h
Kconfig net: remove netx ethernet driver 2019-09-21 19:08:31 -07:00
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile net: remove netx ethernet driver 2019-09-21 19:08:31 -07:00