XDP hardware hints discussion mail archive
 help / color / mirror / Atom feed
* [xdp-hints] Questions about XDP hints
@ 2024-10-12  7:12 tianmuyang
  2024-10-14 18:09 ` [xdp-hints] " Stanislav Fomichev
  0 siblings, 1 reply; 2+ messages in thread
From: tianmuyang @ 2024-10-12  7:12 UTC (permalink / raw)
  To: bpf@vger.kernel.org
  Cc: larysa.zaremba@intel.com, ast@kernel.org, daniel@iogearbox.net,
	andrii@kernel.org, martin.lau@linux.dev, song@kernel.org,
	yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org,
	sdf@google.com, haoluo@google.com, jolsa@kernel.org,
	dsahern@gmail.com, kuba@kernel.org, willemb@google.com,
	brouer@redhat.com, anatoly.burakov@intel.com,
	alexandr.lobakin@intel.com, magnus.karlsson@gmail.com,
	mtahhan@redhat.com, xdp-hints@xdp-project.net,
	netdev@vger.kernel.org, willemdebruijn.kernel@gmail.com,
	alexei.starovoitov@gmail.com, simon.horman@corigine.com,
	Yanan (Euler), Wuchangye (EulerOS), Xiesongyang, Liuxin(EulerOS),
	zhangmingyi (C), liwei (H), tianmuyang

Hi all:
	There has been some discussions about adding checksum hint in AF_XDP such as this thread[1]. Now, we also plan to add checksum hint. My questions are:
	1. In this msg[2], is it appropriate if xdp_csum_status only includes 4 enums/macros(CHECKSUM_NONE...CHECKSUM_PARTIAL in skbuff.h)? Thus it becomes more generic. Also, in this msg[3] we can simply pass skb->ip_summed to csum_status in veth_xdp_rx_csum().
	2. What should be taken care of if I want to add a new hint? IOW, what is acceptable to add a new hint?

Thanks!

[1] https://lore.kernel.org/bpf/CAADnVQJPgpo7J0qVTQJYYocZ=Jnw=O5GfN2=PyAQ55+WWG_DVg@mail.gmail.com/
[2] https://lore.kernel.org/bpf/20230728173923.1318596-13-larysa.zaremba@intel.com/
[3] https://lore.kernel.org/bpf/20230728173923.1318596-18-larysa.zaremba@intel.com/


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

end of thread, other threads:[~2024-10-14 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12  7:12 [xdp-hints] Questions about XDP hints tianmuyang
2024-10-14 18:09 ` [xdp-hints] " Stanislav Fomichev

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