Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2021 12:39:24 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9b6835f3ab7f - main - LinuxKPI: netdevice.h remove more ifnet operating macros
Message-ID:  <202105271239.14RCdOB9034049@gitrepo.freebsd.org>

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

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

commit 9b6835f3ab7f05728caeaaa2ade09e80f1c5e825
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-05-26 17:55:21 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
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()
 



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