aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-13 02:28:12 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-13 05:29:59 -0400
commite69dd336ee3a05a589629b505b18ba5e7a5b4c54 (patch)
treece221d370029164d5ea498ab0da50672d03a5b0e /drivers/net
parent3769cffb1c48f64640ffab7ce3bffe867342c0f0 (diff)
net: Push protocol type directly down to header_ops->cache()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/plip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/plip.c b/drivers/net/plip.c
index ca4df7f4cf21..a9e9ca8a86ed 100644
--- a/drivers/net/plip.c
+++ b/drivers/net/plip.c
@@ -152,7 +152,7 @@ static int plip_hard_header(struct sk_buff *skb, struct net_device *dev,
152 unsigned short type, const void *daddr, 152 unsigned short type, const void *daddr,
153 const void *saddr, unsigned len); 153 const void *saddr, unsigned len);
154static int plip_hard_header_cache(const struct neighbour *neigh, 154static int plip_hard_header_cache(const struct neighbour *neigh,
155 struct hh_cache *hh); 155 struct hh_cache *hh, __be16 type);
156static int plip_open(struct net_device *dev); 156static int plip_open(struct net_device *dev);
157static int plip_close(struct net_device *dev); 157static int plip_close(struct net_device *dev);
158static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); 158static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
@@ -1026,11 +1026,11 @@ plip_hard_header(struct sk_buff *skb, struct net_device *dev,
1026} 1026}
1027 1027
1028static int plip_hard_header_cache(const struct neighbour *neigh, 1028static int plip_hard_header_cache(const struct neighbour *neigh,
1029 struct hh_cache *hh) 1029 struct hh_cache *hh, __be16 type)
1030{ 1030{
1031 int ret; 1031 int ret;
1032 1032
1033 ret = eth_header_cache(neigh, hh); 1033 ret = eth_header_cache(neigh, hh, type);
1034 if (ret == 0) { 1034 if (ret == 0) {
1035 struct ethhdr *eth; 1035 struct ethhdr *eth;
1036 1036