The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9b6835f3ab7f05728caeaaa2ade09e80f1c5e825

commit 9b6835f3ab7f05728caeaaa2ade09e80f1c5e825
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2021-05-26 17:55:21 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2021-05-27 12:26:01 +0000

    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
---
 sys/compat/linuxkpi/common/include/linux/netdevice.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h 
b/sys/compat/linuxkpi/common/include/linux/netdevice.h
index 07c111cc4fc9..faff2fde5f32 100644
--- a/sys/compat/linuxkpi/common/include/linux/netdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/netdevice.h
@@ -53,15 +53,6 @@
 
 #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_unlock()
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to