]> git.proxmox.com Git - mirror_ovs.git/blobdiff - datapath/flow.h
datapath: enable NSH support
[mirror_ovs.git] / datapath / flow.h
index 0796b09472b103e689952d61cae7cbd441ef8157..c63e5869af406fe68495461f5fa7f12a46a468b7 100644 (file)
@@ -35,6 +35,7 @@
 #include <net/inet_ecn.h>
 #include <net/ip_tunnels.h>
 #include <net/dst_metadata.h>
+#include <net/nsh.h>
 
 struct sk_buff;
 
@@ -66,6 +67,11 @@ struct vlan_head {
        (offsetof(struct sw_flow_key, recirc_id) +      \
        FIELD_SIZEOF(struct sw_flow_key, recirc_id))
 
+struct ovs_key_nsh {
+       struct ovs_nsh_key_base base;
+       __be32 context[NSH_MD1_CONTEXT_SIZE];
+};
+
 struct sw_flow_key {
        u8 tun_opts[255];
        u8 tun_opts_len;
@@ -143,6 +149,7 @@ struct sw_flow_key {
                                } nd;
                        };
                } ipv6;
+               struct ovs_key_nsh nsh;         /* network service header */
        };
        struct {
                /* Connection tracking fields not packed above. */