aboutsummaryrefslogtreecommitdiff
path: root/include/linux/netdev_features.h
diff options
context:
space:
mode:
authorRodrigo Vivi <[email protected]>2022-08-04 10:19:24 -0400
committerRodrigo Vivi <[email protected]>2022-08-04 10:19:24 -0400
commitfc30eea1542dd787c6aa46e970014e97e390c5b2 (patch)
tree420538a4eac443a7dd99deaca5ebc8efe6bddfb4 /include/linux/netdev_features.h
parent8eb403671e3886adcd939223442d49ff3ba52846 (diff)
parent5493ee1919eae4f49d62276cf5986b7f7c7aa8f6 (diff)
Merge drm/drm-next into drm-intel-next
Sync up. In special to get the drm-intel-gt-next stuff. Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'include/linux/netdev_features.h')
-rw-r--r--include/linux/netdev_features.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h
index 2c6b9e416225..7c2d77d75a88 100644
--- a/include/linux/netdev_features.h
+++ b/include/linux/netdev_features.h
@@ -169,7 +169,7 @@ enum {
#define NETIF_F_HW_HSR_FWD __NETIF_F(HW_HSR_FWD)
#define NETIF_F_HW_HSR_DUP __NETIF_F(HW_HSR_DUP)
-/* Finds the next feature with the highest number of the range of start till 0.
+/* Finds the next feature with the highest number of the range of start-1 till 0.
*/
static inline int find_next_netdev_feature(u64 feature, unsigned long start)
{
@@ -188,7 +188,7 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
for ((bit) = find_next_netdev_feature((mask_addr), \
NETDEV_FEATURE_COUNT); \
(bit) >= 0; \
- (bit) = find_next_netdev_feature((mask_addr), (bit) - 1))
+ (bit) = find_next_netdev_feature((mask_addr), (bit)))
/* Features valid for ethtool to change */
/* = all defined minus driver/device-class-related */