Skip to content

Commit 0629f22

Browse files
committed
ynl: netdev: drop unnecessary enum-as-flags
enum-as-flags can be used when enum declares bit positions but we want to carry bitmask in an attribute. If the definition is already provided as flags there's no need to indicate the flag-iness of the attribute. Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20231003153416.2479808-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent d86e5fb commit 0629f22

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Documentation/netlink/specs/netdev.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ attribute-sets:
7474
doc: Bitmask of enabled xdp-features.
7575
type: u64
7676
enum: xdp-act
77-
enum-as-flags: true
7877
-
7978
name: xdp-zc-max-segs
8079
doc: max fragment count supported by ZC driver
@@ -87,7 +86,6 @@ attribute-sets:
8786
See Documentation/networking/xdp-rx-metadata.rst for more details.
8887
type: u64
8988
enum: xdp-rx-metadata
90-
enum-as-flags: true
9189

9290
operations:
9391
list:

0 commit comments

Comments
 (0)