git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: rearrange device attribute structure
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5.c
diff --git
a/drivers/net/mlx5/mlx5.c
b/drivers/net/mlx5/mlx5.c
index
b26632d
..
7487b1f
100644
(file)
--- a/
drivers/net/mlx5/mlx5.c
+++ b/
drivers/net/mlx5/mlx5.c
@@
-1262,9
+1262,9
@@
mlx5_alloc_shared_dev_ctx(const struct mlx5_dev_spawn_data *spawn,
sh->esw_mode = !!(spawn->info.master || spawn->info.representor);
if (spawn->bond_info)
sh->bond = *spawn->bond_info;
sh->esw_mode = !!(spawn->info.master || spawn->info.representor);
if (spawn->bond_info)
sh->bond = *spawn->bond_info;
- err = mlx5_os_
get_dev_attr(sh->cdev, &sh->device_attr
);
+ err = mlx5_os_
capabilities_prepare(sh
);
if (err) {
if (err) {
- DRV_LOG(
DEBUG, "mlx5_os_get_dev_attr() failed
");
+ DRV_LOG(
ERR, "Fail to configure device capabilities.
");
goto error;
}
sh->refcnt = 1;
goto error;
}
sh->refcnt = 1;