Skip to contentSkip to conversation

syscalls/ioctl03: add IFF_NO_CARRIER flag

PATCH In review Sven Schnelle 2 participants 2 messages Oct 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/ioctl03: add IFF_NO_CARRIER flag

since linux kernel commit 195624d9c26b
("tun: support not enabling carrier in TUNSETIFF") IFF_NO_CARRIER is a valid flag. Therefore add it to the list.

---
 testcases/kernel/syscalls/ioctl/ioctl03.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
testcases/kernel/syscalls/ioctl/ioctl03.c +6 -1
index 3d4ac3e24..5a7a0a6a2 100644
@@ -40,6 +40,10 @@
 #define IFF_NAPI_FRAGS	0x0020
 #endif
 
+#ifndef IFF_NO_CARRIER
+#define IFF_NO_CARRIER	0x0040
+#endif
+
 static struct {
 	unsigned int flag;
 	const char *name;
@@ -51,7 +55,8 @@ static struct {
 	{IFF_VNET_HDR, "VNET_HDR"},
 	{IFF_MULTI_QUEUE, "MULTI_QUEUE"},
 	{IFF_NAPI, "IFF_NAPI"},
-	{IFF_NAPI_FRAGS, "IFF_NAPI_FRAGS"}
+	{IFF_NAPI_FRAGS, "IFF_NAPI_FRAGS"},
+	{IFF_NO_CARRIER, "IFF_NO_CARRIER"}
 };
 
 static void verify_features(void)
Signature · 5 lines
2.37.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Sven,

thanks a lot, merged!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp