* [PATCH net] net: ynl: allow u8 sub-type for indexed array
@ 2026-08-20 11:09 Hilal Rahmatullah
2026-08-20 18:00 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Hilal Rahmatullah @ 2026-08-20 11:09 UTC (permalink / raw)
To: Donald Hunter, Jakub Kicinski, David S. Miller, Eric Dumazet,
Paolo Abeni, Simon Horman, open list:NETWORKING [GENERAL],
open list
Cc: Hilal Rahmatullah
add u8 as supported subtype for indexed array, this is required
for attribute NL80211_STA_INFO_CHAIN_SIGNAL serialization.
Signed-off-by: Hilal Rahmatullah <hilalrahmatullah11@gmail.com>
---
tools/net/ynl/pyynl/ynl_gen_c.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py
index cdc3646f2642..7373a48d5516 100755
--- a/tools/net/ynl/pyynl/ynl_gen_c.py
+++ b/tools/net/ynl/pyynl/ynl_gen_c.py
@@ -1158,7 +1158,7 @@ class AttrSet(SpecAttrSet):
elif elem['type'] == 'nest':
t = TypeNest(self.family, self, elem, value)
elif elem['type'] == 'indexed-array' and 'sub-type' in elem:
- if elem["sub-type"] in ['binary', 'nest', 'u32']:
+ if elem["sub-type"] in ['binary', 'nest', 'u32', 'u8']:
t = TypeIndexedArray(self.family, self, elem, value)
else:
raise Exception(f'new_attr: unsupported sub-type {elem["sub-type"]}')
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-20 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 11:09 [PATCH net] net: ynl: allow u8 sub-type for indexed array Hilal Rahmatullah
2026-08-20 18:00 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox