mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SK_BUFF]: Introduce skb_reset_mac_header(skb)
For the common, open coded 'skb->mac.raw = skb->data' operation, so that we can later turn skb->mac.raw into a offset, reducing the size of struct sk_buff in 64bit land while possibly keeping it as a pointer on 32bit. This one touches just the most simple case, next will handle the slightly more "complex" cases. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4c13eb6657
commit
459a98ed88
85 changed files with 119 additions and 109 deletions
|
|
@ -753,7 +753,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, struct net_device *dev)
|
|||
/* Set the mac.raw pointer, since this apparently isn't getting
|
||||
* done before we get the skb. Pull the data pointer past the mac data.
|
||||
*/
|
||||
skb->mac.raw = skb->data;
|
||||
skb_reset_mac_header(skb);
|
||||
skb_pull(skb, 12);
|
||||
|
||||
dma = pci_map_single(mpt_dev->pcidev, skb->data, skb->len,
|
||||
|
|
@ -1549,7 +1549,7 @@ mpt_lan_type_trans(struct sk_buff *skb, struct net_device *dev)
|
|||
struct mpt_lan_ohdr *fch = (struct mpt_lan_ohdr *)skb->data;
|
||||
struct fcllc *fcllc;
|
||||
|
||||
skb->mac.raw = skb->data;
|
||||
skb_reset_mac_header(skb);
|
||||
skb_pull(skb, sizeof(struct mpt_lan_ohdr));
|
||||
|
||||
if (fch->dtype == htons(0xffff)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue