netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/4] net/sched: act_pedit: minor improvements
@ 2023-03-14 20:24 Pedro Tammela
  2023-03-14 20:24 ` [PATCH net-next v2 1/4] net/sched: act_pedit: use extack in 'ex' parsing errors Pedro Tammela
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Pedro Tammela @ 2023-03-14 20:24 UTC (permalink / raw)
  To: netdev
  Cc: jhs, xiyou.wangcong, jiri, davem, edumazet, kuba, pabeni,
	Pedro Tammela

This series aims to improve the code and usability of act_pedit for
netlink users.

Patch 1 improves error reporting for extended keys parsing with extack.
While at it, do a minor refactor on error handling.

Patch 2 checks the static offsets a priori on create/update. Currently,
this is done at the datapath for both static and runtime offsets.

Patch 3 removes a check from the datapath which is redundant since the
netlink parsing validates the key types.

Patch 4 changes the 'pr_info()' calls in the datapath to rate limited
versions.

v1->v2: Added patch 3 to the series as discussed with Simon.

Pedro Tammela (4):
  net/sched: act_pedit: use extack in 'ex' parsing errors
  net/sched: act_pedit: check static offsets a priori
  net/sched: act_pedit: remove extra check for key type
  net/sched: act_pedit: rate limit datapath messages

 net/sched/act_pedit.c | 77 +++++++++++++++++++------------------------
 1 file changed, 33 insertions(+), 44 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-03-17 19:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14 20:24 [PATCH net-next v2 0/4] net/sched: act_pedit: minor improvements Pedro Tammela
2023-03-14 20:24 ` [PATCH net-next v2 1/4] net/sched: act_pedit: use extack in 'ex' parsing errors Pedro Tammela
2023-03-15 15:51   ` Simon Horman
2023-03-17 19:15     ` Pedro Tammela
2023-03-14 20:24 ` [PATCH net-next v2 2/4] net/sched: act_pedit: check static offsets a priori Pedro Tammela
2023-03-15 15:52   ` Simon Horman
2023-03-14 20:24 ` [PATCH net-next v2 3/4] net/sched: act_pedit: remove extra check for key type Pedro Tammela
2023-03-15 15:53   ` Simon Horman
2023-03-14 20:24 ` [PATCH net-next v2 4/4] net/sched: act_pedit: rate limit datapath messages Pedro Tammela
2023-03-15 15:53   ` Simon Horman
2023-03-14 21:24 ` [PATCH net-next v2 0/4] net/sched: act_pedit: minor improvements Pedro Tammela

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