Patch "qlge: Fix receive packets drop." has been added to the 3.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
qlge: Fix receive packets drop.
to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
qlge-fix-receive-packets-drop.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sat Apr 16 22:36:37 PDT 2016
From: Manish Chopra <[email protected]>
Date: Tue, 15 Mar 2016 07:13:45 -0400
Subject: qlge: Fix receive packets drop.
Status: RO
Content-Length: 1438
Lines: 40
From: Manish Chopra <[email protected]>
[ 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.
--- drivers/net/ethernet/qlogic/qlge/qlge_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/net/ethernet/qlogic/qlge/qlge_main.c +11 -0
@@ -1648,7 +1648,18 @@ static void ql_process_mac_rx_skb(structreturn ; }skb_reserve (new_skb,NET_IP_ALIGN ); + +pci_dma_sync_single_for_cpu (qdev->pdev, +dma_unmap_addr (sbq_desc, mapaddr), +dma_unmap_len (sbq_desc, maplen), +PCI_DMA_FROMDEVICE ); +memcpy (skb_put (new_skb, length), skb->data, length); + +pci_dma_sync_single_for_device (qdev->pdev, +dma_unmap_addr (sbq_desc, mapaddr), +dma_unmap_len (sbq_desc, maplen), +PCI_DMA_FROMDEVICE ); skb = new_skb;/* Frame error, so drop the packet. */
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/qlge-fix-receive-packets-drop.patch