Revision 22dc13c837c33207548c8ee5116b64e2930a6e23 authored by WANG Cong on 14 August 2016, 05:35:00 UTC, committed by David S. Miller on 17 August 2016, 23:27:51 UTC
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: a85a970af265 ("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>
1 parent 2734437
File | Mode | Size |
---|---|---|
6lowpan | ||
Kconfig | -rw-r--r-- | 986 bytes |
Makefile | -rw-r--r-- | 329 bytes |
core.c | -rw-r--r-- | 8.8 KB |
core.h | -rw-r--r-- | 1.3 KB |
header_ops.c | -rw-r--r-- | 6.8 KB |
ieee802154.h | -rw-r--r-- | 3.4 KB |
netlink.c | -rw-r--r-- | 4.5 KB |
nl-mac.c | -rw-r--r-- | 34.7 KB |
nl-phy.c | -rw-r--r-- | 7.9 KB |
nl802154.c | -rw-r--r-- | 66.8 KB |
nl802154.h | -rw-r--r-- | 154 bytes |
nl_policy.c | -rw-r--r-- | 3.3 KB |
rdev-ops.h | -rw-r--r-- | 8.8 KB |
socket.c | -rw-r--r-- | 23.4 KB |
sysfs.c | -rw-r--r-- | 2.6 KB |
sysfs.h | -rw-r--r-- | 194 bytes |
trace.c | -rw-r--r-- | 102 bytes |
trace.h | -rw-r--r-- | 8.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...