mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: Push protocol type directly down to header_ops->cache()
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3769cffb1c
commit
e69dd336ee
7 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue