linux/drivers/net/ethernet/mellanox/mlx5/core
Gal Pressman 8ab7e2ae15 net/mlx5e: Count LRO packets correctly
RX packets statistics ('rx_packets' counter) used to count LRO packets
as one, even though it contains multiple segments.
This patch will increment the counter by the number of segments, and
align the driver with the behavior of other drivers in the stack.

Note that no information is lost in this patch due to 'rx_lro_packets'
counter existence.

Before, ethtool showed:
$ ethtool -S ens6 | egrep "rx_packets|rx_lro_packets"
     rx_packets: 435277
     rx_lro_packets: 35847
     rx_packets_phy: 1935066

Now, we will see the more logical statistics:
$ ethtool -S ens6 | egrep "rx_packets|rx_lro_packets"
     rx_packets: 1935066
     rx_lro_packets: 35847
     rx_packets_phy: 1935066

Fixes: e586b3b0ba ("net/mlx5: Ethernet Datapath files")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-22 12:11:13 -07:00
..
alloc.c net/mlx5e: use %pad format string for dma_addr_t 2016-12-08 21:30:54 -05:00
cmd.c net/mlx5: Add missing entries for set/query rate limit commands 2017-03-22 12:11:12 -07:00
cq.c IB/mlx5: Support 4k UAR for libmlx5 2017-01-09 20:25:09 +02:00
debugfs.c
dev.c {net,IB}/mlx5: Refactor page fault handling 2017-01-02 15:51:20 -05:00
en_arfs.c
en_clock.c net/mlx5e: CQE compression control code reuse 2017-01-24 21:14:08 +02:00
en_common.c IB/mlx5: Support 4k UAR for libmlx5 2017-01-09 20:25:09 +02:00
en_dcbnl.c net/mlx5e: remove IEEE/CEE mode check when setting DCBX mode 2017-03-10 10:03:26 -08:00
en_ethtool.c net/mlx5e: Update MPWQE stride size when modifying CQE compress state 2017-02-23 10:43:10 -05:00
en_fs_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
en_fs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
en_main.c net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps 2017-03-22 12:11:13 -07:00
en_rep.c net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps 2017-03-22 12:11:13 -07:00
en_rx_am.c net/mlx5e: Remove WARN_ONCE from adaptive moderation code 2017-01-10 21:34:01 -05:00
en_rx.c net/mlx5e: Count LRO packets correctly 2017-03-22 12:11:13 -07:00
en_selftest.c net/mlx5e: Fix loopback selftest 2017-03-10 10:03:26 -08:00
en_stats.h net/mlx5e: Expose PCIe statistics to ethtool 2017-01-19 23:20:02 +02:00
en_tc.c net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps 2017-03-22 12:11:13 -07:00
en_tc.h
en_tx.c net/mlx5e: Count GSO packets correctly 2017-03-22 12:11:13 -07:00
en_txrx.c net/mlx5e: Change the SQ/RQ operational state to positive logic 2016-12-06 11:44:45 -05:00
en.h net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps 2017-03-22 12:11:13 -07:00
eq.c net/mlx5: Add MTPPS and MTPPSE registers infrastructure 2017-01-19 23:19:53 +02:00
eswitch_offloads.c net/mlx5: E-Switch, Don't allow changing inline mode when flows are configured 2017-03-22 12:11:12 -07:00
eswitch.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
eswitch.h net/mlx5: E-Switch, Don't allow changing inline mode when flows are configured 2017-03-22 12:11:12 -07:00
fs_cmd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
fs_cmd.h
fs_core.c net/mlx5: Fix create autogroup prev initializer 2017-03-10 10:03:26 -08:00
fs_core.h
fs_counters.c net/mlx5: use rb_entry() 2016-12-20 14:22:48 -05:00
fw.c net/mlx5: Query and cache PCAM, MCAM registers on initialization 2017-01-19 23:19:59 +02:00
health.c net/mlx5: Fix version printout in case of health issue 2017-01-19 23:19:52 +02:00
Kconfig net/mlx5e: add IPV6 dependency 2017-03-07 12:25:24 -08:00
lag.c
mad.c
main.c net/mlx5: Increase number of max QPs in default profile 2017-03-22 12:11:13 -07:00
Makefile net/mlx5e: Add support for ethtool self diagnostics test 2016-11-28 15:09:35 -05:00
mcg.c
mlx5_core.h net/mlx5: Implement PCAM, MCAM access register commands 2017-01-19 23:19:58 +02:00
mr.c
pagealloc.c
pd.c
port.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
qp.c {net,IB}/mlx5: Refactor page fault handling 2017-01-02 15:51:20 -05:00
rl.c
sriov.c
srq.c
transobj.c
uar.c IB/mlx5: Support 4k UAR for libmlx5 2017-01-09 20:25:09 +02:00
vport.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
vxlan.c
vxlan.h
wq.c net/mlx5e: Implement Fragmented Work Queue (WQ) 2016-12-02 10:47:01 -05:00
wq.h net/mlx5e: Implement Fragmented Work Queue (WQ) 2016-12-02 10:47:01 -05:00