]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: thunderx: Fix receive packet stats
authorSunil Goutham <sgoutham@cavium.com>
Tue, 16 Feb 2016 10:59:51 +0000 (16:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 03:24:57 +0000 (22:24 -0500)
commitad2ecebd67d8a80fe5412d11df375a5ed2db7cd1
treea0898526a16ccba8395e4b0c88ff7c440e5e5f40
parent8d210d54c5250c52b69266f299e64fe8356f9453
net: thunderx: Fix receive packet stats

Counting rx packets for every CQE_RX in CQ irq handler is incorrect.
Synchronization is missing when multiple queues are receiving packets
simultaneously. Like transmit packet stats use HW stats here.

Also removed unused 'cqe_type' parameter in nicvf_rcv_pkt_handler().

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.h