All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/3] Simplify min()/max(), contains() and normalize() cnum implementation
@ 2026-07-29 19:49 Vinicius Sampaio
  2026-07-29 19:50 ` [PATCH bpf-next v2 1/3] bpf: Simplify cnum contains() implementation Vinicius Sampaio
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vinicius Sampaio @ 2026-07-29 19:49 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, john.fastabend, andrii, martin.lau, eddyz87, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, tangyazhou518,
	shenghaoyuan0928, vldsampaio

This patches simplifies some functions of the cnum implementation:

- smin()/smax()
- contains()
- normalize()

---

v1 -> v2:

    - Split the contains and normalize changes into 2 patches.
    - Added comments regarding the use of empty cnum's in
      {u,s}range_overflow().
    - Fixed typing mistake in cover letter (removed the `fix` word).

v1: https://lore.kernel.org/bpf/20260728015601.1567098-1-vldsampaio@pm.me/

Vinicius Sampaio (3):
  bpf: Simplify cnum contains() implementation
  bpf: Simplify cnum normalize() implementation
  bpf: Avoid redundant min()/max() in cnum signed bounds

 kernel/bpf/cnum_defs.h | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

-- 
2.54.0



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

end of thread, other threads:[~2026-07-29 23:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 19:49 [PATCH bpf-next v2 0/3] Simplify min()/max(), contains() and normalize() cnum implementation Vinicius Sampaio
2026-07-29 19:50 ` [PATCH bpf-next v2 1/3] bpf: Simplify cnum contains() implementation Vinicius Sampaio
2026-07-29 20:40   ` bot+bpf-ci
2026-07-29 23:46     ` Vinicius Sampaio
2026-07-29 19:50 ` [PATCH bpf-next v2 2/3] bpf: Simplify cnum normalize() implementation Vinicius Sampaio
2026-07-29 20:57   ` bot+bpf-ci
2026-07-29 23:56     ` Vinicius Sampaio
2026-07-29 19:50 ` [PATCH bpf-next v2 3/3] bpf: Avoid redundant min()/max() in cnum signed bounds Vinicius Sampaio
2026-07-29 20:01   ` sashiko-bot
2026-07-29 23:58     ` Vinicius Sampaio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.