git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5675c2e
)
sched: do not check for invalid socket ID
author
Anatoly Burakov
<anatoly.burakov@intel.com>
Tue, 2 Oct 2018 13:34:45 +0000
(14:34 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Thu, 11 Oct 2018 08:37:45 +0000
(10:37 +0200)
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>
lib/librte_sched/rte_sched.c
patch
|
blob
|
history
diff --git
a/lib/librte_sched/rte_sched.c
b/lib/librte_sched/rte_sched.c
index
9269e5c
..
d4e2189
100644
(file)
--- 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 */