[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180530203722.GH2010@nanopsycho>
Date: Wed, 30 May 2018 22:37:22 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Vlad Buslov <vladbu@...lanox.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
davem@...emloft.net, ast@...nel.org, daniel@...earbox.net,
kliteyn@...lanox.com
Subject: Re: [PATCH v3 11/11] net: sched: change action API to use array of
pointers to actions
Sun, May 27, 2018 at 11:17:29PM CEST, vladbu@...lanox.com wrote:
>Act API used linked list to pass set of actions to functions. It is
>intrusive data structure that stores list nodes inside action structure
>itself, which means it is not safe to modify such list concurrently.
>However, action API doesn't use any linked list specific operations on this
>set of actions, so it can be safely refactored into plain pointer array.
>
>Refactor action API to use array of pointers to tc_actions instead of
>linked list. Change argument 'actions' type of exported action init,
>destroy and dump functions.
>
>Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
Even with the nit Marcelo found, this looks fine to me.
Acked-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists