All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net-next: replace open code with helper functions
@ 2021-10-10  4:03 Juhee Kang
  2021-10-10  4:03 ` [PATCH net-next 1/3] bnxt: use netif_is_rxfh_configured instead of open code Juhee Kang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Juhee Kang @ 2021-10-10  4:03 UTC (permalink / raw)
  To: michael.chan, davem, kuba, kys, haiyangz, sthemmin, wei.liu,
	decui, netdev

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-10 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10  4:03 [PATCH net-next 0/3] net-next: replace open code with helper functions Juhee Kang
2021-10-10  4:03 ` [PATCH net-next 1/3] bnxt: use netif_is_rxfh_configured instead of open code Juhee Kang
2021-10-10  4:03 ` [PATCH net-next 2/3] hv_netvsc: use netif_is_bond_master() " Juhee Kang
2021-10-10  4:03 ` [PATCH net-next 3/3] mlxsw: spectrum: use netif_is_macsec() " Juhee Kang
2021-10-10 10:30 ` [PATCH net-next 0/3] net-next: replace open code with helper functions patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.