diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-02 01:11:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 16:43:41 -0500 |
commit | d476059e77d1af48453a58f9de1e36f2eaff6450 (patch) | |
tree | ac24382189ef5639d155b9f4872d937d50fb8cba /drivers/firewire/net.c | |
parent | 945db424bfbcb7b72a92702a487dc0000cd1efed (diff) |
net: Kill dev_rebuild_header
Now that there are no more users kill dev_rebuild_header and all of it's
implementations.
This is long overdue.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/firewire/net.c')
-rw-r--r-- | drivers/firewire/net.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c index 2c68da1ceeee..f4ea80d602f7 100644 --- a/drivers/firewire/net.c +++ b/drivers/firewire/net.c | |||
@@ -237,18 +237,6 @@ static int fwnet_header_create(struct sk_buff *skb, struct net_device *net, | |||
237 | return -net->hard_header_len; | 237 | return -net->hard_header_len; |
238 | } | 238 | } |
239 | 239 | ||
240 | static int fwnet_header_rebuild(struct sk_buff *skb) | ||
241 | { | ||
242 | struct fwnet_header *h = (struct fwnet_header *)skb->data; | ||
243 | |||
244 | if (get_unaligned_be16(&h->h_proto) == ETH_P_IP) | ||
245 | return arp_find((unsigned char *)&h->h_dest, skb); | ||
246 | |||
247 | dev_notice(&skb->dev->dev, "unable to resolve type %04x addresses\n", | ||
248 | be16_to_cpu(h->h_proto)); | ||
249 | return 0; | ||
250 | } | ||
251 | |||
252 | static int fwnet_header_cache(const struct neighbour *neigh, | 240 | static int fwnet_header_cache(const struct neighbour *neigh, |
253 | struct hh_cache *hh, __be16 type) | 241 | struct hh_cache *hh, __be16 type) |
254 | { | 242 | { |
@@ -282,7 +270,6 @@ static int fwnet_header_parse(const struct sk_buff *skb, unsigned char *haddr) | |||
282 | 270 | ||
283 | static const struct header_ops fwnet_header_ops = { | 271 | static const struct header_ops fwnet_header_ops = { |
284 | .create = fwnet_header_create, | 272 | .create = fwnet_header_create, |
285 | .rebuild = fwnet_header_rebuild, | ||
286 | .cache = fwnet_header_cache, | 273 | .cache = fwnet_header_cache, |
287 | .cache_update = fwnet_header_cache_update, | 274 | .cache_update = fwnet_header_cache_update, |
288 | .parse = fwnet_header_parse, | 275 | .parse = fwnet_header_parse, |