Srivats P <pstavirs@xxxxxxxxx> writes: > 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? Yup, currently it is, unfortunately. Querying this may eventually be possible, along with which features an interface supports etc... -Toke