LinuxKPI: netdevice.h remove more ifnet operating macros
Now that mlx4 and ofed either are operating on ifnet functions directly or have a private copy of these macros, we can remove them from linux/netdevice.h. With this only the #define for net_device to ifnet is left. Sponsored by: The FreeBSD Foundation MFC after: 12 days Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D30478
This commit is contained in:
parent
825b7d4c9d
commit
9b6835f3ab
@ -53,15 +53,6 @@
|
|||||||
|
|
||||||
#define net_device ifnet
|
#define net_device ifnet
|
||||||
|
|
||||||
#define dev_hold(d) if_ref(d)
|
|
||||||
#define dev_put(d) if_rele(d)
|
|
||||||
#define dev_net(d) ((d)->if_vnet)
|
|
||||||
|
|
||||||
#define net_eq(a,b) ((a) == (b))
|
|
||||||
|
|
||||||
#define netif_running(dev) !!((dev)->if_drv_flags & IFF_DRV_RUNNING)
|
|
||||||
#define netif_carrier_ok(dev) ((dev)->if_link_state == LINK_STATE_UP)
|
|
||||||
|
|
||||||
#define rtnl_lock()
|
#define rtnl_lock()
|
||||||
#define rtnl_unlock()
|
#define rtnl_unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user