* [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag
@ 2026-09-02 13:40 Avinesh Kumar via ltp
2026-09-02 17:42 ` [LTP] " linuxtestproject.agent
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Avinesh Kumar via ltp @ 2026-09-02 13:40 UTC (permalink / raw)
To: ltp
From: Avinesh Kumar <avinesh.kumar@suse.com>
Kernel commit 485e38995cc3 ("tun/tap: add IFF_BACKPRESSURE flag")
introduced a new TUNSETIFF flag, and d00c7369ef24 ("tun/tap &
vhost-net: stop tail-drop when IFF_BACKPRESSURE is set") added it
to TUN_FEATURES. TUNGETFEATURES now reports bit 0x80 on kernels
that support it, which ioctl03 does not recognize and reports as:
ioctl03.c:90: TFAIL: (UNKNOWN 0x80)
Add IFF_BACKPRESSURE to the known flags table.
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.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 8a868a98e605..1f538016344c 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl03.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl03.c
@@ -44,6 +44,10 @@
#define IFF_NO_CARRIER 0x0040
#endif
+#ifndef IFF_BACKPRESSURE
+#define IFF_BACKPRESSURE 0x0080
+#endif
+
static struct {
unsigned int flag;
const char *name;
@@ -56,7 +60,8 @@ static struct {
{IFF_MULTI_QUEUE, "MULTI_QUEUE"},
{IFF_NAPI, "IFF_NAPI"},
{IFF_NAPI_FRAGS, "IFF_NAPI_FRAGS"},
- {IFF_NO_CARRIER, "IFF_NO_CARRIER"}
+ {IFF_NO_CARRIER, "IFF_NO_CARRIER"},
+ {IFF_BACKPRESSURE, "IFF_BACKPRESSURE"}
};
static void verify_features(void)
--
2.55.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] syscalls/ioctl03: add IFF_BACKPRESSURE flag
2026-09-02 13:40 [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag Avinesh Kumar via ltp
@ 2026-09-02 17:42 ` linuxtestproject.agent
2026-09-03 13:06 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-09-03 13:07 ` Andrea Cervesato via ltp
2 siblings, 0 replies; 4+ messages in thread
From: linuxtestproject.agent @ 2026-09-02 17:42 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
On Wed, Sep 2, 2026, Avinesh Kumar wrote:
> syscalls/ioctl03: add IFF_BACKPRESSURE flag
Verdict - Reviewed
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag
2026-09-02 13:40 [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag Avinesh Kumar via ltp
2026-09-02 17:42 ` [LTP] " linuxtestproject.agent
@ 2026-09-03 13:06 ` Andrea Cervesato via ltp
2026-09-03 13:07 ` Andrea Cervesato via ltp
2 siblings, 0 replies; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2026-09-03 13:06 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag
2026-09-02 13:40 [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag Avinesh Kumar via ltp
2026-09-02 17:42 ` [LTP] " linuxtestproject.agent
2026-09-03 13:06 ` [LTP] [PATCH] " Andrea Cervesato via ltp
@ 2026-09-03 13:07 ` Andrea Cervesato via ltp
2 siblings, 0 replies; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2026-09-03 13:07 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Merged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-03 13:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 13:40 [LTP] [PATCH] syscalls/ioctl03: add IFF_BACKPRESSURE flag Avinesh Kumar via ltp
2026-09-02 17:42 ` [LTP] " linuxtestproject.agent
2026-09-03 13:06 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-09-03 13:07 ` Andrea Cervesato via ltp
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.