diff options
| author | Hans Verkuil <[email protected]> | 2024-06-10 10:20:16 +0200 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-06-10 10:20:16 +0200 |
| commit | 8f79b09bbe69fc5cd25652e8afcc77e2f2984aab (patch) | |
| tree | a0d2ff2f5becdd8df6fcf4584ca75cc4a6cfed0a /include/linux/etherdevice.h | |
| parent | 1aea3d1d4a21e3e7895663b848ffae79ee82e065 (diff) | |
| parent | 83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff) | |
Merge tag 'v6.10-rc3'
Linux 6.10-rc3
This is needed for the ipu6 and mei fixes.
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'include/linux/etherdevice.h')
| -rw-r--r-- | include/linux/etherdevice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 2ad1ffa4ccb9..0ed47d00549b 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -636,6 +636,14 @@ static inline void eth_skb_pkt_type(struct sk_buff *skb, } } +static inline struct ethhdr *eth_skb_pull_mac(struct sk_buff *skb) +{ + struct ethhdr *eth = (struct ethhdr *)skb->data; + + skb_pull_inline(skb, ETH_HLEN); + return eth; +} + /** * eth_skb_pad - Pad buffer to mininum number of octets for Ethernet frame * @skb: Buffer to pad |