mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
f64955eb11
commit
48d49d0ccd
6 changed files with 11 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue