From: Sven Schnelle <svens@linux.ibm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/ioctl03: add IFF_NO_CARRIER flag
Date: Fri, 7 Oct 2022 12:57:27 +0200 [thread overview]
Message-ID: <20221007105727.2303349-1-svens@linux.ibm.com> (raw)
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.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
---
testcases/kernel/syscalls/ioctl/ioctl03.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/ioctl/ioctl03.c b/testcases/kernel/syscalls/ioctl/ioctl03.c
index 3d4ac3e24..5a7a0a6a2 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl03.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl03.c
@@ -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)
--
2.37.3
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2022-10-10 12:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-07 10:57 Sven Schnelle [this message]
2022-10-10 12:56 ` [LTP] [PATCH] syscalls/ioctl03: add IFF_NO_CARRIER flag Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221007105727.2303349-1-svens@linux.ibm.com \
--to=svens@linux.ibm.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.