1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlxsw
WANG Cong 22dc13c837 net_sched: convert tcf_exts from list to pointer array
As pointed out by Jamal, an action could be shared by
multiple filters, so we can't use list to chain them
any more after we get rid of the original tc_action.
Instead, we could just save pointers to these actions
in tcf_exts, since they are refcount'ed, so convert
the list to an array of pointers.

The "ugly" part is the action API still accepts list
as a parameter, I just introduce a helper function to
convert the array of pointers to a list, instead of
relying on the C99 feature to iterate the array.

Fixes: a85a970af2 ("net_sched: move tc_action into tcf_common")
Reported-by: Jamal Hadi Salim <jhs@mojatatu.com>
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>
2016-08-17 19:27:51 -04:00
..
Kconfig mlxsw: spectrum: Introduce support for Data Center Bridging (DCB) 2016-04-06 17:24:18 -04:00
Makefile mlxsw: Introduce simplistic KVD linear area manager 2016-07-05 09:06:30 -07:00
cmd.h mlxsw: pci: Add resources query implementation. 2016-07-24 23:11:58 -07:00
core.c mlxsw: pci: Add resources query implementation. 2016-07-24 23:11:58 -07:00
core.h mlxsw: pci: Add max span resources to resources query 2016-07-24 23:11:59 -07:00
core_hwmon.c mlxsw: core: remove an unnecessary condition 2016-01-06 15:07:47 -05:00
emad.h mlxsw: Add interface to access registers and process events 2015-07-30 00:05:00 -07:00
item.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-10-20 06:08:27 -07:00
pci.c mlxsw: pci: Add max span resources to resources query 2016-07-24 23:11:59 -07:00
pci.h mlxsw: pci: Implement reset done check 2016-03-13 22:30:01 -04:00
port.h mlxsw: spectrum: Introduce port splitting 2016-03-01 16:07:31 -05:00
reg.h mlxsw: reg: Fix missing op field fill-up 2016-08-17 19:18:27 -04:00
spectrum.c net_sched: convert tcf_exts from list to pointer array 2016-08-17 19:27:51 -04:00
spectrum.h mlxsw: spectrum: Create PVID vPort before registering netdevice 2016-08-17 19:18:27 -04:00
spectrum_buffers.c mlxsw: spectrum: Allow packets to be trapped from any PG 2016-08-17 19:18:28 -04:00
spectrum_dcb.c mlxsw: spectrum: Do not override PAUSE settings 2016-08-08 12:57:27 -07:00
spectrum_kvdl.c mlxsw: Introduce simplistic KVD linear area manager 2016-07-05 09:06:30 -07:00
spectrum_router.c mlxsw: spectrum_router: Fix use after free 2016-08-14 21:32:05 -07:00
spectrum_switchdev.c mlxsw: spectrum: Unmap 802.1Q FID before destroying it 2016-08-17 19:18:27 -04:00
switchx2.c mlxsw: pci: Add resources query implementation. 2016-07-24 23:11:58 -07:00
trap.h mlxsw: spectrum: Trap loop-backed packets 2016-08-17 19:18:27 -04:00
txheader.h mlxsw: spectrum: Add initial support for Spectrum ASIC 2015-10-16 07:15:23 -07:00