diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 748f254b50cc..43ab6cbf8446 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -965,6 +965,11 @@ static inline void skb_reset_mac_header(struct sk_buff *skb) | |||
| 965 | skb->mac.raw = skb->data; | 965 | skb->mac.raw = skb->data; |
| 966 | } | 966 | } |
| 967 | 967 | ||
| 968 | static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) | ||
| 969 | { | ||
| 970 | skb->mac.raw = skb->data + offset; | ||
| 971 | } | ||
| 972 | |||
| 968 | /* | 973 | /* |
| 969 | * CPUs often take a performance hit when accessing unaligned memory | 974 | * CPUs often take a performance hit when accessing unaligned memory |
| 970 | * locations. The actual performance hit varies, it can be small if the | 975 | * locations. The actual performance hit varies, it can be small if the |
