avf: remove the vxlan flow support 84/31984/1
authorChenmin Sun <chenmin.sun@intel.com>
Thu, 15 Apr 2021 10:51:24 +0000 (18:51 +0800)
committerChenmin Sun <chenmin.sun@intel.com>
Thu, 15 Apr 2021 10:51:24 +0000 (18:51 +0800)
This patch fixes a vxlan flow type checking bug which is introduced in
commit 7a016e87e473.
It is the native avf instead of dpdk that doesn't support vxlan flow offloading.
So this patch removes Vxlan flow supporting in native avf_plugin and adds
the vxlan flow back to dpdk_plugin.

Type: fix

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Change-Id: I1a72629cee462b890327c589c846f6d532b2d61d

src/plugins/avf/flow.c
src/plugins/dpdk/device/flow.c

index 4e94c81..e0d21cd 100644 (file)
@@ -491,7 +491,6 @@ avf_flow_ops_fn (vnet_main_t *vm, vnet_flow_dev_op_t op, u32 dev_instance,
        case VNET_FLOW_TYPE_IP6:
        case VNET_FLOW_TYPE_IP4_N_TUPLE:
        case VNET_FLOW_TYPE_IP6_N_TUPLE:
-       case VNET_FLOW_TYPE_IP4_VXLAN:
        case VNET_FLOW_TYPE_IP4_GTPU:
        case VNET_FLOW_TYPE_IP4_L2TPV3OIP:
        case VNET_FLOW_TYPE_IP4_IPSEC_ESP:
index 8daabc3..a090ec0 100644 (file)
@@ -638,6 +638,7 @@ dpdk_flow_ops_fn (vnet_main_t * vnm, vnet_flow_dev_op_t op, u32 dev_instance,
     case VNET_FLOW_TYPE_IP6:
     case VNET_FLOW_TYPE_IP4_N_TUPLE:
     case VNET_FLOW_TYPE_IP6_N_TUPLE:
+    case VNET_FLOW_TYPE_IP4_VXLAN:
     case VNET_FLOW_TYPE_IP4_GTPC:
     case VNET_FLOW_TYPE_IP4_GTPU:
     case VNET_FLOW_TYPE_IP4_L2TPV3OIP: