OSDN Git Service

qlge: Fix receive packets drop.
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 15 Mar 2016 11:13:45 +0000 (07:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:42:04 +0000 (15:42 +0900)
commita5ce25f61bce0ffb1ff59071c06b948277c90a28
tree70c52a56caddee47b498ac4aa980499dda74f541
parentbd33d14acf43bdb040f203555b13765cd2b23d9e
qlge: Fix receive packets drop.

[ Upstream commit 2c9a266afefe137bff06bbe0fc48b4d3b3cb348c ]

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qlge/qlge_main.c