]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Check for complete packet on skb allocation error
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 6 Nov 2014 23:02:19 +0000 (17:02 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Nov 2014 00:00:15 +0000 (19:00 -0500)
commitd0a73bc029a5dc72568a3939e4b1e80054b69d29
treebfda906e32b1522b4d1c051cf207adb6ca7138f8
parentd5db5927cbbccb1a1d3fcadeaeb08af0b0b9c2d4
amd-xgbe: Check for complete packet on skb allocation error

If the skb allocation fails during receive processing, the driver would
continue reading descriptors without first determining if there were
any more descriptors for the current packet. Update the code to check
whether more descriptors are associated with the current packet or
whether to move on to the next descriptor as a new packet.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c