xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Jumbo frames with Huge pages
@ 2022-03-17 13:13 Srivats P
  2022-03-21 16:32 ` Srivats P
  0 siblings, 1 reply; 2+ messages in thread
From: Srivats P @ 2022-03-17 13:13 UTC (permalink / raw)
  To: Xdp

Hi,

XDP does not allow jumbo frames due to the requirement of frameSize < pageSize.

I'm also aware of the ongoing work related to scatter-gather
(multi-buffers) to support jumbo frames with XDP.

I'm wondering if jumbo frames can be more simply supported by using
AF_XDP with huge pages (instead of multi-buffers)? If so, are jumbo
frames supported in both Rx and Tx directions? I assume this support
is likely driver specific?

Any info on using huge pages to support jumbo frames is appreciated.

Thanks in advance,
Srivats

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

* Re: Jumbo frames with Huge pages
  2022-03-17 13:13 Jumbo frames with Huge pages Srivats P
@ 2022-03-21 16:32 ` Srivats P
  0 siblings, 0 replies; 2+ messages in thread
From: Srivats P @ 2022-03-21 16:32 UTC (permalink / raw)
  To: Xdp

> XDP does not allow jumbo frames due to the requirement of frameSize < pageSize.
>
> I'm also aware of the ongoing work related to scatter-gather
> (multi-buffers) to support jumbo frames with XDP.
>
> I'm wondering if jumbo frames can be more simply supported by using
> AF_XDP with huge pages (instead of multi-buffers)? If so, are jumbo
> frames supported in both Rx and Tx directions? I assume this support
> is likely driver specific?

I understand the multi-buffer requirement for the general eBPF/XDP
case to support jumbo frames.

However, for AF_XDP if the UMEM is composed of Huge pages with frame
size set to 8K or 16K and unaligned chunk flag enabled, the AF_XDP
rings (RX/TX) and the NIC rings (RX/TX) should all have buffer sizes
big enough for jumbo frames and direct access should work because it's
all contiguous memory. I don't see a need for multi-buffers for the
AF_XDP use case.

What am I missing?

* Is this use case a snowflake?
* Are there limitations in the ethernet drivers wrt to huge pages or
frame size limits?

Srivats

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

end of thread, other threads:[~2022-03-21 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 13:13 Jumbo frames with Huge pages Srivats P
2022-03-21 16:32 ` Srivats P

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