From: Davide Caratti <dcaratti@redhat.com>
To: "Asbjørn Sloth Tønnesen" <ast@fiberby.net>
Cc: David Ahern <dsahern@kernel.org>,
aclaudi@redhat.com, Ilya Maximets <i.maximets@ovn.org>,
echaudro@redhat.com, netdev@vger.kernel.org,
Jamal Hadi Salim <jhs@mojatatu.com>,
stephen@networkplumber.org
Subject: [PATCH iproute2-next v3 1/2] uapi: add support for dissecting tunnel metadata with TC flower
Date: Tue, 16 Jul 2024 10:57:19 +0200 [thread overview]
Message-ID: <e3927dcdaca1e9d23abd7dd2bf35e57df4e8ddb3.1721119088.git.dcaratti@redhat.com> (raw)
In-Reply-To: <cover.1721119088.git.dcaratti@redhat.com>
Update uAPI headers to allow dissecting tunnel metadata with TC flower.
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
include/uapi/linux/pkt_cls.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 229fc925ec3a..30767cc99896 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -554,6 +554,9 @@ enum {
TCA_FLOWER_KEY_SPI, /* be32 */
TCA_FLOWER_KEY_SPI_MASK, /* be32 */
+ TCA_FLOWER_KEY_ENC_FLAGS, /* be32 */
+ TCA_FLOWER_KEY_ENC_FLAGS_MASK, /* be32 */
+
__TCA_FLOWER_MAX,
};
@@ -674,6 +677,10 @@ enum {
enum {
TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0),
TCA_FLOWER_KEY_FLAGS_FRAG_IS_FIRST = (1 << 1),
+ TCA_FLOWER_KEY_FLAGS_TUNNEL_CSUM = (1 << 2),
+ TCA_FLOWER_KEY_FLAGS_TUNNEL_DONT_FRAGMENT = (1 << 3),
+ TCA_FLOWER_KEY_FLAGS_TUNNEL_OAM = (1 << 4),
+ TCA_FLOWER_KEY_FLAGS_TUNNEL_CRIT_OPT = (1 << 5),
};
enum {
--
2.45.2
next prev parent reply other threads:[~2024-07-16 8:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-16 8:57 [PATCH iproute2-next v3 0/2] tc: f_flower: add support for matching on tunnel metadata Davide Caratti
2024-07-16 8:57 ` Davide Caratti [this message]
2024-07-16 8:57 ` [PATCH iproute2-next v3 2/2] " Davide Caratti
2024-07-16 22:14 ` Asbjørn Sloth Tønnesen
2024-08-04 15:34 ` David Ahern
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=e3927dcdaca1e9d23abd7dd2bf35e57df4e8ddb3.1721119088.git.dcaratti@redhat.com \
--to=dcaratti@redhat.com \
--cc=aclaudi@redhat.com \
--cc=ast@fiberby.net \
--cc=dsahern@kernel.org \
--cc=echaudro@redhat.com \
--cc=i.maximets@ovn.org \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).