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>
This commit is contained in:

committed by
David S. Miller

parent
945db424bf
commit
d476059e77
@@ -261,7 +261,6 @@ struct header_ops {
|
||||
unsigned short type, const void *daddr,
|
||||
const void *saddr, unsigned int len);
|
||||
int (*parse)(const struct sk_buff *skb, unsigned char *haddr);
|
||||
int (*rebuild)(struct sk_buff *skb);
|
||||
int (*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type);
|
||||
void (*cache_update)(struct hh_cache *hh,
|
||||
const struct net_device *dev,
|
||||
@@ -1346,7 +1345,7 @@ enum netdev_priv_flags {
|
||||
* if one wants to override the ndo_*() functions
|
||||
* @ethtool_ops: Management operations
|
||||
* @fwd_ops: Management operations
|
||||
* @header_ops: Includes callbacks for creating,parsing,rebuilding,etc
|
||||
* @header_ops: Includes callbacks for creating,parsing,caching,etc
|
||||
* of Layer 2 headers.
|
||||
*
|
||||
* @flags: Interface flags (a la BSD)
|
||||
@@ -2399,15 +2398,6 @@ static inline int dev_parse_header(const struct sk_buff *skb,
|
||||
return dev->header_ops->parse(skb, haddr);
|
||||
}
|
||||
|
||||
static inline int dev_rebuild_header(struct sk_buff *skb)
|
||||
{
|
||||
const struct net_device *dev = skb->dev;
|
||||
|
||||
if (!dev->header_ops || !dev->header_ops->rebuild)
|
||||
return 0;
|
||||
return dev->header_ops->rebuild(skb);
|
||||
}
|
||||
|
||||
typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr, int len);
|
||||
int register_gifconf(unsigned int family, gifconf_func_t *gifconf);
|
||||
static inline int unregister_gifconf(unsigned int family)
|
||||
|
Reference in New Issue
Block a user