lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 10 Oct 2021 13:03:26 +0900
From:   Juhee Kang <claudiajkang@...il.com>
To:     michael.chan@...adcom.com, davem@...emloft.net, kuba@...nel.org,
        kys@...rosoft.com, haiyangz@...rosoft.com, sthemmin@...rosoft.com,
        wei.liu@...nel.org, decui@...rosoft.com, netdev@...r.kernel.org
Subject: [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(-)

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ