[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180529.160421.1871276034653682770.davem@davemloft.net>
Date: Tue, 29 May 2018 16:04:21 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: vladbu@...lanox.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, kliteyn@...lanox.com
Subject: Re: [PATCH] net: sched: split tc_ctl_tfilter into three handlers
From: Vlad Buslov <vladbu@...lanox.com>
Date: Sun, 27 May 2018 22:55:03 +0300
> tc_ctl_tfilter handles three netlink message types: RTM_NEWTFILTER,
> RTM_DELTFILTER, RTM_GETTFILTER. However, implementation of this function
> involves a lot of branching on specific message type because most of the
> code is message-specific. This significantly complicates adding new
> functionality and doesn't provide much benefit of code reuse.
>
> Split tc_ctl_tfilter to three standalone functions that handle filter new,
> delete and get requests.
>
> The only truly protocol independent part of tc_ctl_tfilter is code that
> looks up queue, class, and block. Refactor this code to standalone
> tcf_block_find function that is used by all three new handlers.
>
> Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
This looks fine but doesn't apply cleanly to net-next.
Powered by blists - more mailing lists