Skip to contentSkip to conversation

net: sched: set the hw_stats_type in pedit loop

PATCH Applied Jiri Pirko 2 participants 2 messages Mar 16, 2020

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 net: sched: set the hw_stats_type in pedit loop

From: Jiri Pirko <[email protected]>

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")
---
 net/sched/cls_api.c | 1 +
 1 file changed, 1 insertion(+)
net/sched/cls_api.c +1 -0
index 2046102a763e..363264ca2e09 100644
@@ -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;
Signature · 1 line
2.21.1
maintainer Applied
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Mon, 16 Mar 2020 09:03:25 +0100

Quoted 7 lines

From: Jiri Pirko <[email protected]>

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")

Applied, thanks Jiri.