flow.h (91de76e661a266731fc2889a398ad1694df9d523) | flow.h (b2d0f5d5dc53532e6f07bc546a476a55ebdfe0f3) |
---|---|
1/* 2 * Copyright (c) 2007-2017 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 21 unchanged lines hidden (view full) --- 30#include <linux/in6.h> 31#include <linux/jiffies.h> 32#include <linux/time.h> 33#include <linux/flex_array.h> 34#include <linux/cpumask.h> 35#include <net/inet_ecn.h> 36#include <net/ip_tunnels.h> 37#include <net/dst_metadata.h> | 1/* 2 * Copyright (c) 2007-2017 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 21 unchanged lines hidden (view full) --- 30#include <linux/in6.h> 31#include <linux/jiffies.h> 32#include <linux/time.h> 33#include <linux/flex_array.h> 34#include <linux/cpumask.h> 35#include <net/inet_ecn.h> 36#include <net/ip_tunnels.h> 37#include <net/dst_metadata.h> |
38#include <net/nsh.h> |
|
38 39struct sk_buff; 40 41enum sw_flow_mac_proto { 42 MAC_PROTO_NONE = 0, 43 MAC_PROTO_ETHERNET, 44}; 45#define SW_FLOW_KEY_INVALID 0x80 --- 15 unchanged lines hidden (view full) --- 61 __be16 tpid; /* Vlan type. Generally 802.1q or 802.1ad.*/ 62 __be16 tci; /* 0 if no VLAN, VLAN_TAG_PRESENT set otherwise. */ 63}; 64 65#define OVS_SW_FLOW_KEY_METADATA_SIZE \ 66 (offsetof(struct sw_flow_key, recirc_id) + \ 67 FIELD_SIZEOF(struct sw_flow_key, recirc_id)) 68 | 39 40struct sk_buff; 41 42enum sw_flow_mac_proto { 43 MAC_PROTO_NONE = 0, 44 MAC_PROTO_ETHERNET, 45}; 46#define SW_FLOW_KEY_INVALID 0x80 --- 15 unchanged lines hidden (view full) --- 62 __be16 tpid; /* Vlan type. Generally 802.1q or 802.1ad.*/ 63 __be16 tci; /* 0 if no VLAN, VLAN_TAG_PRESENT set otherwise. */ 64}; 65 66#define OVS_SW_FLOW_KEY_METADATA_SIZE \ 67 (offsetof(struct sw_flow_key, recirc_id) + \ 68 FIELD_SIZEOF(struct sw_flow_key, recirc_id)) 69 |
70struct ovs_key_nsh { 71 struct ovs_nsh_key_base base; 72 __be32 context[NSH_MD1_CONTEXT_SIZE]; 73}; 74 |
|
69struct sw_flow_key { 70 u8 tun_opts[IP_TUNNEL_OPTS_MAX]; 71 u8 tun_opts_len; 72 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ 73 struct { 74 u32 priority; /* Packet QoS priority. */ 75 u32 skb_mark; /* SKB mark. */ 76 u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ --- 61 unchanged lines hidden (view full) --- 138 } ct_orig; /* Conntrack original direction fields. */ 139 struct { 140 struct in6_addr target; /* ND target address. */ 141 u8 sll[ETH_ALEN]; /* ND source link layer address. */ 142 u8 tll[ETH_ALEN]; /* ND target link layer address. */ 143 } nd; 144 }; 145 } ipv6; | 75struct sw_flow_key { 76 u8 tun_opts[IP_TUNNEL_OPTS_MAX]; 77 u8 tun_opts_len; 78 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ 79 struct { 80 u32 priority; /* Packet QoS priority. */ 81 u32 skb_mark; /* SKB mark. */ 82 u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ --- 61 unchanged lines hidden (view full) --- 144 } ct_orig; /* Conntrack original direction fields. */ 145 struct { 146 struct in6_addr target; /* ND target address. */ 147 u8 sll[ETH_ALEN]; /* ND source link layer address. */ 148 u8 tll[ETH_ALEN]; /* ND target link layer address. */ 149 } nd; 150 }; 151 } ipv6; |
152 struct ovs_key_nsh nsh; /* network service header */ |
|
146 }; 147 struct { 148 /* Connection tracking fields not packed above. */ 149 struct { 150 __be16 src; /* CT orig tuple tp src port. */ 151 __be16 dst; /* CT orig tuple tp dst port. */ 152 } orig_tp; 153 u32 mark; --- 135 unchanged lines hidden --- | 153 }; 154 struct { 155 /* Connection tracking fields not packed above. */ 156 struct { 157 __be16 src; /* CT orig tuple tp src port. */ 158 __be16 dst; /* CT orig tuple tp dst port. */ 159 } orig_tp; 160 u32 mark; --- 135 unchanged lines hidden --- |