Thread (28 messages) 28 messages, 4 authors, 2022-11-08

Re: [PATCH net-next v9 7/9] ice: Add an option to pre-allocate memory for ice_sched_node

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-11-05 02:12:12

On Fri,  4 Nov 2022 15:31:00 +0100 Michal Wilczynski wrote:
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.
kdoc missing here:

drivers/net/ethernet/intel/ice/ice_sched.c:154: warning: Function parameter or member 'prealloc_node' not described in 'ice_sched_add_node'
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help