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]
/
include
/
linux
/
mlx5
/
eswitch.h
diff --git
a/include/linux/mlx5/eswitch.h
b/include/linux/mlx5/eswitch.h
index d3c9db492b30065750726992ba1001c48153232b..fab5121ffb8f5de2b5f39b6a0a7e43cca4b047e0 100644
(file)
--- a/
include/linux/mlx5/eswitch.h
+++ b/
include/linux/mlx5/eswitch.h
@@
-8,6
+8,8
@@
#include <linux/mlx5/driver.h>
+#define MLX5_ESWITCH_MANAGER(mdev) MLX5_CAP_GEN(mdev, eswitch_manager)
+
enum {
SRIOV_NONE,
SRIOV_LEGACY,