diff options
author | Mintz, Yuval <Yuval.Mintz@cavium.com> | 2017-04-07 11:04:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-07 06:26:14 -0700 |
commit | 40b8c45492efc97d9d397475bf475d497fbb9174 (patch) | |
tree | ea92b0d71d425286a17fdcd2fbbc02c836b269cd /drivers | |
parent | 89e1afc44765d8b9f509d15df096494f14463e17 (diff) | |
download | linux-40b8c45492efc97d9d397475bf475d497fbb9174.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_filter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 107c3fda4792..ecd5b3ab783f 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -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); |