diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-01-15 12:46:14 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-01-15 12:46:14 -0500 |
| commit | 0c49cd295d42d0032af11d55e2140dbec11dc8d0 (patch) | |
| tree | 1e7d0e50b6b6d6e4de1fb6bb0b6d856c3932da58 /include/linux/etherdevice.h | |
| parent | 0c3e99437a66e4c869c60c2398449e6d98f3a988 (diff) | |
| parent | eaa27f34e91a14cdceed26ed6c6793ec1d186115 (diff) | |
Merge tag 'v3.19-rc4' into next
Merge with mainline to bring in the latest thermal and other changes.
Diffstat (limited to 'include/linux/etherdevice.h')
| -rw-r--r-- | include/linux/etherdevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 9c5529dc6d07..41c891d05f04 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <asm/bitsperlong.h> | 29 | #include <asm/bitsperlong.h> |
| 30 | 30 | ||
| 31 | #ifdef __KERNEL__ | 31 | #ifdef __KERNEL__ |
| 32 | u32 eth_get_headlen(void *data, unsigned int max_len); | ||
| 32 | __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); | 33 | __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); |
| 33 | extern const struct header_ops eth_header_ops; | 34 | extern const struct header_ops eth_header_ops; |
| 34 | 35 | ||
| @@ -391,4 +392,16 @@ static inline unsigned long compare_ether_header(const void *a, const void *b) | |||
| 391 | #endif | 392 | #endif |
| 392 | } | 393 | } |
| 393 | 394 | ||
| 395 | /** | ||
| 396 | * eth_skb_pad - Pad buffer to mininum number of octets for Ethernet frame | ||
| 397 | * @skb: Buffer to pad | ||
| 398 | * | ||
| 399 | * An Ethernet frame should have a minimum size of 60 bytes. This function | ||
| 400 | * takes short frames and pads them with zeros up to the 60 byte limit. | ||
| 401 | */ | ||
| 402 | static inline int eth_skb_pad(struct sk_buff *skb) | ||
| 403 | { | ||
| 404 | return skb_put_padto(skb, ETH_ZLEN); | ||
| 405 | } | ||
| 406 | |||
| 394 | #endif /* _LINUX_ETHERDEVICE_H */ | 407 | #endif /* _LINUX_ETHERDEVICE_H */ |
