summaryrefslogtreecommitdiff
path: root/include/linux/netdev_features.h
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2025-01-14 20:21:58 +0300
committerMaxime Ripard <mripard@kernel.org>2025-01-14 20:21:58 +0300
commit12080e85254fa05ff25ad2e6e74dc523621a8706 (patch)
treeff0bd8354f12ff20d956a3e15e71555c5ed275a4 /include/linux/netdev_features.h
parent34d813e45ecb8e84f7154509b1acf7dda57ef09f (diff)
parent24c61d553302ee49e9c21dd251275ba8c36dcfe4 (diff)
downloadlinux-12080e85254fa05ff25ad2e6e74dc523621a8706.tar.xz
Merge drm/drm-next into drm-misc-next-fixes
drm-next has the dmem cgroup patches we need to merge fixes for. Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'include/linux/netdev_features.h')
-rw-r--r--include/linux/netdev_features.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h
index 66e7d26b70a4..11be70a7929f 100644
--- a/include/linux/netdev_features.h
+++ b/include/linux/netdev_features.h
@@ -253,4 +253,11 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
NETIF_F_GSO_UDP_TUNNEL | \
NETIF_F_GSO_UDP_TUNNEL_CSUM)
+static inline netdev_features_t netdev_base_features(netdev_features_t features)
+{
+ features &= ~NETIF_F_ONE_FOR_ALL;
+ features |= NETIF_F_ALL_FOR_ALL;
+ return features;
+}
+
#endif /* _LINUX_NETDEV_FEATURES_H */