Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 00:36:41 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1b9b5de489c2 - stable/13 - LinuxKPI: netdevice.h remove more ifnet operating macros
Message-ID:  <202107180036.16I0afAC049462@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=1b9b5de489c23790c33614e6db3fe6d8984e3a74

commit 1b9b5de489c23790c33614e6db3fe6d8984e3a74
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-05-26 17:55:21 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-07-18 00:35:03 +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
    Reviewed by:    kib
    Differential Revision: https://reviews.freebsd.org/D30478
    
    (cherry picked from commit 9b6835f3ab7f05728caeaaa2ade09e80f1c5e825)
---
 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()
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107180036.16I0afAC049462>