diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 72c2add39d54..ed8005903781 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -275,7 +275,6 @@ struct header_ops { const struct net_device *dev, const unsigned char *haddr); bool (*validate)(const char *ll_header, unsigned int len); - __be16 (*parse_protocol)(const struct sk_buff *skb); ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); @@ -2948,15 +2947,6 @@ static inline int dev_parse_header(const struct sk_buff *skb, return dev->header_ops->parse(skb, haddr); } -static inline __be16 dev_parse_header_protocol(const struct sk_buff *skb) -{ - const struct net_device *dev = skb->dev; - - if (!dev->header_ops || !dev->header_ops->parse_protocol) - return 0; - return dev->header_ops->parse_protocol(skb); -} - /* ll_header must have at least hard_header_len allocated */ static inline bool dev_validate_header(const struct net_device *dev, char *ll_header, int len)