projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
mellanox
/
mlx5
/
core
/
eswitch_offloads.c
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
index
cecd201
..
91f1209
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
@@
-1079,8
+1079,8
@@
static int mlx5_devlink_eswitch_check(struct devlink *devlink)
if (MLX5_CAP_GEN(dev, port_type) != MLX5_CAP_PORT_TYPE_ETH)
return -EOPNOTSUPP;
if (MLX5_CAP_GEN(dev, port_type) != MLX5_CAP_PORT_TYPE_ETH)
return -EOPNOTSUPP;
- if
(!MLX5_CAP_GEN(dev, vport_group_manager
))
- return -E
OPNOTSUPP
;
+ if
(!MLX5_ESWITCH_MANAGER(dev
))
+ return -E
PERM
;
if (dev->priv.eswitch->mode == SRIOV_NONE)
return -EOPNOTSUPP;
if (dev->priv.eswitch->mode == SRIOV_NONE)
return -EOPNOTSUPP;