net: Push protocol type directly down to header_ops->cache()
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1983,13 +1983,14 @@ isdn_net_rebuild_header(struct sk_buff *skb)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int isdn_header_cache(const struct neighbour *neigh, struct hh_cache *hh)
|
||||
static int isdn_header_cache(const struct neighbour *neigh, struct hh_cache *hh,
|
||||
__be16 type)
|
||||
{
|
||||
const struct net_device *dev = neigh->dev;
|
||||
isdn_net_local *lp = netdev_priv(dev);
|
||||
|
||||
if (lp->p_encap == ISDN_NET_ENCAP_ETHER)
|
||||
return eth_header_cache(neigh, hh);
|
||||
return eth_header_cache(neigh, hh, type);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user