From 9b6835f3ab7f05728caeaaa2ade09e80f1c5e825 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 26 May 2021 17:55:21 +0000 Subject: [PATCH] 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()