mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
qede: Prevent VFs from using XDP
Current implementation of VFs is very tight in regard to queue resources. VFs support for XDP would require quite a bit of additional infrastructure in qede and qed [sharing of queue-zones between queues, more VF cids, mapping of the doorbell bar, etc.]. For now, prevent XDP programs from being attached to VFs. Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
89e1afc447
commit
40b8c45492
1 changed files with 5 additions and 0 deletions
|
@ -537,6 +537,11 @@ int qede_xdp(struct net_device *dev, struct netdev_xdp *xdp)
|
|||
{
|
||||
struct qede_dev *edev = netdev_priv(dev);
|
||||
|
||||
if (IS_VF(edev)) {
|
||||
DP_NOTICE(edev, "VFs don't support XDP\n");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
switch (xdp->command) {
|
||||
case XDP_SETUP_PROG:
|
||||
return qede_xdp_set(edev, xdp->prog);
|
||||
|
|
Loading…
Reference in a new issue