History

net/sched: flower: define new tunnel flags

Define new TCA_FLOWER_KEY_FLAGS_* flags for use in struct flow_dissector_key_control, covering the same flags as currently exposed through TCA_FLOWER_KEY_ENC_FLAGS. Put the new flags under FLOW_DIS_F_*. The idea is that we can later, move the existing flags under FLOW_DIS_F_* as well. The ynl flag names have been taken from the RFC iproute2 patch.

Asbjørn Sloth Tønnesen committed 2 years ago

Commit bfda5a61 parent 49ba9fc3 files · +14 −1Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+4−0
@@ -677,6 +677,10 @@ enum { · 676 unmodified lines
677677 enum {
678678 TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0),
679679 TCA_FLOWER_KEY_FLAGS_FRAG_IS_FIRST = (1 << 1),
680+ TCA_FLOWER_KEY_FLAGS_TUNNEL_CSUM = (1 << 2),
681+ TCA_FLOWER_KEY_FLAGS_TUNNEL_DONT_FRAGMENT = (1 << 3),
682+ TCA_FLOWER_KEY_FLAGS_TUNNEL_OAM = (1 << 4),
683+ TCA_FLOWER_KEY_FLAGS_TUNNEL_CRIT_OPT = (1 << 5),
680684 __TCA_FLOWER_KEY_FLAGS_MAX,
681685 };
682686