Skip to content
Commit 39533b73 authored by Michal Wilczynski's avatar Michal Wilczynski Committed by Liwei Song
Browse files

ice: Add an option to pre-allocate memory for ice_sched_node

commit bdf96d96

 upstream.

devlink-rate API requires a priv object to be allocated when node still
doesn't have a parent. This is problematic, because ice_sched_node can't
be currently created without a parent.

Add an option to pre-allocate memory for ice_sched_node struct. Add
new arguments to ice_sched_add() and ice_sched_add_elems() that allow
for pre-allocation of memory for ice_sched_node struct.

Signed-off-by: default avatarMichal Wilczynski <michal.wilczynski@intel.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent 7c80a980
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment