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: add device parameter for MPRQ stride size
[dpdk.git]
/
examples
/
bond
/
main.c
diff --git
a/examples/bond/main.c
b/examples/bond/main.c
index
ee8fa2d
..
8608285
100644
(file)
--- a/
examples/bond/main.c
+++ b/
examples/bond/main.c
@@
-359,7
+359,7
@@
struct global_flag_stru_t *global_flag_stru_p = &global_flag_stru;
* Main thread that does the work, reading from INPUT_PORT
* and writing to OUTPUT_PORT
*/
* Main thread that does the work, reading from INPUT_PORT
* and writing to OUTPUT_PORT
*/
-static int lcore_main(__
attribute__((unused))
void *arg1)
+static int lcore_main(__
rte_unused
void *arg1)
{
struct rte_mbuf *pkts[MAX_PKT_BURST] __rte_cache_aligned;
struct rte_ether_addr d_addr;
{
struct rte_mbuf *pkts[MAX_PKT_BURST] __rte_cache_aligned;
struct rte_ether_addr d_addr;
@@
-481,8
+481,8
@@
static inline void get_string(struct cmd_obj_send_result *res, char *buf, uint8_
);
}
static void cmd_obj_send_parsed(void *parsed_result,
);
}
static void cmd_obj_send_parsed(void *parsed_result,
- __
attribute__((unused))
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
struct cmdline *cl,
+ __
rte_unused
void *data)
{
struct cmd_obj_send_result *res = parsed_result;
{
struct cmd_obj_send_result *res = parsed_result;
@@
-569,9
+569,9
@@
struct cmd_start_result {
cmdline_fixed_string_t start;
};
cmdline_fixed_string_t start;
};
-static void cmd_start_parsed(__
attribute__((unused))
void *parsed_result,
+static void cmd_start_parsed(__
rte_unused
void *parsed_result,
struct cmdline *cl,
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
void *data)
{
int slave_core_id = rte_lcore_id();
{
int slave_core_id = rte_lcore_id();
@@
-627,9
+627,9
@@
struct cmd_help_result {
cmdline_fixed_string_t help;
};
cmdline_fixed_string_t help;
};
-static void cmd_help_parsed(__
attribute__((unused))
void *parsed_result,
+static void cmd_help_parsed(__
rte_unused
void *parsed_result,
struct cmdline *cl,
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
void *data)
{
cmdline_printf(cl,
"ALB - link bonding mode 6 example\n"
{
cmdline_printf(cl,
"ALB - link bonding mode 6 example\n"
@@
-659,9
+659,9
@@
struct cmd_stop_result {
cmdline_fixed_string_t stop;
};
cmdline_fixed_string_t stop;
};
-static void cmd_stop_parsed(__
attribute__((unused))
void *parsed_result,
+static void cmd_stop_parsed(__
rte_unused
void *parsed_result,
struct cmdline *cl,
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
void *data)
{
rte_spinlock_trylock(&global_flag_stru_p->lock);
if (global_flag_stru_p->LcoreMainIsRunning == 0) {
{
rte_spinlock_trylock(&global_flag_stru_p->lock);
if (global_flag_stru_p->LcoreMainIsRunning == 0) {
@@
-700,9
+700,9
@@
struct cmd_quit_result {
cmdline_fixed_string_t quit;
};
cmdline_fixed_string_t quit;
};
-static void cmd_quit_parsed(__
attribute__((unused))
void *parsed_result,
+static void cmd_quit_parsed(__
rte_unused
void *parsed_result,
struct cmdline *cl,
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
void *data)
{
rte_spinlock_trylock(&global_flag_stru_p->lock);
if (global_flag_stru_p->LcoreMainIsRunning == 0) {
{
rte_spinlock_trylock(&global_flag_stru_p->lock);
if (global_flag_stru_p->LcoreMainIsRunning == 0) {
@@
-743,9
+743,9
@@
struct cmd_show_result {
cmdline_fixed_string_t show;
};
cmdline_fixed_string_t show;
};
-static void cmd_show_parsed(__
attribute__((unused))
void *parsed_result,
+static void cmd_show_parsed(__
rte_unused
void *parsed_result,
struct cmdline *cl,
struct cmdline *cl,
- __
attribute__((unused))
void *data)
+ __
rte_unused
void *data)
{
uint16_t slaves[16] = {0};
uint8_t len = 16;
{
uint16_t slaves[16] = {0};
uint8_t len = 16;
@@
-803,7
+803,7
@@
cmdline_parse_ctx_t main_ctx[] = {
};
/* prompt function, called from main on MASTER lcore */
};
/* prompt function, called from main on MASTER lcore */
-static void prompt(__
attribute__((unused))
void *arg1)
+static void prompt(__
rte_unused
void *arg1)
{
struct cmdline *cl;
{
struct cmdline *cl;