Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 16.11.3
[deb_dpdk.git]
/
lib
/
librte_cryptodev
/
rte_cryptodev.c
diff --git
a/lib/librte_cryptodev/rte_cryptodev.c
b/lib/librte_cryptodev/rte_cryptodev.c
index
127e8d0
..
c836a2c
100644
(file)
--- a/
lib/librte_cryptodev/rte_cryptodev.c
+++ b/
lib/librte_cryptodev/rte_cryptodev.c
@@
-225,13
+225,14
@@
rte_cryptodev_create_vdev(const char *name, const char *args)
}
int
}
int
-rte_cryptodev_get_dev_id(const char *name) {
+rte_cryptodev_get_dev_id(const char *name)
+{
unsigned i;
if (name == NULL)
return -1;
unsigned i;
if (name == NULL)
return -1;
- for (i = 0; i < rte_cryptodev_globals->
max
_devs; i++)
+ for (i = 0; i < rte_cryptodev_globals->
nb
_devs; i++)
if ((strcmp(rte_cryptodev_globals->devs[i].data->name, name)
== 0) &&
(rte_cryptodev_globals->devs[i].attached ==
if ((strcmp(rte_cryptodev_globals->devs[i].data->name, name)
== 0) &&
(rte_cryptodev_globals->devs[i].attached ==
@@
-736,8
+737,8
@@
rte_cryptodev_stop(uint8_t dev_id)
return;
}
return;
}
- dev->data->dev_started = 0;
(*dev->dev_ops->dev_stop)(dev);
(*dev->dev_ops->dev_stop)(dev);
+ dev->data->dev_started = 0;
}
int
}
int