diff options
author | Chenmin Sun <chenmin.sun@intel.com> | 2020-03-02 00:08:20 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-05-05 09:50:32 +0000 |
commit | ed63a0ff7b819ebfc4d82b4cfc09218fc49b8977 (patch) | |
tree | 9c5d2a1a097da101e1ee42fe59ababf826244ea5 /src/plugins/gtpu/gtpu_api.c | |
parent | 350737cd4510aa3869f4ba9efe558f2fcda674cc (diff) |
gtpu: RX offload for IPv6 payload supporting
this patch adds the offloading capability for the IPv4 GTPU
tunnel which the next-node is assigned as IPv6
Type: feature
Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Change-Id: Ie39cd43058d36514656351dc6e906a19d5de89c0
Diffstat (limited to 'src/plugins/gtpu/gtpu_api.c')
-rw-r--r-- | src/plugins/gtpu/gtpu_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/gtpu/gtpu_api.c b/src/plugins/gtpu/gtpu_api.c index 50eb0a129f5..24fb8e2eae2 100644 --- a/src/plugins/gtpu/gtpu_api.c +++ b/src/plugins/gtpu/gtpu_api.c @@ -64,7 +64,8 @@ vl_api_gtpu_offload_rx_t_handler (vl_api_gtpu_offload_rx_t * mp) goto err; } - if (t->decap_next_index != GTPU_INPUT_NEXT_IP4_INPUT) + if ((t->decap_next_index != GTPU_INPUT_NEXT_IP4_INPUT) && + (t->decap_next_index != GTPU_INPUT_NEXT_IP6_INPUT)) { rv = VNET_API_ERROR_INVALID_ADDRESS_FAMILY; goto err; |