gianfar: fix undo of reserve()
Fix undo of reserve() before RX recycle gfar_new_skb reserve()s space in the SKB to align it. If an error occurs, and the skb needs to be returned to the RX recycle queue, the current code attempts to reset head, but did not reset tail. This patch remembers the alignment amount, and reverses the reserve() when needed. Signed-off-by: Ben Menchaca <ben@bigfootnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
af06393bbd
commit
a6d36d5689
@@ -566,6 +566,12 @@ struct rxfcb {
|
||||
u16 vlctl; /* VLAN control word */
|
||||
};
|
||||
|
||||
struct gianfar_skb_cb {
|
||||
int alignamount;
|
||||
};
|
||||
|
||||
#define GFAR_CB(skb) ((struct gianfar_skb_cb *)((skb)->cb))
|
||||
|
||||
struct rmon_mib
|
||||
{
|
||||
u32 tr64; /* 0x.680 - Transmit and Receive 64-byte Frame Counter */
|
||||
|
Reference in New Issue
Block a user