qlge: Fix receive packets drop.
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 15 Mar 2016 11:13:45 +0000 (07:13 -0400)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2016 08:42:49 +0000 (10:42 +0200)
commitfb7d23cba8d89ed9f7cb629efab26c08a7384cb0
tree3ecced878cf0902d0504b14f702f93ffe0cdac42
parentd6a8ef9f850f408ad1a50f8f8e5009b0a98cfd2d
qlge: Fix receive packets drop.

commit 2c9a266afefe137bff06bbe0fc48b4d3b3cb348c upstream.

When running small packets [length < 256 bytes] traffic, packets were
being dropped due to invalid data in those packets which were
delivered by the driver upto the stack. Using pci_dma_sync_single_for_cpu
ensures copying latest and updated data into skb from the receive buffer.

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/ethernet/qlogic/qlge/qlge_main.c