On Thu, 28 Feb 2019 13:54:38 -0800, Stephen Hemminger wrote: > @@ -12140,12 +12144,14 @@ static int i40e_xdp(struct net_device *dev, > struct i40e_netdev_priv *np = netdev_priv(dev); > struct i40e_vsi *vsi = np->vsi; > > - if (vsi->type != I40E_VSI_MAIN) > + if (vsi->type != I40E_VSI_MAIN) { > + NL_SET_ERR_MSG_MOD(xdp->extack, "XDP not allowed on VF");
Is that right? Intel tends to have separate drivers for VFs, I think the i40evf got renamed to iavf. I think it would be a good idea to CC maintainers on the driver patches. > return -EINVAL; > + } >