]> git.baikalelectronics.ru Git - 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)
commit17cf561d096df0b69cb4c49519c174d458d287fc
treea0898526a16ccba8395e4b0c88ff7c440e5e5f40
parente14b3ce06cdfcd3885949bedc6e36676c0141de1
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