On Mon, Jan 14, 2019 at 8:21 AM Maxim Mikityanskiy <maxi...@mellanox.com> wrote: > > The previous commit introduced parse_protocol callback which should > extract the protocol number from the L2 header. Make all Ethernet > devices support it. > > Signed-off-by: Maxim Mikityanskiy <maxi...@mellanox.com> > --- > include/linux/etherdevice.h | 1 + > net/ethernet/eth.c | 13 +++++++++++++ > 2 files changed, 14 insertions(+) > > diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h > index 2c0af7b00715..e2f3b21cd72a 100644 > --- a/include/linux/etherdevice.h > +++ b/include/linux/etherdevice.h > @@ -44,6 +44,7 @@ int eth_header_cache(const struct neighbour *neigh, struct > hh_cache *hh, > __be16 type); > void eth_header_cache_update(struct hh_cache *hh, const struct net_device > *dev, > const unsigned char *haddr); > +__be16 eth_header_parse_protocol(const struct sk_buff *skb);
Does not need to be exposed in the header file or exported.