summaryrefslogtreecommitdiffstats
path: root/src/plugins/gtpu/gtpu.api
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2020-02-17 02:19:15 +0800
committerDamjan Marion <dmarion@me.com>2020-02-17 12:32:59 +0000
commit00fdf53c7076d1bd0045439e73f0144d613eb09c (patch)
tree1d2214e4d401d4b74dd9295ad9040447f29bcc41 /src/plugins/gtpu/gtpu.api
parent4dc5a43f4871c3f0a88ad0bb9041332bf3b03f1b (diff)
gtpu: offload RX flow
ip4 gtpu cli/api (using flow infra) to create flows and enable them on different hardware (currently tested with ice) to offload a gtpu tunnel onto hw: set flow-offload gtpu hw TwentyFiveGigabitEthernet3/0/0 rx gtpu_tunnel0 to remove offload: set flow-offload gtpu hw TwentyFiveGigabitEthernet3/0/0 rx gtpu_tunnel0 del TODO:ipv6 handling Type: feature Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: I8e356feeb0b16cfeadc1bbbe92f773aa2916e715
Diffstat (limited to 'src/plugins/gtpu/gtpu.api')
-rw-r--r--src/plugins/gtpu/gtpu.api17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/gtpu/gtpu.api b/src/plugins/gtpu/gtpu.api
index 052e6a292d7..f084cc84e19 100644
--- a/src/plugins/gtpu/gtpu.api
+++ b/src/plugins/gtpu/gtpu.api
@@ -106,6 +106,23 @@ autoreply define sw_interface_set_gtpu_bypass
option vat_help = "<intfc> | sw_if_index <id> [ip4 | ip6] [enable | disable]";
};
+/** \brief Offload gtpu 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 - gtpu interface to offload
+ @param enable - if non-zero enable, else disable
+*/
+autoreply define gtpu_offload_rx
+{
+ u32 client_index;
+ u32 context;
+ u32 hw_if_index;
+ u32 sw_if_index;
+ u8 enable;
+ option vat_help = "hw <intfc> rx <tunnel-name> [del]";
+};
+
/*
* Local Variables:
* eval: (c-set-style "gnu")