aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJuhee Kang <claudiajkang@gmail.com>2021-10-10 13:03:29 +0900
committerDavid S. Miller <davem@davemloft.net>2021-10-10 11:18:48 +0100
commit0199215216978b612d4e8be11e878b87bc643033 (patch)
treedae754be17be8f94adae162721c50339976b76a2 /include/linux/netdevice.h
parenthv_netvsc: use netif_is_bond_master() instead of open code (diff)
downloadlinux-dev-0199215216978b612d4e8be11e878b87bc643033.tar.xz
linux-dev-0199215216978b612d4e8be11e878b87bc643033.zip
mlxsw: spectrum: use netif_is_macsec() instead of open code
Open code which is dev->priv_flags & IFF_MACSEC has already defined as netif_is_macsec(). So use netif_is_macsec() instead of open code. This patch doesn't change logic. Signed-off-by: Juhee Kang <claudiajkang@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 15f4a658e436..0723c1314ea2 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -5237,7 +5237,7 @@ static inline void netif_keep_dst(struct net_device *dev)
static inline bool netif_reduces_vlan_mtu(struct net_device *dev)
{
/* TODO: reserve and use an additional IFF bit, if we get more users */
- return dev->priv_flags & IFF_MACSEC;
+ return netif_is_macsec(dev);
}
extern struct pernet_operations __net_initdata loopback_net_ops;