]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/sched/act_simple.c
net_sched: add network namespace support for tc actions
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 22 Feb 2016 23:57:53 +0000 (15:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 19:16:21 +0000 (14:16 -0500)
commitddf97ccdd7cb7e00daba465a5c947b8d941dc2a4
treebbf91a42bcee7b993018d992983f7ee8e81c5dab
parent1d4150c02c5709fdfd80f10368a31867de35e72e
net_sched: add network namespace support for tc actions

Currently tc actions are stored in a per-module hashtable,
therefore are visible to all network namespaces. This is
probably the last part of the tc subsystem which is not
aware of netns now. This patch makes them per-netns,
several tc action API's need to be adjusted for this.

The tc action API code is ugly due to historical reasons,
we need to refactor that code in the future.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
include/net/act_api.h
net/sched/act_api.c
net/sched/act_bpf.c
net/sched/act_connmark.c
net/sched/act_csum.c
net/sched/act_gact.c
net/sched/act_ipt.c
net/sched/act_mirred.c
net/sched/act_nat.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_simple.c
net/sched/act_skbedit.c
net/sched/act_vlan.c