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/dpaa: fix getting link status
[dpdk.git]
/
drivers
/
net
/
softnic
/
rte_eth_softnic_thread.c
diff --git
a/drivers/net/softnic/rte_eth_softnic_thread.c
b/drivers/net/softnic/rte_eth_softnic_thread.c
index
d61846e
..
a8c26a5
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic_thread.c
+++ b/
drivers/net/softnic/rte_eth_softnic_thread.c
@@
-18,14
+18,14
@@
#include "rte_eth_softnic_internals.h"
/**
#include "rte_eth_softnic_internals.h"
/**
- * Ma
ster
thread: data plane thread init
+ * Ma
in
thread: data plane thread init
*/
void
softnic_thread_free(struct pmd_internals *softnic)
{
uint32_t i;
*/
void
softnic_thread_free(struct pmd_internals *softnic)
{
uint32_t i;
- RTE_LCORE_FOREACH_
SLAVE
(i) {
+ RTE_LCORE_FOREACH_
WORKER
(i) {
struct softnic_thread *t = &softnic->thread[i];
/* MSGQs */
struct softnic_thread *t = &softnic->thread[i];
/* MSGQs */
@@
-78,7
+78,7
@@
softnic_thread_init(struct pmd_internals *softnic)
return -1;
}
return -1;
}
- /* Ma
ster
thread records */
+ /* Ma
in
thread records */
t->msgq_req = msgq_req;
t->msgq_rsp = msgq_rsp;
t->service_id = UINT32_MAX;
t->msgq_req = msgq_req;
t->msgq_rsp = msgq_rsp;
t->service_id = UINT32_MAX;
@@
-99,7
+99,7
@@
softnic_thread_init(struct pmd_internals *softnic)
static inline int
thread_is_valid(struct pmd_internals *softnic, uint32_t thread_id)
{
static inline int
thread_is_valid(struct pmd_internals *softnic, uint32_t thread_id)
{
- if (thread_id == rte_get_ma
ster
_lcore())
+ if (thread_id == rte_get_ma
in
_lcore())
return 0; /* FALSE */
if (softnic->params.sc && rte_lcore_has_role(thread_id, ROLE_SERVICE))
return 0; /* FALSE */
if (softnic->params.sc && rte_lcore_has_role(thread_id, ROLE_SERVICE))
@@
-209,7
+209,7
@@
pipeline_is_running(struct pipeline *p)
}
/**
}
/**
- * Ma
ster
thread & data plane threads: message passing
+ * Ma
in
thread & data plane threads: message passing
*/
enum thread_req_type {
THREAD_REQ_PIPELINE_ENABLE = 0,
*/
enum thread_req_type {
THREAD_REQ_PIPELINE_ENABLE = 0,
@@
-243,7
+243,7
@@
struct thread_msg_rsp {
};
/**
};
/**
- * Ma
ster
thread
+ * Ma
in
thread
*/
static struct thread_msg_req *
thread_msg_alloc(void)
*/
static struct thread_msg_req *
thread_msg_alloc(void)
@@
-587,7
+587,7
@@
thread_msg_handle(struct softnic_thread_data *t)
}
/**
}
/**
- * Ma
ster
thread & data plane threads: message passing
+ * Ma
in
thread & data plane threads: message passing
*/
enum pipeline_req_type {
/* Port IN */
*/
enum pipeline_req_type {
/* Port IN */
@@
-753,7
+753,7
@@
struct pipeline_msg_rsp {
};
/**
};
/**
- * Ma
ster
thread
+ * Ma
in
thread
*/
static struct pipeline_msg_req *
pipeline_msg_alloc(void)
*/
static struct pipeline_msg_req *
pipeline_msg_alloc(void)
@@
-835,8
+835,6
@@
softnic_pipeline_port_in_stats_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-884,8
+882,6
@@
softnic_pipeline_port_in_enable(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-931,8
+927,6
@@
softnic_pipeline_port_in_disable(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-986,8
+980,6
@@
softnic_pipeline_port_out_stats_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1043,8
+1035,6
@@
softnic_pipeline_table_stats_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1323,8
+1313,6
@@
softnic_pipeline_table_rule_add(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1407,8
+1395,6
@@
softnic_pipeline_table_rule_add_default(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1565,8
+1551,6
@@
fail:
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1630,8
+1614,6
@@
softnic_pipeline_table_rule_delete(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1680,8
+1662,6
@@
softnic_pipeline_table_rule_delete_default(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1740,8
+1720,6
@@
softnic_pipeline_table_rule_stats_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1821,10
+1799,6
@@
softnic_pipeline_table_mtr_profile_add(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL) {
- free(mp);
- return -1;
- }
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1880,8
+1854,6
@@
softnic_pipeline_table_mtr_profile_delete(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-1943,8
+1915,6
@@
softnic_pipeline_table_rule_mtr_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-2008,8
+1978,6
@@
softnic_pipeline_table_dscp_table_update(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
@@
-2073,8
+2041,6
@@
softnic_pipeline_table_rule_ttl_read(struct pmd_internals *softnic,
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
/* Send request and wait for response */
rsp = pipeline_msg_send_recv(p, req);
- if (rsp == NULL)
- return -1;
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;