linux/drivers/net/ethernet
Björn Töpel 090ce34b78 i40e: report correct statistics when XDP is enabled
commit cdec2141c2 upstream.

When XDP is enabled, the driver will report incorrect
statistics. Received frames will reported as transmitted frames.

This commits fixes the i40e implementation of ndo_get_stats64 (struct
net_device_ops), so that iproute2 will report correct statistics
(e.g. when running "ip -stats link show dev eth0") even when XDP is
enabled.

Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Fixes: 74608d17fe ("i40e: add support for XDP_TX action")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Emeric Brun <ebrun@haproxy.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-19 13:12:42 +01:00
..
3com
8390
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera net: altera_tse: fix msgdma_tx_completion on non-zero fill_level case 2019-03-13 14:02:29 -07:00
amazon net: ena: fix race between link up and device initalization 2019-02-27 10:08:58 +01:00
amd amd-xgbe: Fix mdio access for non-zero ports and clause 45 PHYs 2019-01-31 08:14:30 +01:00
apm drivers: net: xgene: Remove unnecessary forward declarations 2019-01-13 09:51:00 +01:00
apple net: apple: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
aquantia net: aquantia: return 'err' if set MPI_DEINIT state fails 2019-02-12 19:47:03 +01:00
arc
atheros
aurora
broadcom bnxt_en: Drop oversize TX packets to prevent errors. 2019-03-10 07:17:17 +01:00
brocade
cadence net: macb: Apply RXUBR workaround only to versions with errata 2019-03-13 14:02:31 -07:00
calxeda
cavium liquidio: read sc->iq_no before release sc 2018-12-21 14:15:17 +01:00
chelsio net: cxgb3_main: fix a missing-check bug 2018-10-05 11:47:19 -07:00
cirrus net: cirrus: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
cisco enic: fix checksum validation for IPv6 2019-02-12 19:47:21 +01:00
cortina net: gemini: Fix copy/paste error 2018-12-05 19:31:58 +01:00
davicom
dec
dlink
emulex Revert "be2net: remove desc field from be_eq_obj" 2018-11-04 14:50:53 +01:00
ezchip
faraday net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts 2018-12-13 09:16:14 +01:00
freescale dpaa_eth: NETIF_F_LLTX requires to do our own update of trans_start 2019-02-27 10:08:57 +01:00
fujitsu
hisilicon net: hns: Fix wrong read accesses via Clause 45 MDIO protocol 2019-03-13 14:02:29 -07:00
hp net: hp100: fix always-true check for link up state 2018-09-17 07:55:19 -07:00
huawei hinic: remove ndo_poll_controller 2018-09-28 11:12:28 -07:00
i825xx net: i825xx: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
ibm ibmveth: Do not process frames after calling napi_reschedule 2019-03-05 17:58:51 +01:00
intel i40e: report correct statistics when XDP is enabled 2019-03-19 13:12:42 +01:00
marvell sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79 2019-03-10 07:17:17 +01:00
mediatek
mellanox net/mlx4_core: Fix qp mtt size calculation 2019-03-19 13:12:40 +01:00
micrel
microchip lan743x: Fix TX Stall Issue 2019-03-19 13:12:38 +01:00
moxa
mscc mscc: Configured MAC entries should be locked. 2019-01-09 17:38:35 +01:00
myricom
natsemi
neterion vxge: ensure data0 is initialized in when fetching firmware version information 2019-01-13 09:51:02 +01:00
netronome nfp: flower: ensure TCP flags can be placed in IPv6 frame 2019-01-09 17:38:35 +01:00
ni
nuvoton w90p910_ether: remove incorrect __init annotation 2019-01-13 09:51:00 +01:00
nvidia
nxp
oki-semi
packetengines
pasemi
qlogic qede: Fix system crash on configuring channels. 2019-03-13 14:02:38 -07:00
qualcomm net: qualcomm: rmnet: Fix incorrect assignment of real_dev 2018-11-23 08:17:06 +01:00
rdc
realtek r8169: Add support for new Realtek Ethernet 2019-01-26 09:32:33 +01:00
renesas ravb: Decrease TxFIFO depth of Q3 and Q2 to one 2019-03-19 13:12:39 +01:00
rocker
samsung
seeq net: seeq: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
sfc sfc-falcon: remove ndo_poll_controller 2018-09-28 11:12:29 -07:00
sgi net: sgi: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
silan
sis
smsc
socionext net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM 2018-12-21 14:15:14 +01:00
stmicro net: stmmac: Disable EEE mode earlier in XMIT callback 2019-03-13 14:02:35 -07:00
sun niu: fix missing checks of niu_pci_eeprom_read 2019-02-12 19:47:17 +01:00
synopsys
tehuti
ti
toshiba
tundra
via
wiznet net: wiznet: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
netx-eth.c