summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-03-16 09:03:25 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-16 02:13:43 -0700
commit74522e7baae2561870ea8ddf09dc6a126458cd7b (patch)
tree1d43dd340e61890191bdb86db456e04a49a4f82c /net/sched/cls_api.c
parent764e55824d0aef055437f7fd5683582a1613aedf (diff)
downloadlinux-74522e7baae2561870ea8ddf09dc6a126458cd7b.tar.bz2
net: sched: set the hw_stats_type in pedit loop
For a single pedit action, multiple offload entries may be used. Set the hw_stats_type to all of them. Fixes: 44f865801741 ("sched: act: allow user to specify type of HW stats for a filter") Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 2046102a763e..363264ca2e09 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -3614,6 +3614,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
entry->mangle.val = tcf_pedit_val(act, k);
entry->mangle.offset = tcf_pedit_offset(act, k);
entry = &flow_action->entries[++j];
+ entry->hw_stats_type = act->hw_stats_type;
}
} else if (is_tcf_csum(act)) {
entry->id = FLOW_ACTION_CSUM;