Skip to content

Commit 8de9222

Browse files
author
Izabela Bakollari
committed
net: linkmode: add linkmode_fill() helper
JIRA: https://issues.redhat.com/browse/RHEL-33716 commit 96fa96e Author: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Date: Wed Nov 15 11:39:18 2023 +0000 net: linkmode: add linkmode_fill() helper Add a linkmode_fill() helper, which will allow us to convert phylink's open coded bitmap_fill() operations. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
1 parent 107a20e commit 8de9222

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/linkmode.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ static inline void linkmode_zero(unsigned long *dst)
1010
bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
1111
}
1212

13+
static inline void linkmode_fill(unsigned long *dst)
14+
{
15+
bitmap_fill(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
16+
}
17+
1318
static inline void linkmode_copy(unsigned long *dst, const unsigned long *src)
1419
{
1520
bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS);

0 commit comments

Comments
 (0)