net_sched: remove list_head from tc_action
After commit90b73b77d0
, list_head is no longer needed. Now we just need to convert the list iteration to array iteration for drivers. Fixes:90b73b77d0
("net: sched: change action API to use array of pointers to actions") Cc: Jiri Pirko <jiri@mellanox.com> Cc: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7d485c451f
commit
244cd96adb
@@ -796,11 +796,10 @@ int nfp_flower_compile_action(struct nfp_app *app,
|
||||
struct net_device *netdev,
|
||||
struct nfp_fl_payload *nfp_flow)
|
||||
{
|
||||
int act_len, act_cnt, err, tun_out_cnt, out_cnt;
|
||||
int act_len, act_cnt, err, tun_out_cnt, out_cnt, i;
|
||||
enum nfp_flower_tun_type tun_type;
|
||||
const struct tc_action *a;
|
||||
u32 csum_updated = 0;
|
||||
LIST_HEAD(actions);
|
||||
|
||||
memset(nfp_flow->action_data, 0, NFP_FL_MAX_A_SIZ);
|
||||
nfp_flow->meta.act_len = 0;
|
||||
@@ -810,8 +809,7 @@ int nfp_flower_compile_action(struct nfp_app *app,
|
||||
tun_out_cnt = 0;
|
||||
out_cnt = 0;
|
||||
|
||||
tcf_exts_to_list(flow->exts, &actions);
|
||||
list_for_each_entry(a, &actions, list) {
|
||||
tcf_exts_for_each_action(i, a, flow->exts) {
|
||||
err = nfp_flower_loop_action(app, a, flow, nfp_flow, &act_len,
|
||||
netdev, &tun_type, &tun_out_cnt,
|
||||
&out_cnt, &csum_updated);
|
||||
|
Reference in New Issue
Block a user