diff options
| author | Mark Brown <broonie@kernel.org> | 2024-06-03 12:59:25 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-06-03 12:59:25 +0100 |
| commit | 0ae747759930186fbc3ab470ac4e40899c52438c (patch) | |
| tree | d3f2ffa3c6f91f711bac9155320004a34e59adce /include/linux/etherdevice.h | |
| parent | a8bd778958eface44a4931b30f1db5c98c9e6f40 (diff) | |
| parent | c3f38fa61af77b49866b006939479069cd451173 (diff) | |
regmap: Merge up fixes
We need these to get the i.MX8 boards working in CI again.
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 |
