aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_netlink_route_sched.txt
diff options
context:
space:
mode:
authorIoana-Ruxandra Stăncioi <stancioi@google.com>2020-08-03 14:53:01 +0000
committerMarco Elver <marco.elver@gmail.com>2020-08-10 17:55:15 +0200
commitd3694ffbb14fdf3e4df43e2ee081898749151d6c (patch)
tree112da9127d1b3123da91eb3a2b4a4cba36a0e332 /sys/linux/socket_netlink_route_sched.txt
parent83223b4c461a8adee2dacc8d21b8fb2383540b2f (diff)
sys/linux: add tca_flower_key_mpls_opts descritpion
mpls_opts: https://elixir.bootlin.com/linux/v5.8-rc4/source/net/sched/cls_flower.c#L670 mpls_opts_lse: https://elixir.bootlin.com/linux/v5.8-rc4/source/net/sched/cls_flower.c#L731
Diffstat (limited to 'sys/linux/socket_netlink_route_sched.txt')
-rw-r--r--sys/linux/socket_netlink_route_sched.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/linux/socket_netlink_route_sched.txt b/sys/linux/socket_netlink_route_sched.txt
index 371e8c909..1bc0fe671 100644
--- a/sys/linux/socket_netlink_route_sched.txt
+++ b/sys/linux/socket_netlink_route_sched.txt
@@ -4,6 +4,7 @@
# AF_NETLINK/NETLINK_ROUTE SCHED support.
include <linux/net.h>
+include <linux/mpls.h>
include <uapi/linux/if.h>
include <uapi/linux/netlink.h>
include <uapi/linux/rtnetlink.h>
@@ -764,6 +765,7 @@ fl_policy [
TCA_FLOWER_KEY_MPLS_BOS nlattr[TCA_FLOWER_KEY_MPLS_BOS, int8]
TCA_FLOWER_KEY_MPLS_TC nlattr[TCA_FLOWER_KEY_MPLS_TC, int8]
TCA_FLOWER_KEY_MPLS_LABEL nlattr[TCA_FLOWER_KEY_MPLS_LABEL, int32]
+ TCA_FLOWER_KEY_MPLS_OPTS nlnest[TCA_FLOWER_KEY_MPLS_OPTS, mpls_opts]
TCA_FLOWER_KEY_TCP_FLAGS nlattr[TCA_FLOWER_KEY_TCP_FLAGS, int16]
TCA_FLOWER_KEY_TCP_FLAGS_MASK nlattr[TCA_FLOWER_KEY_TCP_FLAGS_MASK, int16]
TCA_FLOWER_KEY_IP_TOS nlattr[TCA_FLOWER_KEY_IP_TOS, int8]
@@ -791,7 +793,6 @@ fl_policy [
TCA_FLOWER_KEY_CT_MARK_MASK nlattr[TCA_FLOWER_KEY_CT_MARK_MASK, int32]
TCA_FLOWER_KEY_CT_LABELS nlattr[TCA_FLOWER_KEY_CT_LABELS, array[int8, 16]]
TCA_FLOWER_KEY_CT_LABELS_MASK nlattr[TCA_FLOWER_KEY_CT_LABELS_MASK, array[int8, 16]]
-# TODO: add TCA_FLOWER_KEY_MPLS_OPTS
] [varlen]
enc_opts_policy [
@@ -817,6 +818,18 @@ erspan_opt_policy [
TCA_FLOWER_KEY_ENC_OPT_ERSPAN_HWID nlattr[TCA_FLOWER_KEY_ENC_OPT_ERSPAN_HWID, int8]
] [varlen]
+mpls_opts [
+ TCA_FLOWER_KEY_MPLS_OPTS_LSE nlattr[TCA_FLOWER_KEY_MPLS_OPTS_LSE, mpls_opts_lse]
+] [varlen]
+
+mpls_opts_lse [
+ TCA_FLOWER_KEY_MPLS_OPT_LSE_DEPTH nlattr[TCA_FLOWER_KEY_MPLS_OPT_LSE_DEPTH, int8[1:FLOW_DIS_MPLS_MAX]]
+ TCA_FLOWER_KEY_MPLS_OPT_LSE_TTL nlattr[TCA_FLOWER_KEY_MPLS_OPT_LSE_TTL, int8]
+ TCA_FLOWER_KEY_MPLS_OPT_LSE_BOS nlattr[TCA_FLOWER_KEY_MPLS_OPT_LSE_BOS, int8[0:MPLS_BOS_MASK]]
+ TCA_FLOWER_KEY_MPLS_OPT_LSE_TC nlattr[TCA_FLOWER_KEY_MPLS_OPT_LSE_TC, int8[0:MPLS_TC_MASK]]
+ TCA_FLOWER_KEY_MPLS_OPT_LSE_LABEL nlattr[TCA_FLOWER_KEY_MPLS_OPT_LSE_LABEL, mpls_label]
+] [varlen]
+
fw_policy [
TCA_FW_CLASSID nlattr[TCA_FW_CLASSID, tcm_handle]
TCA_FW_POLICE nlattr[TCA_FW_POLICE, array[police_policy]]