linkmode: better use bitmap API
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | bitmap: add bitmap_and_and() and bitmap_and_andnot()include/ lib/ lib/ | +146 | 0 replies | |
| 2/9 | linkmode: make linkmode_and() return booleaninclude/ | +2 | 1 reply | |
| 3/9 | net: amd: xgbe: use linkmode_and() return value in xgbe_set_link_ksettings()drivers/ | +5 | 1 reply | |
| 4/9 | ixgbe: use linkmode_and() return value in ixgbe_get_eee_fw()drivers/ | +1 | 2 replies | |
| 5/9 | net: phy: use linkmode_and() return value in genphy_c45_eee_is_active()drivers/ | +1 | 1 reply | |
| 6/9 | net: avoid copies before linkmode_and()drivers/ drivers/ | +5 | 2 replies | |
| 7/9 | net: phy: use linkmode operation return values in phy_device.cdrivers/ include/ | +15 | 5 replies | |
| 8/9 | r8152: use linkmode_and_and() in EEE checksdrivers/ include/ | +12 | 1 reply | |
| 9/9 | MAINTAINERS: co-maintain linkmode.h under BITMAPMAINTAINERS | +1 | 1 reply |
Reviews trailers per patch
7 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Sergey Temerkhanov | Aleksandr Loktionov |
|---|---|---|
| 1/9 | ||
| 2/9 | R-b | |
| 3/9 | R-b | |
| 4/9 | R-b | R-b |
| 5/9 | R-b | |
| 6/9 | R-b | |
| 7/9 | R-b R-b | |
| 8/9 | R-b | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] linkmode: better use bitmap API
Several linkmode users discard the return value of bitmap_and() and then call linkmode_empty() on the result. Propagate the return value through linkmode_and() and use it to avoid redundant bitmap scans.
Add bitmap_and_and() and bitmap_and_andnot() for callers that combine three masks. The new helpers perform the operation and emptiness check in a single pass.
Yury Norov (9):
bitmap: add bitmap_and_and() and bitmap_and_andnot()
linkmode: make linkmode_and() return boolean
net: amd: xgbe: use linkmode_and() return value in
xgbe_set_link_ksettings()
ixgbe: use linkmode_and() return value in ixgbe_get_eee_fw()
net: phy: use linkmode_and() return value in
genphy_c45_eee_is_active()
net: avoid copies before linkmode_and()
net: phy: use linkmode operation return values in phy_device.c
r8152: use linkmode_and_and() in EEE checks
MAINTAINERS: co-maintain linkmode.h under BITMAP
MAINTAINERS | 1 + drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 9 ++- .../hisilicon/hns3/hns3pf/hclge_mdio.c | 5 +- .../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 3 +- drivers/net/phy/phy-c45.c | 3 +- drivers/net/phy/phy.c | 7 +- drivers/net/phy/phy_device.c | 14 ++-- drivers/net/usb/r8152.c | 10 +-- include/linux/bitmap.h | 32 ++++++++ include/linux/linkmode.h | 21 ++++- lib/bitmap.c | 46 ++++++++--- lib/test_bitmap.c | 78 +++++++++++++++++++ 12 files changed, 188 insertions(+), 41 deletions(-)
Signature · 1 line
2.53.0