]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
qlge: Fix receive packets drop.
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 15 Mar 2016 11:13:45 +0000 (07:13 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 23:15:50 +0000 (19:15 -0400)
commit2c9a266afefe137bff06bbe0fc48b4d3b3cb348c
tree729bfe99edc02b184cf933b9e797202c9ef6ec18
parentcc2fa619a738a052eb90ccbbbc48947a2e2aa1d3
qlge: Fix receive packets drop.

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>
drivers/net/ethernet/qlogic/qlge/qlge_main.c