aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow/flow.h
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2019-12-15 01:16:45 +0800
committerDamjan Marion <dmarion@me.com>2019-12-17 18:10:57 +0000
commit4ff8d615caf992a643abe7506f289c499de10d5c (patch)
tree04494940962fbc6720f2a0054183a60a6890075a /src/vnet/flow/flow.h
parent497dd89432e96d0daba90db9468e630cb469b01a (diff)
flow: add ethernet flow
Type: feature This patch adds the ethernet type flow support Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: I6de163d04c6472df60a5f296fb428efd000267c4
Diffstat (limited to 'src/vnet/flow/flow.h')
-rw-r--r--src/vnet/flow/flow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/flow/flow.h b/src/vnet/flow/flow.h
index c0aa9119ce1..5def01a08ef 100644
--- a/src/vnet/flow/flow.h
+++ b/src/vnet/flow/flow.h
@@ -21,10 +21,15 @@
#include <vnet/l3_types.h>
#include <vnet/ip/ip4_packet.h>
#include <vnet/ip/ip6_packet.h>
+#include <vnet/ethernet/packet.h>
#define foreach_flow_type \
+ /* l2 flow*/ \
+ _(ETHERNET, ethernet, "ethernet") \
+ /* l4 flow*/ \
_(IP4_N_TUPLE, ip4_n_tuple, "ipv4-n-tuple") \
_(IP6_N_TUPLE, ip6_n_tuple, "ipv6-n-tuple") \
+ /* L4 tunnel flow*/ \
_(IP4_VXLAN, ip4_vxlan, "ipv4-vxlan") \
_(IP6_VXLAN, ip6_vxlan, "ipv6-vxlan") \
_(IP4_GTPC, ip4_gtpc, "ipv4-gtpc") \
@@ -36,6 +41,9 @@
_(IP6_GTPU_IP4, ip6_gtpu_ip4, "ipv6-gtpu-ipv4") \
_(IP6_GTPU_IP6, ip6_gtpu_ip6, "ipv6-gtpu-ipv6")
+#define foreach_flow_entry_ethernet \
+ _fe(ethernet_header_t, eth_hdr)
+
#define foreach_flow_entry_ip4_n_tuple \
_fe(ip4_address_and_mask_t, src_addr) \
_fe(ip4_address_and_mask_t, dst_addr) \