From: Anatoly Burakov Date: Tue, 2 Oct 2018 13:34:45 +0000 (+0100) Subject: sched: do not check for invalid socket ID X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f50c6c4bd165e856b61b22a27542e26ad3332e63;p=dpdk.git sched: do not check for invalid socket ID We will be assigning "invalid" socket ID's to external heap, and malloc will now be able to verify if a supplied socket ID is in fact a valid one, rendering parameter checks for sockets obsolete. Signed-off-by: Anatoly Burakov Acked-by: Cristian Dumitrescu --- diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 9269e5c710..d4e2189c78 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -329,7 +329,7 @@ rte_sched_port_check_params(struct rte_sched_port_params *params) return -1; /* socket */ - if ((params->socket < 0) || (params->socket >= RTE_MAX_NUMA_NODES)) + if (params->socket < 0) return -3; /* rate */