public inbox for dwarves@vger.kernel.org
 help / color / mirror / Atom feed
* Adding new fields to xsk_tx_metadata
@ 2024-09-11  3:43 tianmuyang
  2024-09-11 14:39 ` Stanislav Fomichev
  0 siblings, 1 reply; 2+ messages in thread
From: tianmuyang @ 2024-09-11  3:43 UTC (permalink / raw)
  To: alan.maguire@oracle.com
  Cc: andrii@kernel.org, arnaldo.melo@gmail.com, ast@kernel.org,
	bpf@vger.kernel.org, daniel@iogearbox.net,
	dwarves@vger.kernel.org, kernel-team@fb.com,
	ndesaulniers@google.com, yonghong.song@linux.dev, Yanan (Euler),
	Wuchangye (EulerOS), Xiesongyang, kongweibin (A), zhangmingyi (C),
	liwei (H)

Hi all:
We want to add some fields to xsk_tx_metadata such as gso_type & gso_size, in order to transfer control fields when handling jumbo frames passing between VMs. My questions are:
1. Has the community discussed about adding new fields to xsk_tx_metadata?
2. Is it appropriate to add such fields(like gso_type) to xsk_tx_metadata?Since current fields seem to be generally hardware-related.

Thanks!

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

* Re: Adding new fields to xsk_tx_metadata
  2024-09-11  3:43 Adding new fields to xsk_tx_metadata tianmuyang
@ 2024-09-11 14:39 ` Stanislav Fomichev
  0 siblings, 0 replies; 2+ messages in thread
From: Stanislav Fomichev @ 2024-09-11 14:39 UTC (permalink / raw)
  To: tianmuyang
  Cc: alan.maguire@oracle.com, andrii@kernel.org,
	arnaldo.melo@gmail.com, ast@kernel.org, bpf@vger.kernel.org,
	daniel@iogearbox.net, dwarves@vger.kernel.org, kernel-team@fb.com,
	ndesaulniers@google.com, yonghong.song@linux.dev, Yanan (Euler),
	Wuchangye (EulerOS), Xiesongyang, kongweibin (A), zhangmingyi (C),
	liwei (H)

On 09/11, tianmuyang wrote:
> Hi all:
> We want to add some fields to xsk_tx_metadata such as gso_type & gso_size, in order to transfer control fields when handling jumbo frames passing between VMs. My questions are:
> 1. Has the community discussed about adding new fields to xsk_tx_metadata?

There has been some discussion of exploring AF_XDP segmentation offloads in
https://lore.kernel.org/bpf/3190e03c-ea5d-69fb-48e5-6cc45b1ed521@redhat.com/

> 2. Is it appropriate to add such fields(like gso_type) to xsk_tx_metadata?Since current fields seem to be generally hardware-related.

GSO is also HW-related. GSO does all the plumbing to allow the stack use
HW segmentation. So, in the end, if we end up exposing it to AF_XDP,
there has to be some HW (or driver) that implements the support.

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

end of thread, other threads:[~2024-09-11 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11  3:43 Adding new fields to xsk_tx_metadata tianmuyang
2024-09-11 14:39 ` Stanislav Fomichev

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