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
@@ -110,16 +110,14 @@ static int bnxt_tc_parse_actions(struct bnxt *bp,
|
||||
struct tcf_exts *tc_exts)
|
||||
{
|
||||
const struct tc_action *tc_act;
|
||||
LIST_HEAD(tc_actions);
|
||||
int rc;
|
||||
int i, rc;
|
||||
|
||||
if (!tcf_exts_has_actions(tc_exts)) {
|
||||
netdev_info(bp->dev, "no actions");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
tcf_exts_to_list(tc_exts, &tc_actions);
|
||||
list_for_each_entry(tc_act, &tc_actions, list) {
|
||||
tcf_exts_for_each_action(i, tc_act, tc_exts) {
|
||||
/* Drop action */
|
||||
if (is_tcf_gact_shot(tc_act)) {
|
||||
actions->flags |= BNXT_TC_ACTION_FLAG_DROP;
|
||||
|
Reference in New Issue
Block a user