table: remove incorrect check for ACL
authorJasvinder Singh <jasvinder.singh@intel.com>
Thu, 29 Mar 2018 18:31:31 +0000 (19:31 +0100)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Wed, 4 Apr 2018 10:26:20 +0000 (12:26 +0200)
Remove wrong check for table entry pointer.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
lib/librte_table/rte_table_acl.c

index 73d3910..14d5401 100644 (file)
@@ -472,12 +472,6 @@ rte_table_acl_entry_add_bulk(
                        return -EINVAL;
                }
 
-               if (entries_ptr[i] == NULL) {
-                       RTE_LOG(ERR, TABLE, "%s: entries_ptr[%" PRIu32 "] parameter is NULL\n",
-                                       __func__, i);
-                       return -EINVAL;
-               }
-
                rule = keys[i];
                if (rule->priority > RTE_ACL_MAX_PRIORITY) {
                        RTE_LOG(ERR, TABLE, "%s: Priority is too high\n", __func__);