Matteo Croce <mcr...@redhat.com> writes: > On Tue, 1 Oct 2019 11:24:43 +0200 > Lorenzo Bianconi <lore...@kernel.org> wrote: >> +static int mvneta_xdp_setup(struct net_device *dev, struct bpf_prog >> *prog, >> + struct netlink_ext_ack *extack) >> +{ >> + struct mvneta_port *pp = netdev_priv(dev); >> + struct bpf_prog *old_prog; >> + >> + if (prog && dev->mtu > MVNETA_MAX_RX_BUF_SIZE) { >> + NL_SET_ERR_MSG_MOD(extack, "Jumbo frames not >> supported on XDP"); >> + return -EOPNOTSUPP; > > -ENOTSUPP maybe?
No, ENOTSUPP is NFS-specific, and defined in a non-UAPI header; the correct one to use is EOPNOTSUPP :) -Toke