summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan/vxlan.api
diff options
context:
space:
mode:
authoreyal bari <royalbee@gmail.com>2018-04-17 11:20:27 +0300
committerJohn Lo <loj@cisco.com>2018-06-13 02:52:10 +0000
commitaf86a48733c548931f8983984328b906f7e7aef8 (patch)
treef3f612fe25f6ad14c2085c674955352187cb5ac8 /src/vnet/vxlan/vxlan.api
parent02ff5f7ce08a13477ffaae5c413a0de6aac68afd (diff)
vxlan:offload RX flow
ip4 vxlan cli/api (using flow infra) to create flows and enable them on different hardware (currently tested with i40e) to offload a vxlan tunnel onto hw: set flow-offload vxlan hw TwentyFiveGigabitEthernet3/0/0 rx vxlan_tunnel1 to remove offload: set flow-offload vxlan hw TwentyFiveGigabitEthernet3/0/0 rx vxlan_tunnel1 del TODO:ipv6 handling Change-Id: I70e61f792ef8e3f007d03d7df70e97ea4725b101 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/vxlan/vxlan.api')
-rw-r--r--src/vnet/vxlan/vxlan.api16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vnet/vxlan/vxlan.api b/src/vnet/vxlan/vxlan.api
index dae96af6e10..9e969de7bc5 100644
--- a/src/vnet/vxlan/vxlan.api
+++ b/src/vnet/vxlan/vxlan.api
@@ -86,3 +86,19 @@ autoreply define sw_interface_set_vxlan_bypass
u8 is_ipv6;
u8 enable;
};
+
+/** \brief Offload vxlan rx request
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param hw_if_index - rx hw interface
+ @param sw_if_index - vxlan interface to offload
+ @param enable - if non-zero enable, else disable
+*/
+autoreply define vxlan_offload_rx
+{
+ u32 client_index;
+ u32 context;
+ u32 hw_if_index;
+ u32 sw_if_index;
+ u8 enable;
+};