Skip to content

Commit 40b8c45

Browse files
Mintz, Yuvaldavem330
authored andcommitted
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>
1 parent 89e1afc commit 40b8c45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/ethernet/qlogic/qede/qede_filter.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,11 @@ int qede_xdp(struct net_device *dev, struct netdev_xdp *xdp)
537537
{
538538
struct qede_dev *edev = netdev_priv(dev);
539539

540+
if (IS_VF(edev)) {
541+
DP_NOTICE(edev, "VFs don't support XDP\n");
542+
return -EOPNOTSUPP;
543+
}
544+
540545
switch (xdp->command) {
541546
case XDP_SETUP_PROG:
542547
return qede_xdp_set(edev, xdp->prog);

0 commit comments

Comments
 (0)