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/atlantic: add link status and interrupt management
[dpdk.git]
/
drivers
/
crypto
/
scheduler
/
scheduler_pkt_size_distr.c
diff --git
a/drivers/crypto/scheduler/scheduler_pkt_size_distr.c
b/drivers/crypto/scheduler/scheduler_pkt_size_distr.c
index
d09e849
..
74129b6
100644
(file)
--- a/
drivers/crypto/scheduler/scheduler_pkt_size_distr.c
+++ b/
drivers/crypto/scheduler/scheduler_pkt_size_distr.c
@@
-258,7
+258,7
@@
scheduler_start(struct rte_cryptodev *dev)
/* for packet size based scheduler, nb_slaves have to >= 2 */
if (sched_ctx->nb_slaves < NB_PKT_SIZE_SLAVES) {
/* for packet size based scheduler, nb_slaves have to >= 2 */
if (sched_ctx->nb_slaves < NB_PKT_SIZE_SLAVES) {
- C
S_LOG_ERR(
"not enough slaves to start");
+ C
R_SCHED_LOG(ERR,
"not enough slaves to start");
return -1;
}
return -1;
}
@@
-302,7
+302,7
@@
scheduler_stop(struct rte_cryptodev *dev)
if (ps_qp_ctx->primary_slave.nb_inflight_cops +
ps_qp_ctx->secondary_slave.nb_inflight_cops) {
if (ps_qp_ctx->primary_slave.nb_inflight_cops +
ps_qp_ctx->secondary_slave.nb_inflight_cops) {
- C
S_LOG_ERR(
"Some crypto ops left in slave queue");
+ C
R_SCHED_LOG(ERR,
"Some crypto ops left in slave queue");
return -1;
}
}
return -1;
}
}
@@
-319,7
+319,7
@@
scheduler_config_qp(struct rte_cryptodev *dev, uint16_t qp_id)
ps_qp_ctx = rte_zmalloc_socket(NULL, sizeof(*ps_qp_ctx), 0,
rte_socket_id());
if (!ps_qp_ctx) {
ps_qp_ctx = rte_zmalloc_socket(NULL, sizeof(*ps_qp_ctx), 0,
rte_socket_id());
if (!ps_qp_ctx) {
- C
S_LOG_ERR(
"failed allocate memory for private queue pair");
+ C
R_SCHED_LOG(ERR,
"failed allocate memory for private queue pair");
return -ENOMEM;
}
return -ENOMEM;
}
@@
-342,7
+342,7
@@
scheduler_create_private_ctx(struct rte_cryptodev *dev)
psd_ctx = rte_zmalloc_socket(NULL, sizeof(struct psd_scheduler_ctx), 0,
rte_socket_id());
if (!psd_ctx) {
psd_ctx = rte_zmalloc_socket(NULL, sizeof(struct psd_scheduler_ctx), 0,
rte_socket_id());
if (!psd_ctx) {
- C
S_LOG_ERR(
"failed allocate memory");
+ C
R_SCHED_LOG(ERR,
"failed allocate memory");
return -ENOMEM;
}
return -ENOMEM;
}
@@
-362,14
+362,14
@@
scheduler_option_set(struct rte_cryptodev *dev, uint32_t option_type,
if ((enum rte_cryptodev_schedule_option_type)option_type !=
CDEV_SCHED_OPTION_THRESHOLD) {
if ((enum rte_cryptodev_schedule_option_type)option_type !=
CDEV_SCHED_OPTION_THRESHOLD) {
- C
S_LOG_ERR(
"Option not supported");
+ C
R_SCHED_LOG(ERR,
"Option not supported");
return -EINVAL;
}
threshold = ((struct rte_cryptodev_scheduler_threshold_option *)
option)->threshold;
if (!rte_is_power_of_2(threshold)) {
return -EINVAL;
}
threshold = ((struct rte_cryptodev_scheduler_threshold_option *)
option)->threshold;
if (!rte_is_power_of_2(threshold)) {
- C
S_LOG_ERR(
"Threshold is not power of 2");
+ C
R_SCHED_LOG(ERR,
"Threshold is not power of 2");
return -EINVAL;
}
return -EINVAL;
}
@@
-388,7
+388,7
@@
scheduler_option_get(struct rte_cryptodev *dev, uint32_t option_type,
if ((enum rte_cryptodev_schedule_option_type)option_type !=
CDEV_SCHED_OPTION_THRESHOLD) {
if ((enum rte_cryptodev_schedule_option_type)option_type !=
CDEV_SCHED_OPTION_THRESHOLD) {
- C
S_LOG_ERR(
"Option not supported");
+ C
R_SCHED_LOG(ERR,
"Option not supported");
return -EINVAL;
}
return -EINVAL;
}