]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/ice_switch_filter.c
net/ena: update version to 2.0.1
[dpdk.git] / drivers / net / ice / ice_switch_filter.c
index 5424223b633b011f0bb3354d378b5f15428d67e3..b88b4f59a3ceabb5d64c8068d80cd32481a5c8c3 100644 (file)
@@ -435,6 +435,11 @@ ice_create_switch_filter(struct ice_pf *pf,
                        tun_type = ICE_SW_TUN_VXLAN;
                if (item->type == RTE_FLOW_ITEM_TYPE_NVGRE)
                        tun_type = ICE_SW_TUN_NVGRE;
+               /* reserve one more memory slot for ETH which may
+                * consume 2 lookup items.
+                */
+               if (item->type == RTE_FLOW_ITEM_TYPE_ETH)
+                       item_num++;
        }
        rule_info.tun_type = tun_type;