[PATCH net-next 0/3] net-next: replace open code with helper functions
From: Juhee Kang <hidden>
Date: 2021-10-10 04:03:42
Currently, there are many helper functions on netdevice.h. However, some code doesn't use the helper functions and remains open code. So this patchset replaces open code with an appropriate helper function. First patch modifies to use netif_is_rxfh_configured instead of dev->priv_flags & IFF_RXFH_CONFIGURED. Second patch replaces open code with netif_is_bond_master. Last patch substitutes netif_is_macsec() for dev->priv_flags & IFF_MACSEC. Juhee Kang (3): bnxt: use netif_is_rxfh_configured instead of open code hv_netvsc: use netif_is_bond_master() instead of open code mlxsw: spectrum: use netif_is_macsec() instead of open code drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 +- drivers/net/hyperv/netvsc_drv.c | 3 +-- include/linux/netdevice.h | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) -- 2.25.1