Max MTU with XDP

Srivats P <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CANzUK5-vaz4_WtFbwdYoGJOjdh0c4p+bEZhpV2Pfuni5JKghrA@mail.gmail.com>
Hi,

I'm aware that different drivers have different max MTU that they can
support with XDP.

Is there a way to programmatically retrieve what is the max MTU
supported on a particular driver/interface with XDP/AF_XDP?

Or is setting a MTU value and trying to attach a eBPF program in a
binary search fashion wrt to MTU value between 1500 and 4096 is the
only way?

Srivats
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.