Skip to content

net-next: replace open code with helper functions

Juhee Kang netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bnxt: use netif_is_rxfh_configured instead of open codedrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c+2 -20 repliesApplied
2/3hv_netvsc: use netif_is_bond_master() instead of open codedrivers/net/hyperv/netvsc_drv.c+1 -20 repliesApplied
3/3mlxsw: spectrum: use netif_is_macsec() instead of open codeinclude/linux/netdevice.h+1 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] net-next: replace open code with helper functions

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(-)
Signature · 1 line
2.25.1