New upstream version 18.11.1
[deb_dpdk.git] / drivers / net / cxgbe / cxgbe_flow.c
index 4deaff8..7b87bdf 100644 (file)
@@ -732,6 +732,10 @@ cxgbe_rtef_parse_items(struct rte_flow *flow,
                                                "parse items cannot be repeated (except void)");
                        repeat[i->type] = 1;
 
+                       /* No spec found for this pattern item. Skip it */
+                       if (!i->spec)
+                               break;
+
                        /* validate the item */
                        ret = cxgbe_validate_item(i, e);
                        if (ret)