[SK_BUFF]: Introduce skb_set_mac_header()
For the cases where we want to set skb->mac.raw to an offset from skb->data. Simple cases first, the memmove ones and specially pktgen will be left for later. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f64955eb11
commit
48d49d0ccd
@@ -90,7 +90,7 @@ static void emulate_large_send_offload(struct sk_buff *skb)
|
||||
if (!nskb)
|
||||
break;
|
||||
skb_reserve(nskb, 32);
|
||||
nskb->mac.raw = nskb->data - 14;
|
||||
skb_set_mac_header(nskb, -ETH_HLEN);
|
||||
nskb->nh.raw = nskb->data;
|
||||
iph = nskb->nh.iph;
|
||||
memcpy(nskb->data, skb->nh.raw, doffset);
|
||||
|
Reference in New Issue
Block a user