From ed63a0ff7b819ebfc4d82b4cfc09218fc49b8977 Mon Sep 17 00:00:00 2001 From: Chenmin Sun Date: Mon, 2 Mar 2020 00:08:20 +0800 Subject: 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 Change-Id: Ie39cd43058d36514656351dc6e906a19d5de89c0 --- src/plugins/gtpu/gtpu_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/gtpu/gtpu_api.c') 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; -- cgit 1.2.3-korg