git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5: E-Switch, Avoid setup attempt if not being e-switch manager
[sfrench/cifs-2.6.git]
/
drivers
/
net
/
ethernet
/
mellanox
/
mlx5
/
core
/
en_rep.c
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
index 378ad74518ec2f02b46c6b7b838026665631c368..60236f73373c96f7cf408d50a9f15a697cd42664 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
@@
-839,7
+839,7
@@
static bool mlx5e_is_vf_vport_rep(struct mlx5e_priv *priv)
struct mlx5e_rep_priv *rpriv = priv->ppriv;
struct mlx5_eswitch_rep *rep;
- if (!MLX5_
CAP_GEN(priv->mdev, eswitch_flow_table
))
+ if (!MLX5_
ESWITCH_MANAGER(priv->mdev
))
return false;
rep = rpriv->rep;