]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Associate Tx SKB with proper ring descriptor
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 3 Dec 2014 00:16:54 +0000 (18:16 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 18:15:42 +0000 (13:15 -0500)
commit470f4858437291f8c11107142e01f88ab57c836b
treea017e63d3e95fee8ad1d98ead741305fcbac07e1
parent2e9b283a933d8e11de723ea1df599c2c2209c236
amd-xgbe: Associate Tx SKB with proper ring descriptor

The SKB for a Tx packet is associated with an xgbe_ring_data structure
in the xgbe_map_tx_skb function.  However, it is being saved in the
structure after the last structure used when the SKB is mapped.  Use
the last used structure to save the SKB value.

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