summaryrefslogtreecommitdiff
path: root/lib/librte_sched
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2018-10-02 14:34:45 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-11 10:37:45 +0200
commitf50c6c4bd165e856b61b22a27542e26ad3332e63 (patch)
tree500c52e929f7a3ca49221c4edf8d0739f774b77b /lib/librte_sched
parent5675c2ea15bb8cacb3b37ac17eceacbd0b80bdce (diff)
downloaddpdk-f50c6c4bd165e856b61b22a27542e26ad3332e63.zip
dpdk-f50c6c4bd165e856b61b22a27542e26ad3332e63.tar.gz
dpdk-f50c6c4bd165e856b61b22a27542e26ad3332e63.tar.xz
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 <anatoly.burakov@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Diffstat (limited to 'lib/librte_sched')
-rw-r--r--lib/librte_sched/rte_sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index 9269e5c..d4e2189 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 */