netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Implement stats_update callback for pedit and skbedit
@ 2020-03-26 20:45 Petr Machata
  2020-03-26 20:45 ` [PATCH net-next 1/3] sched: act_skbedit: Implement stats_update callback Petr Machata
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Petr Machata @ 2020-03-26 20:45 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Petr Machata, idosch, jiri, alexpe

The stats_update callback is used for adding HW counters to the SW ones.
Both skbedit and pedit actions are actually recognized by flow_offload.h,
but do not implement these callbacks. As a consequence, the reported values
are only the SW ones, even where there is a HW counter available.

Patch #1 adds the callback to action skbedit, patch #2 adds it to action
pedit. Patch #3 tweaks an skbedit selftest with a check that would have
caught this problem.

The pedit test is not likewise tweaked, because the iproute2 pedit action
currently does not support JSON dumping. This will be addressed later.

Petr Machata (3):
  sched: act_skbedit: Implement stats_update callback
  sched: act_pedit: Implement stats_update callback
  selftests: skbedit_priority: Test counters at the skbedit rule

 net/sched/act_pedit.c                                 | 11 +++++++++++
 net/sched/act_skbedit.c                               | 11 +++++++++++
 .../selftests/net/forwarding/skbedit_priority.sh      |  9 +++++++--
 3 files changed, 29 insertions(+), 2 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-27  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-26 20:45 [PATCH net-next 0/3] Implement stats_update callback for pedit and skbedit Petr Machata
2020-03-26 20:45 ` [PATCH net-next 1/3] sched: act_skbedit: Implement stats_update callback Petr Machata
2020-03-26 20:45 ` [PATCH net-next 2/3] sched: act_pedit: " Petr Machata
2020-03-26 20:45 ` [PATCH net-next 3/3] selftests: skbedit_priority: Test counters at the skbedit rule Petr Machata
2020-03-27  0:01 ` [PATCH net-next 0/3] Implement stats_update callback for pedit and skbedit Alexander Petrovskiy
2020-03-27  2:20 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).