]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: act_mirred: Create function tcf_mirred_to_dev and improve readability
authorVictor Nogueira <victor@mojatatu.com>
Tue, 19 Dec 2023 18:16:21 +0000 (15:16 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:35:06 +0000 (13:35 +0100)
commit73db191dc30d42a84c27d01c85f6f0cd851f91d7
treed0393cfede050d1e00145f32ae4bcee79d95ea73
parent334a8348b2df26526f3298848ad6864285592caf
net/sched: act_mirred: Create function tcf_mirred_to_dev and improve readability

[ Upstream commit 16085e48cb48aeb50a1178dc276747749910b0f2 ]

As a preparation for adding block ID to mirred, separate the part of
mirred that redirect/mirrors to a dev into a specific function so that it
can be called by blockcast for each dev.

Also improve readability. Eg. rename use_reinsert to dont_clone and skb2
to skb_to_send.

Co-developed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Co-developed-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 52f671db1882 ("net/sched: act_mirred: use the backlog for mirred ingress")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/act_mirred.c