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
..
Kconfig net/mlx5e: add IPV6 dependency 2017-03-07 12:25:24 -08:00
Makefile net/mlx5e: Add support for ethtool self diagnostics test 2016-11-28 15:09:35 -05: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 {net,IB}/mlx5: QP/XRCD commands via mlx5 ifc 2016-08-17 17:45:57 +03:00
dev.c {net,IB}/mlx5: Refactor page fault handling 2017-01-02 15:51:20 -05:00
en.h net/mlx5e: Avoid supporting udp tunnel port ndo for VF reps 2017-03-22 12:11:13 -07:00
en_arfs.c net/mlx5: Support encap id when setting new steering entry 2016-11-09 13:41:56 -05:00
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.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -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_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.c net/mlx5e: Count LRO packets correctly 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_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 net/mlx5e: Hardware offloaded flower filter statistics support 2016-05-16 13:43:51 -04:00
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
eq.c net/mlx5: Add MTPPS and MTPPSE registers infrastructure 2017-01-19 23:19:53 +02: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
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
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 net/mlx5: Add creation flags when adding new flow table 2016-11-09 13:41:56 -05:00
fs_core.c net/mlx5: Fix create autogroup prev initializer 2017-03-10 10:03:26 -08:00
fs_core.h net/mlx5: Support encap id when setting new steering entry 2016-11-09 13:41:56 -05:00
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
lag.c net/mlx5: Organize device list API in one place 2016-09-10 21:21:50 -07:00
mad.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
main.c net/mlx5: Increase number of max QPs in default profile 2017-03-22 12:11:13 -07:00
mcg.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
mlx5_core.h net/mlx5: Implement PCAM, MCAM access register commands 2017-01-19 23:19:58 +02:00
mr.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
pagealloc.c net/mlx5: Avoid passing dma address 0 to firmware 2016-10-29 12:00:39 -04:00
pd.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
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 net/mlx5: Introduce TSAR manipulation firmware commands 2016-10-30 15:43:12 +02:00
sriov.c net/mlx5: Align sriov/eswitch modules with the new load/unload flow. 2016-09-10 21:21:50 -07:00
srq.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
transobj.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
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 net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
vxlan.h mlx5: Fix merge errors. 2016-05-09 22:05:13 -04:00
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