Skip to content

Commit 74522e7

Browse files
jpirkodavem330
authored andcommitted
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: 44f8658 ("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>
1 parent 764e558 commit 74522e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/sched/cls_api.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,6 +3614,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
36143614
entry->mangle.val = tcf_pedit_val(act, k);
36153615
entry->mangle.offset = tcf_pedit_offset(act, k);
36163616
entry = &flow_action->entries[++j];
3617+
entry->hw_stats_type = act->hw_stats_type;
36173618
}
36183619
} else if (is_tcf_csum(act)) {
36193620
entry->id = FLOW_ACTION_CSUM;

0 commit comments

Comments
 (0)