[NET]: Wrap netdevice hardware header creation.
Add inline for common usage of hardware header creation, and fix bug in IPV6 mcast where the assumption about negative return is an errno. Negative return from hard_header means not enough space was available,(ie -N bytes). Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4c94f8c0c9
commit
0c4e85813d
@@ -591,8 +591,7 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
|
||||
/*
|
||||
* Fill the device header for the ARP frame
|
||||
*/
|
||||
if (dev->hard_header &&
|
||||
dev->hard_header(skb,dev,ptype,dest_hw,src_hw,skb->len) < 0)
|
||||
if (dev_hard_header(skb, dev, ptype, dest_hw, src_hw, skb->len) < 0)
|
||||
goto out;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user