OpenCloudOS-Kernel/net/dsa
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
..
Kconfig net: dsa: Fix dependencies on bridge 2017-11-14 11:11:45 +09:00
Makefile net: dsa: Support prepended Broadcom tag 2017-11-13 10:34:54 +09:00
dsa.c net: dsa: Support prepended Broadcom tag 2017-11-13 10:34:54 +09:00
dsa2.c net: dsa: assign a CPU port to DSA port 2017-12-05 18:01:34 -05:00
dsa_priv.h net: dsa: Support prepended Broadcom tag 2017-11-13 10:34:54 +09:00
legacy.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
master.c net: dsa: setup and teardown master device 2017-11-09 09:26:49 +09:00
port.c net: dsa: Don't add vlans when vlan filtering is disabled 2017-11-10 14:28:13 +09:00
slave.c act_mirred: get rid of tcfm_ifindex from struct tcf_mirred 2017-12-06 14:50:13 -05:00
switch.c net: dsa: support cross-chip FDB operations 2017-12-02 21:21:17 -05:00
tag_brcm.c net: dsa: Support prepended Broadcom tag 2017-11-13 10:34:54 +09:00
tag_dsa.c net: dsa: {e}dsa: set offload_fwd_mark on received packets 2017-11-11 19:33:11 +09:00
tag_edsa.c net: dsa: {e}dsa: set offload_fwd_mark on received packets 2017-11-11 19:33:11 +09:00
tag_ksz.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_lan9303.c net: dsa: lan9303: calculate offload_fwd_mark from tag 2017-11-14 21:47:48 +09:00
tag_mtk.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_qca.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_trailer.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00