[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
@@ -368,7 +368,7 @@ static __be16 myri_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
struct ethhdr *eth;
|
||||
unsigned char *rawp;
|
||||
|
||||
skb->mac.raw = skb->data + MYRI_PAD_LEN;
|
||||
skb_set_mac_header(skb, MYRI_PAD_LEN);
|
||||
skb_pull(skb, dev->hard_header_len);
|
||||
eth = eth_hdr(skb);
|
||||
|
||||
|
Reference in New Issue
Block a user