kernel_optimize_test/include/net/tc_act
Cong Wang 9f8a739e72 act_mirred: get rid of tcfm_ifindex from struct tcf_mirred
tcfm_dev always points to the correct netdev and we already
hold a refcnt, so no need to use tcfm_ifindex to lookup again.

If we would support moving target netdev across netns, using
pointer would be better than ifindex.

This also fixes dumping obsolete ifindex, now after the
target device is gone we just dump 0 as ifindex.

Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-06 14:50:13 -05:00
..
tc_bpf.h
tc_connmark.h
tc_csum.h
tc_defact.h
tc_gact.h
tc_ife.h
tc_ipt.h
tc_mirred.h act_mirred: get rid of tcfm_ifindex from struct tcf_mirred 2017-12-06 14:50:13 -05:00
tc_nat.h
tc_pedit.h
tc_sample.h act_sample: get rid of tcf_sample_cleanup_rcu() 2017-11-30 10:19:17 -05:00
tc_skbedit.h
tc_skbmod.h
tc_tunnel_key.h
tc_vlan.h