BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] Simplify min()/max(), contains() and fix normalize() cnum implementation
@ 2026-07-28  1:56 Vinicius Sampaio
  2026-07-28  1:56 ` [PATCH bpf-next 1/2] bpf: Simplify cnum contains() and normalize() implementation Vinicius Sampaio
  2026-07-28  1:57 ` [PATCH bpf-next 2/2] bpf: Avoid redundant min()/max() in cnum signed bounds Vinicius Sampaio
  0 siblings, 2 replies; 7+ messages in thread
From: Vinicius Sampaio @ 2026-07-28  1:56 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, john.fastabend, andrii, martin.lau, eddyz87, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, tangyazhou518,
	shenghaoyuan0928, Vinicius Sampaio

This patches simplifies some functions of the cnum implementation:

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

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

 kernel/bpf/cnum_defs.h | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

-- 
2.54.0



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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28  1:56 [PATCH bpf-next 0/2] Simplify min()/max(), contains() and fix normalize() cnum implementation Vinicius Sampaio
2026-07-28  1:56 ` [PATCH bpf-next 1/2] bpf: Simplify cnum contains() and normalize() implementation Vinicius Sampaio
2026-07-29  6:29   ` Shung-Hsi Yu
2026-07-29 19:15     ` Vinicius Sampaio
2026-07-28  1:57 ` [PATCH bpf-next 2/2] bpf: Avoid redundant min()/max() in cnum signed bounds Vinicius Sampaio
2026-07-29  7:59   ` Shung-Hsi Yu
2026-07-29 19:21     ` Vinicius Sampaio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox