replace unused attributes
There is a common macro __rte_unused, avoiding warnings, which is now used where appropriate for consistency. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
parent
d0ac7bb577
commit
f2fc83b40f
|
@ -858,7 +858,7 @@ search_ip5tuples_once(uint32_t categories, uint32_t step, const char *alg)
|
|||
}
|
||||
|
||||
static int
|
||||
search_ip5tuples(__attribute__((unused)) void *arg)
|
||||
search_ip5tuples(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t pkt, start, tm;
|
||||
uint32_t i, lcore;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include <rte_common.h>
|
||||
|
||||
#include <cmdline_rdline.h>
|
||||
#include <cmdline_parse.h>
|
||||
#include <cmdline_socket.h>
|
||||
|
@ -20,7 +22,7 @@
|
|||
#include "cmdline_test.h"
|
||||
|
||||
int
|
||||
main(int __attribute__((unused)) argc, char __attribute__((unused)) ** argv)
|
||||
main(int __rte_unused argc, char __rte_unused ** argv)
|
||||
{
|
||||
struct cmdline *cl;
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include <termios.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <rte_common.h>
|
||||
|
||||
#include <cmdline_rdline.h>
|
||||
#include <cmdline_parse.h>
|
||||
#include <cmdline_parse_string.h>
|
||||
|
@ -23,9 +25,9 @@ struct cmd_quit_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_quit_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_quit_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_quit(cl);
|
||||
}
|
||||
|
@ -54,9 +56,9 @@ struct cmd_single_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_single_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_single_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Single word command parsed!\n");
|
||||
}
|
||||
|
@ -85,9 +87,9 @@ struct cmd_single_long_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_single_long_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_single_long_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Single long word command parsed!\n");
|
||||
}
|
||||
|
@ -118,9 +120,9 @@ struct cmd_autocomplete_1_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_autocomplete_1_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_autocomplete_1_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Autocomplete command 1 parsed!\n");
|
||||
}
|
||||
|
@ -151,9 +153,9 @@ struct cmd_autocomplete_2_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_autocomplete_2_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_autocomplete_2_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Autocomplete command 2 parsed!\n");
|
||||
}
|
||||
|
@ -184,7 +186,7 @@ struct cmd_num_result {
|
|||
static void
|
||||
cmd_num_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
unsigned result = ((struct cmd_num_result*)parsed_result)->num;
|
||||
cmdline_printf(cl, "%u\n", result);
|
||||
|
@ -214,9 +216,9 @@ struct cmd_ambig_result_1 {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_ambig_1_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_ambig_1_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Command 1 parsed!\n");
|
||||
}
|
||||
|
@ -250,9 +252,9 @@ struct cmd_ambig_result_2 {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_ambig_2_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_ambig_2_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Command 2 parsed!\n");
|
||||
}
|
||||
|
@ -288,9 +290,9 @@ struct cmd_get_history_bufsize_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_get_history_bufsize_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_get_history_bufsize_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "History buffer size: %zu\n",
|
||||
sizeof(cl->rdl.history_buf));
|
||||
|
@ -320,9 +322,9 @@ struct cmd_clear_history_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_clear_history_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_clear_history_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
rdline_clear_history(&cl->rdl);
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ static void
|
|||
mempool_obj_init(struct rte_mempool *mp,
|
||||
void *opaque_arg,
|
||||
void *obj,
|
||||
__attribute__((unused)) unsigned int i)
|
||||
__rte_unused unsigned int i)
|
||||
{
|
||||
struct obj_params *params = opaque_arg;
|
||||
struct rte_crypto_op *op = obj;
|
||||
|
|
|
@ -76,7 +76,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
int
|
||||
app_lcore_main_loop(__attribute__((unused)) void *arg)
|
||||
app_lcore_main_loop(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore;
|
||||
|
||||
|
|
|
@ -380,9 +380,9 @@ app_main_loop_worker_pipeline_hash(void) {
|
|||
|
||||
uint64_t test_hash(
|
||||
void *key,
|
||||
__attribute__((unused)) void *key_mask,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint64_t seed)
|
||||
__rte_unused void *key_mask,
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint64_t seed)
|
||||
{
|
||||
uint32_t *k32 = key;
|
||||
uint32_t ip_dst = rte_be_to_cpu_32(k32[0]);
|
||||
|
@ -393,8 +393,8 @@ uint64_t test_hash(
|
|||
|
||||
uint32_t test_hash_cuckoo(
|
||||
const void *key,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint32_t seed)
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint32_t seed)
|
||||
{
|
||||
const uint32_t *k32 = key;
|
||||
uint32_t ip_dst = rte_be_to_cpu_32(k32[0]);
|
||||
|
|
|
@ -87,8 +87,8 @@ bpf_parse_flags(const char *str, struct rte_bpf_arg *arg, uint32_t *flags)
|
|||
}
|
||||
|
||||
static void cmd_operate_bpf_ld_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
int32_t rc;
|
||||
uint32_t flags;
|
||||
|
@ -158,8 +158,8 @@ struct cmd_bpf_unld_result {
|
|||
};
|
||||
|
||||
static void cmd_operate_bpf_unld_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_bpf_unld_result *res;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -256,8 +256,8 @@ cmdline_parse_token_num_t cmd_show_port_meter_cap_port_id =
|
|||
struct cmd_show_port_meter_cap_result, port_id, UINT16);
|
||||
|
||||
static void cmd_show_port_meter_cap_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_meter_cap_result *res = parsed_result;
|
||||
struct rte_mtr_capabilities cap;
|
||||
|
@ -378,8 +378,8 @@ cmdline_parse_token_num_t cmd_add_port_meter_profile_srtcm_ebs =
|
|||
ebs, UINT64);
|
||||
|
||||
static void cmd_add_port_meter_profile_srtcm_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_meter_profile_srtcm_result *res = parsed_result;
|
||||
struct rte_mtr_meter_profile mp;
|
||||
|
@ -484,8 +484,8 @@ cmdline_parse_token_num_t cmd_add_port_meter_profile_trtcm_pbs =
|
|||
pbs, UINT64);
|
||||
|
||||
static void cmd_add_port_meter_profile_trtcm_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_meter_profile_trtcm_result *res = parsed_result;
|
||||
struct rte_mtr_meter_profile mp;
|
||||
|
@ -595,8 +595,8 @@ cmdline_parse_token_num_t cmd_add_port_meter_profile_trtcm_rfc4115_ebs =
|
|||
|
||||
static void cmd_add_port_meter_profile_trtcm_rfc4115_parsed(
|
||||
void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_meter_profile_trtcm_rfc4115_result *res =
|
||||
parsed_result;
|
||||
|
@ -679,8 +679,8 @@ cmdline_parse_token_num_t cmd_del_port_meter_profile_profile_id =
|
|||
profile_id, UINT32);
|
||||
|
||||
static void cmd_del_port_meter_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_meter_profile_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -772,8 +772,8 @@ cmdline_parse_token_string_t cmd_create_port_meter_input_color =
|
|||
meter_input_color, TOKEN_STRING_MULTI);
|
||||
|
||||
static void cmd_create_port_meter_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_create_port_meter_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -872,8 +872,8 @@ cmdline_parse_token_num_t cmd_enable_port_meter_mtr_id =
|
|||
struct cmd_enable_port_meter_result, mtr_id, UINT32);
|
||||
|
||||
static void cmd_enable_port_meter_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_enable_port_meter_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -933,8 +933,8 @@ cmdline_parse_token_num_t cmd_disable_port_meter_mtr_id =
|
|||
struct cmd_disable_port_meter_result, mtr_id, UINT32);
|
||||
|
||||
static void cmd_disable_port_meter_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_disable_port_meter_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -994,8 +994,8 @@ cmdline_parse_token_num_t cmd_del_port_meter_mtr_id =
|
|||
struct cmd_del_port_meter_result, mtr_id, UINT32);
|
||||
|
||||
static void cmd_del_port_meter_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_meter_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -1063,8 +1063,8 @@ cmdline_parse_token_num_t cmd_set_port_meter_profile_profile_id =
|
|||
struct cmd_set_port_meter_profile_result, profile_id, UINT32);
|
||||
|
||||
static void cmd_set_port_meter_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_meter_profile_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -1129,8 +1129,8 @@ cmdline_parse_token_string_t cmd_set_port_meter_dscp_table_token_string =
|
|||
token_string, TOKEN_STRING_MULTI);
|
||||
|
||||
static void cmd_set_port_meter_dscp_table_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_meter_dscp_table_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -1223,8 +1223,8 @@ cmdline_parse_token_string_t cmd_set_port_meter_policer_action_policer_action =
|
|||
policer_action, TOKEN_STRING_MULTI);
|
||||
|
||||
static void cmd_set_port_meter_policer_action_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_meter_policer_action_result *res = parsed_result;
|
||||
enum rte_mtr_policer_action *actions;
|
||||
|
@ -1326,8 +1326,8 @@ cmdline_parse_token_num_t cmd_set_port_meter_stats_mask_stats_mask =
|
|||
UINT64);
|
||||
|
||||
static void cmd_set_port_meter_stats_mask_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_meter_stats_mask_result *res = parsed_result;
|
||||
struct rte_mtr_error error;
|
||||
|
@ -1397,8 +1397,8 @@ cmdline_parse_token_string_t cmd_show_port_meter_stats_clear =
|
|||
struct cmd_show_port_meter_stats_result, clear, "yes#no");
|
||||
|
||||
static void cmd_show_port_meter_stats_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_meter_stats_result *res = parsed_result;
|
||||
struct rte_mtr_stats stats;
|
||||
|
|
|
@ -220,8 +220,8 @@ cmdline_parse_token_num_t cmd_show_port_tm_cap_port_id =
|
|||
port_id, UINT16);
|
||||
|
||||
static void cmd_show_port_tm_cap_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_tm_cap_result *res = parsed_result;
|
||||
struct rte_tm_capabilities cap;
|
||||
|
@ -361,8 +361,8 @@ cmdline_parse_token_num_t cmd_show_port_tm_level_cap_level_id =
|
|||
|
||||
|
||||
static void cmd_show_port_tm_level_cap_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_tm_level_cap_result *res = parsed_result;
|
||||
struct rte_tm_level_capabilities lcap;
|
||||
|
@ -487,8 +487,8 @@ cmdline_parse_token_num_t cmd_show_port_tm_node_cap_node_id =
|
|||
node_id, UINT32);
|
||||
|
||||
static void cmd_show_port_tm_node_cap_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_tm_node_cap_result *res = parsed_result;
|
||||
struct rte_tm_node_capabilities ncap;
|
||||
|
@ -603,8 +603,8 @@ cmdline_parse_token_num_t cmd_show_port_tm_node_stats_clear =
|
|||
struct cmd_show_port_tm_node_stats_result, clear, UINT32);
|
||||
|
||||
static void cmd_show_port_tm_node_stats_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_tm_node_stats_result *res = parsed_result;
|
||||
struct rte_tm_node_stats stats;
|
||||
|
@ -719,8 +719,8 @@ cmdline_parse_token_num_t cmd_show_port_tm_node_type_node_id =
|
|||
node_id, UINT32);
|
||||
|
||||
static void cmd_show_port_tm_node_type_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_port_tm_node_type_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -831,8 +831,8 @@ cmdline_parse_token_num_t cmd_add_port_tm_node_shaper_profile_pktlen_adjust =
|
|||
pktlen_adjust, UINT32);
|
||||
|
||||
static void cmd_add_port_tm_node_shaper_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_tm_node_shaper_profile_result *res = parsed_result;
|
||||
struct rte_tm_shaper_params sp;
|
||||
|
@ -927,8 +927,8 @@ cmdline_parse_token_num_t cmd_del_port_tm_node_shaper_profile_shaper_id =
|
|||
shaper_id, UINT32);
|
||||
|
||||
static void cmd_del_port_tm_node_shaper_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_tm_node_shaper_profile_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1012,8 +1012,8 @@ cmdline_parse_token_num_t cmd_add_port_tm_node_shared_shaper_shaper_profile_id =
|
|||
shaper_profile_id, UINT32);
|
||||
|
||||
static void cmd_add_port_tm_node_shared_shaper_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_tm_node_shared_shaper_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1108,8 +1108,8 @@ cmdline_parse_token_num_t cmd_del_port_tm_node_shared_shaper_shared_shaper_id =
|
|||
shared_shaper_id, UINT32);
|
||||
|
||||
static void cmd_del_port_tm_node_shared_shaper_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_tm_node_shared_shaper_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1262,8 +1262,8 @@ cmdline_parse_token_num_t cmd_add_port_tm_node_wred_profile_wq_log2_r =
|
|||
|
||||
|
||||
static void cmd_add_port_tm_node_wred_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_tm_node_wred_profile_result *res = parsed_result;
|
||||
struct rte_tm_wred_params wp;
|
||||
|
@ -1381,8 +1381,8 @@ cmdline_parse_token_num_t cmd_del_port_tm_node_wred_profile_wred_profile_id =
|
|||
wred_profile_id, UINT32);
|
||||
|
||||
static void cmd_del_port_tm_node_wred_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_tm_node_wred_profile_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1467,8 +1467,8 @@ cmdline_parse_token_num_t
|
|||
shaper_profile_id, UINT32);
|
||||
|
||||
static void cmd_set_port_tm_node_shaper_profile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_tm_node_shaper_profile_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1581,8 +1581,8 @@ cmdline_parse_token_string_t
|
|||
multi_shared_shaper_id, TOKEN_STRING_MULTI);
|
||||
|
||||
static void cmd_add_port_tm_nonleaf_node_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_tm_nonleaf_node_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1742,8 +1742,8 @@ cmdline_parse_token_string_t
|
|||
multi_shared_shaper_id, TOKEN_STRING_MULTI);
|
||||
|
||||
static void cmd_add_port_tm_leaf_node_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_add_port_tm_leaf_node_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1864,8 +1864,8 @@ cmdline_parse_token_num_t cmd_del_port_tm_node_node_id =
|
|||
node_id, UINT32);
|
||||
|
||||
static void cmd_del_port_tm_node_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_del_port_tm_node_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -1951,8 +1951,8 @@ cmdline_parse_token_num_t cmd_set_port_tm_node_parent_weight =
|
|||
weight, UINT32);
|
||||
|
||||
static void cmd_set_port_tm_node_parent_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_port_tm_node_parent_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2030,8 +2030,8 @@ cmdline_parse_token_num_t cmd_suspend_port_tm_node_node_id =
|
|||
struct cmd_suspend_port_tm_node_result, node_id, UINT32);
|
||||
|
||||
static void cmd_suspend_port_tm_node_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_suspend_port_tm_node_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2095,8 +2095,8 @@ cmdline_parse_token_num_t cmd_resume_port_tm_node_node_id =
|
|||
struct cmd_resume_port_tm_node_result, node_id, UINT32);
|
||||
|
||||
static void cmd_resume_port_tm_node_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_resume_port_tm_node_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2162,8 +2162,8 @@ cmdline_parse_token_string_t cmd_port_tm_hierarchy_commit_clean_on_fail =
|
|||
clean_on_fail, "yes#no");
|
||||
|
||||
static void cmd_port_tm_hierarchy_commit_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_port_tm_hierarchy_commit_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2249,8 +2249,8 @@ cmdline_parse_token_num_t cmd_port_tm_mark_ip_ecn_red =
|
|||
red, UINT16);
|
||||
|
||||
static void cmd_port_tm_mark_ip_ecn_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_port_tm_mark_ip_ecn_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2336,8 +2336,8 @@ cmdline_parse_token_num_t cmd_port_tm_mark_ip_dscp_red =
|
|||
red, UINT16);
|
||||
|
||||
static void cmd_port_tm_mark_ip_dscp_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_port_tm_mark_ip_dscp_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
@ -2423,8 +2423,8 @@ cmdline_parse_token_num_t cmd_port_tm_mark_vlan_dei_red =
|
|||
red, UINT16);
|
||||
|
||||
static void cmd_port_tm_mark_vlan_dei_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_port_tm_mark_vlan_dei_result *res = parsed_result;
|
||||
struct rte_tm_error error;
|
||||
|
|
|
@ -342,7 +342,7 @@ pkt_burst_transmit(struct fwd_stream *fs)
|
|||
}
|
||||
|
||||
static void
|
||||
tx_only_begin(__attribute__((unused)) portid_t pi)
|
||||
tx_only_begin(__rte_unused portid_t pi)
|
||||
{
|
||||
uint16_t pkt_data_len;
|
||||
|
||||
|
|
|
@ -59,8 +59,8 @@ struct cmd_autotest_result {
|
|||
};
|
||||
|
||||
static void cmd_autotest_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct test_command *t;
|
||||
struct cmd_autotest_result *res = parsed_result;
|
||||
|
@ -112,8 +112,8 @@ dump_struct_sizes(void)
|
|||
}
|
||||
|
||||
static void cmd_dump_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_dump_result *res = parsed_result;
|
||||
|
||||
|
@ -167,7 +167,7 @@ struct cmd_dump_one_result {
|
|||
};
|
||||
|
||||
static void cmd_dump_one_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_dump_one_result *res = parsed_result;
|
||||
|
||||
|
@ -216,9 +216,9 @@ struct cmd_quit_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_quit_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_quit_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_quit(cl);
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ struct cmd_set_rxtx_result {
|
|||
};
|
||||
|
||||
static void cmd_set_rxtx_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_rxtx_result *res = parsed_result;
|
||||
if (test_set_rxtx_conf(res->mode) < 0)
|
||||
|
@ -281,7 +281,7 @@ struct cmd_set_rxtx_anchor {
|
|||
static void
|
||||
cmd_set_rxtx_anchor_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_rxtx_anchor *res = parsed_result;
|
||||
if (test_set_rxtx_anchor(res->type) < 0)
|
||||
|
@ -318,7 +318,7 @@ struct cmd_set_rxtx_sc {
|
|||
static void
|
||||
cmd_set_rxtx_sc_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_rxtx_sc *res = parsed_result;
|
||||
if (test_set_rxtx_sc(res->type) < 0)
|
||||
|
|
|
@ -108,7 +108,7 @@ static rte_atomic64_t count;
|
|||
static rte_atomic32_t synchro;
|
||||
|
||||
static int
|
||||
test_atomic_usual(__attribute__((unused)) void *arg)
|
||||
test_atomic_usual(__rte_unused void *arg)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
@ -146,7 +146,7 @@ test_atomic_usual(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_atomic_tas(__attribute__((unused)) void *arg)
|
||||
test_atomic_tas(__rte_unused void *arg)
|
||||
{
|
||||
while (rte_atomic32_read(&synchro) == 0)
|
||||
;
|
||||
|
@ -162,7 +162,7 @@ test_atomic_tas(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_atomic_addsub_and_return(__attribute__((unused)) void *arg)
|
||||
test_atomic_addsub_and_return(__rte_unused void *arg)
|
||||
{
|
||||
uint32_t tmp16;
|
||||
uint32_t tmp32;
|
||||
|
@ -206,7 +206,7 @@ test_atomic_addsub_and_return(__attribute__((unused)) void *arg)
|
|||
*
|
||||
*/
|
||||
static int
|
||||
test_atomic_inc_and_test(__attribute__((unused)) void *arg)
|
||||
test_atomic_inc_and_test(__rte_unused void *arg)
|
||||
{
|
||||
while (rte_atomic32_read(&synchro) == 0)
|
||||
;
|
||||
|
@ -233,7 +233,7 @@ test_atomic_inc_and_test(__attribute__((unused)) void *arg)
|
|||
* be checked as the result later.
|
||||
*/
|
||||
static int
|
||||
test_atomic_dec_and_test(__attribute__((unused)) void *arg)
|
||||
test_atomic_dec_and_test(__rte_unused void *arg)
|
||||
{
|
||||
while (rte_atomic32_read(&synchro) == 0)
|
||||
;
|
||||
|
@ -261,7 +261,7 @@ static rte_int128_t count128;
|
|||
* iteration it runs compare and swap operation with different memory models.
|
||||
*/
|
||||
static int
|
||||
test_atomic128_cmp_exchange(__attribute__((unused)) void *arg)
|
||||
test_atomic128_cmp_exchange(__rte_unused void *arg)
|
||||
{
|
||||
rte_int128_t expected;
|
||||
int success;
|
||||
|
@ -397,7 +397,7 @@ get_crc8(uint8_t *message, int length)
|
|||
* +------------+------------+
|
||||
*/
|
||||
static int
|
||||
test_atomic_exchange(__attribute__((unused)) void *arg)
|
||||
test_atomic_exchange(__rte_unused void *arg)
|
||||
{
|
||||
int i;
|
||||
test16_t nt16, ot16; /* new token, old token */
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include <rte_common.h>
|
||||
|
||||
#include <cmdline_vt100.h>
|
||||
#include <cmdline_rdline.h>
|
||||
#include <cmdline_parse.h>
|
||||
|
@ -23,18 +25,18 @@
|
|||
/****************************************************************/
|
||||
/* static functions required for some tests */
|
||||
static void
|
||||
valid_buffer(__attribute__((unused))struct rdline *rdl,
|
||||
__attribute__((unused))const char *buf,
|
||||
__attribute__((unused)) unsigned int size)
|
||||
valid_buffer(__rte_unused struct rdline *rdl,
|
||||
__rte_unused const char *buf,
|
||||
__rte_unused unsigned int size)
|
||||
{
|
||||
}
|
||||
|
||||
static int
|
||||
complete_buffer(__attribute__((unused)) struct rdline *rdl,
|
||||
__attribute__((unused)) const char *buf,
|
||||
__attribute__((unused)) char *dstbuf,
|
||||
__attribute__((unused)) unsigned int dstsize,
|
||||
__attribute__((unused)) int *state)
|
||||
complete_buffer(__rte_unused struct rdline *rdl,
|
||||
__rte_unused const char *buf,
|
||||
__rte_unused char *dstbuf,
|
||||
__rte_unused unsigned int dstsize,
|
||||
__rte_unused int *state)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ static rte_atomic32_t synchro = RTE_ATOMIC32_INIT(0);
|
|||
* rte_eal_init only init once
|
||||
*/
|
||||
static int
|
||||
test_eal_init_once(__attribute__((unused)) void *arg)
|
||||
test_eal_init_once(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
|
||||
|
@ -99,7 +99,7 @@ ring_clean(unsigned int lcore_id)
|
|||
}
|
||||
|
||||
static int
|
||||
ring_create_lookup(__attribute__((unused)) void *arg)
|
||||
ring_create_lookup(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
struct rte_ring * rp;
|
||||
|
@ -133,7 +133,7 @@ ring_create_lookup(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static void
|
||||
my_obj_init(struct rte_mempool *mp, __attribute__((unused)) void *arg,
|
||||
my_obj_init(struct rte_mempool *mp, __rte_unused void *arg,
|
||||
void *obj, unsigned i)
|
||||
{
|
||||
uint32_t *objnum = obj;
|
||||
|
@ -159,7 +159,7 @@ mempool_clean(unsigned int lcore_id)
|
|||
}
|
||||
|
||||
static int
|
||||
mempool_create_lookup(__attribute__((unused)) void *arg)
|
||||
mempool_create_lookup(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
struct rte_mempool * mp;
|
||||
|
@ -217,7 +217,7 @@ hash_clean(unsigned lcore_id)
|
|||
}
|
||||
|
||||
static int
|
||||
hash_create_free(__attribute__((unused)) void *arg)
|
||||
hash_create_free(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
struct rte_hash *handle;
|
||||
|
@ -281,7 +281,7 @@ fbk_clean(unsigned lcore_id)
|
|||
}
|
||||
|
||||
static int
|
||||
fbk_create_free(__attribute__((unused)) void *arg)
|
||||
fbk_create_free(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
struct rte_fbk_hash_table *handle;
|
||||
|
@ -347,7 +347,7 @@ lpm_clean(unsigned int lcore_id)
|
|||
}
|
||||
|
||||
static int
|
||||
lpm_create_free(__attribute__((unused)) void *arg)
|
||||
lpm_create_free(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_self = rte_lcore_id();
|
||||
struct rte_lpm *lpm;
|
||||
|
|
|
@ -75,9 +75,9 @@ int hash_logtype_test;
|
|||
* Hash function that always returns the same value, to easily test what
|
||||
* happens when a bucket is full.
|
||||
*/
|
||||
static uint32_t pseudo_hash(__attribute__((unused)) const void *keys,
|
||||
__attribute__((unused)) uint32_t key_len,
|
||||
__attribute__((unused)) uint32_t init_val)
|
||||
static uint32_t pseudo_hash(__rte_unused const void *keys,
|
||||
__rte_unused uint32_t key_len,
|
||||
__rte_unused uint32_t init_val)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ static rte_atomic64_t greads;
|
|||
static rte_atomic64_t gwrites;
|
||||
|
||||
static int
|
||||
test_hash_readwrite_worker(__attribute__((unused)) void *arg)
|
||||
test_hash_readwrite_worker(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t i, offset;
|
||||
uint32_t lcore_id = rte_lcore_id();
|
||||
|
|
|
@ -98,7 +98,7 @@ get_short_sig(const hash_sig_t hash)
|
|||
}
|
||||
|
||||
static inline uint32_t
|
||||
get_prim_bucket_index(__attribute__((unused)) const struct rte_hash *h,
|
||||
get_prim_bucket_index(__rte_unused const struct rte_hash *h,
|
||||
const hash_sig_t hash)
|
||||
{
|
||||
uint32_t num_buckets;
|
||||
|
@ -109,7 +109,7 @@ get_prim_bucket_index(__attribute__((unused)) const struct rte_hash *h,
|
|||
}
|
||||
|
||||
static inline uint32_t
|
||||
get_alt_bucket_index(__attribute__((unused)) const struct rte_hash *h,
|
||||
get_alt_bucket_index(__rte_unused const struct rte_hash *h,
|
||||
uint32_t cur_bkt_idx, uint16_t sig)
|
||||
{
|
||||
uint32_t num_buckets;
|
||||
|
@ -555,7 +555,7 @@ generate_keys(void)
|
|||
}
|
||||
|
||||
static int
|
||||
test_rwc_reader(__attribute__((unused)) void *arg)
|
||||
test_rwc_reader(__rte_unused void *arg)
|
||||
{
|
||||
uint32_t i, j;
|
||||
int ret;
|
||||
|
@ -678,7 +678,7 @@ write_keys(uint8_t write_type)
|
|||
}
|
||||
|
||||
static int
|
||||
test_rwc_multi_writer(__attribute__((unused)) void *arg)
|
||||
test_rwc_multi_writer(__rte_unused void *arg)
|
||||
{
|
||||
uint32_t i, offset;
|
||||
uint32_t pos_core = (uint32_t)((uintptr_t)arg);
|
||||
|
|
|
@ -67,7 +67,7 @@ is_aligned(void *p, int align)
|
|||
}
|
||||
|
||||
static int
|
||||
test_align_overlap_per_lcore(__attribute__((unused)) void *arg)
|
||||
test_align_overlap_per_lcore(__rte_unused void *arg)
|
||||
{
|
||||
const unsigned align1 = 8,
|
||||
align2 = 64,
|
||||
|
@ -138,7 +138,7 @@ test_align_overlap_per_lcore(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_reordered_free_per_lcore(__attribute__((unused)) void *arg)
|
||||
test_reordered_free_per_lcore(__rte_unused void *arg)
|
||||
{
|
||||
const unsigned align1 = 8,
|
||||
align2 = 64,
|
||||
|
@ -582,7 +582,7 @@ test_realloc(void)
|
|||
}
|
||||
|
||||
static int
|
||||
test_random_alloc_free(void *_ __attribute__((unused)))
|
||||
test_random_alloc_free(void *_ __rte_unused)
|
||||
{
|
||||
struct mem_list {
|
||||
struct mem_list *next;
|
||||
|
|
|
@ -50,7 +50,7 @@ static unsigned int count;
|
|||
static rte_atomic32_t synchro;
|
||||
|
||||
static int
|
||||
test_mcslock_per_core(__attribute__((unused)) void *arg)
|
||||
test_mcslock_per_core(__rte_unused void *arg)
|
||||
{
|
||||
/* Per core me node. */
|
||||
rte_mcslock_t ml_me = RTE_PER_LCORE(_ml_me);
|
||||
|
@ -148,7 +148,7 @@ test_mcslock_perf(void)
|
|||
* return immediately.
|
||||
*/
|
||||
static int
|
||||
test_mcslock_try(__attribute__((unused)) void *arg)
|
||||
test_mcslock_try(__rte_unused void *arg)
|
||||
{
|
||||
/**< Per core me node. */
|
||||
rte_mcslock_t ml_me = RTE_PER_LCORE(_ml_me);
|
||||
|
|
|
@ -64,7 +64,7 @@ static rte_atomic32_t synchro;
|
|||
* other bytes are set to 0.
|
||||
*/
|
||||
static void
|
||||
my_obj_init(struct rte_mempool *mp, __attribute__((unused)) void *arg,
|
||||
my_obj_init(struct rte_mempool *mp, __rte_unused void *arg,
|
||||
void *obj, unsigned i)
|
||||
{
|
||||
uint32_t *objnum = obj;
|
||||
|
@ -291,13 +291,13 @@ static int test_mempool_single_consumer(void)
|
|||
* can run on one lcore only
|
||||
*/
|
||||
static int
|
||||
test_mempool_launch_single_consumer(__attribute__((unused)) void *arg)
|
||||
test_mempool_launch_single_consumer(__rte_unused void *arg)
|
||||
{
|
||||
return test_mempool_single_consumer();
|
||||
}
|
||||
|
||||
static void
|
||||
my_mp_init(struct rte_mempool *mp, __attribute__((unused)) void *arg)
|
||||
my_mp_init(struct rte_mempool *mp, __rte_unused void *arg)
|
||||
{
|
||||
printf("mempool name is %s\n", mp->name);
|
||||
/* nothing to be implemented here*/
|
||||
|
|
|
@ -104,7 +104,7 @@ static struct mempool_test_stats stats[RTE_MAX_LCORE];
|
|||
* other bytes are set to 0.
|
||||
*/
|
||||
static void
|
||||
my_obj_init(struct rte_mempool *mp, __attribute__((unused)) void *arg,
|
||||
my_obj_init(struct rte_mempool *mp, __rte_unused void *arg,
|
||||
void *obj, unsigned i)
|
||||
{
|
||||
uint32_t *objnum = obj;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
static RTE_DEFINE_PER_LCORE(unsigned, test) = 0x12345678;
|
||||
|
||||
static int
|
||||
assign_vars(__attribute__((unused)) void *arg)
|
||||
assign_vars(__rte_unused void *arg)
|
||||
{
|
||||
if (RTE_PER_LCORE(test) != 0x12345678)
|
||||
return -1;
|
||||
|
@ -44,7 +44,7 @@ assign_vars(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
display_vars(__attribute__((unused)) void *arg)
|
||||
display_vars(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
unsigned var = RTE_PER_LCORE(test);
|
||||
|
@ -59,7 +59,7 @@ display_vars(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_per_lcore_delay(__attribute__((unused)) void *arg)
|
||||
test_per_lcore_delay(__rte_unused void *arg)
|
||||
{
|
||||
rte_delay_ms(100);
|
||||
printf("wait 100ms on lcore %u\n", rte_lcore_id());
|
||||
|
|
|
@ -65,7 +65,7 @@ struct try_rwlock_lcore {
|
|||
static struct try_rwlock_lcore try_lcore_data[RTE_MAX_LCORE];
|
||||
|
||||
static int
|
||||
test_rwlock_per_core(__attribute__((unused)) void *arg)
|
||||
test_rwlock_per_core(__rte_unused void *arg)
|
||||
{
|
||||
rte_rwlock_write_lock(&sl);
|
||||
printf("Global write lock taken on core %u\n", rte_lcore_id());
|
||||
|
@ -92,7 +92,7 @@ static uint64_t time_count[RTE_MAX_LCORE] = {0};
|
|||
#define TEST_RWLOCK_DEBUG 0
|
||||
|
||||
static int
|
||||
load_loop_fn(__attribute__((unused)) void *arg)
|
||||
load_loop_fn(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t time_diff = 0, begin;
|
||||
uint64_t hz = rte_get_timer_hz();
|
||||
|
|
|
@ -52,7 +52,7 @@ static unsigned count = 0;
|
|||
static rte_atomic32_t synchro;
|
||||
|
||||
static int
|
||||
test_spinlock_per_core(__attribute__((unused)) void *arg)
|
||||
test_spinlock_per_core(__rte_unused void *arg)
|
||||
{
|
||||
rte_spinlock_lock(&sl);
|
||||
printf("Global lock taken on core %u\n", rte_lcore_id());
|
||||
|
@ -66,7 +66,7 @@ test_spinlock_per_core(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_spinlock_recursive_per_core(__attribute__((unused)) void *arg)
|
||||
test_spinlock_recursive_per_core(__rte_unused void *arg)
|
||||
{
|
||||
unsigned id = rte_lcore_id();
|
||||
|
||||
|
@ -178,7 +178,7 @@ test_spinlock_perf(void)
|
|||
* checked as the result later.
|
||||
*/
|
||||
static int
|
||||
test_spinlock_try(__attribute__((unused)) void *arg)
|
||||
test_spinlock_try(__rte_unused void *arg)
|
||||
{
|
||||
if (rte_spinlock_trylock(&sl_try) == 0) {
|
||||
rte_spinlock_lock(&sl);
|
||||
|
|
|
@ -43,9 +43,9 @@ static void app_init_rings(void);
|
|||
static void app_init_mbuf_pools(void);
|
||||
|
||||
uint64_t pipeline_test_hash(void *key,
|
||||
__attribute__((unused)) void *key_mask,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint64_t seed)
|
||||
__rte_unused void *key_mask,
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint64_t seed)
|
||||
{
|
||||
uint32_t *k32 = key;
|
||||
uint32_t ip_dst = rte_be_to_cpu_32(k32[0]);
|
||||
|
@ -55,8 +55,8 @@ uint64_t pipeline_test_hash(void *key,
|
|||
}
|
||||
|
||||
uint32_t pipeline_test_hash_cuckoo(const void *key,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint32_t seed)
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint32_t seed)
|
||||
{
|
||||
const uint32_t *k32 = key;
|
||||
uint32_t ip_dst = rte_be_to_cpu_32(k32[0]);
|
||||
|
|
|
@ -103,14 +103,14 @@
|
|||
/* Function definitions */
|
||||
uint64_t pipeline_test_hash(
|
||||
void *key,
|
||||
__attribute__((unused)) void *key_mask,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint64_t seed);
|
||||
__rte_unused void *key_mask,
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint64_t seed);
|
||||
|
||||
uint32_t pipeline_test_hash_cuckoo(
|
||||
const void *key,
|
||||
__attribute__((unused)) uint32_t key_size,
|
||||
__attribute__((unused)) uint32_t seed);
|
||||
__rte_unused uint32_t key_size,
|
||||
__rte_unused uint32_t seed);
|
||||
|
||||
/* Extern variables */
|
||||
extern struct rte_pipeline *p;
|
||||
|
|
|
@ -74,11 +74,11 @@ table_action_stub_miss(struct rte_pipeline *p, struct rte_mbuf **pkts,
|
|||
uint64_t pkts_mask, struct rte_pipeline_table_entry *entry, void *arg);
|
||||
|
||||
rte_pipeline_table_action_handler_hit
|
||||
table_action_0x00(__attribute__((unused)) struct rte_pipeline *p,
|
||||
__attribute__((unused)) struct rte_mbuf **pkts,
|
||||
table_action_0x00(__rte_unused struct rte_pipeline *p,
|
||||
__rte_unused struct rte_mbuf **pkts,
|
||||
uint64_t pkts_mask,
|
||||
__attribute__((unused)) struct rte_pipeline_table_entry **entry,
|
||||
__attribute__((unused)) void *arg)
|
||||
__rte_unused struct rte_pipeline_table_entry **entry,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
printf("Table Action, setting pkts_mask to 0x00\n");
|
||||
pkts_mask = ~0x00;
|
||||
|
@ -87,11 +87,11 @@ table_action_0x00(__attribute__((unused)) struct rte_pipeline *p,
|
|||
}
|
||||
|
||||
rte_pipeline_table_action_handler_hit
|
||||
table_action_stub_hit(__attribute__((unused)) struct rte_pipeline *p,
|
||||
__attribute__((unused)) struct rte_mbuf **pkts,
|
||||
table_action_stub_hit(__rte_unused struct rte_pipeline *p,
|
||||
__rte_unused struct rte_mbuf **pkts,
|
||||
uint64_t pkts_mask,
|
||||
__attribute__((unused)) struct rte_pipeline_table_entry **entry,
|
||||
__attribute__((unused)) void *arg)
|
||||
__rte_unused struct rte_pipeline_table_entry **entry,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
printf("STUB Table Action Hit - doing nothing\n");
|
||||
printf("STUB Table Action Hit - setting mask to 0x%"PRIx64"\n",
|
||||
|
@ -103,10 +103,10 @@ table_action_stub_hit(__attribute__((unused)) struct rte_pipeline *p,
|
|||
|
||||
static int
|
||||
table_action_stub_miss(struct rte_pipeline *p,
|
||||
__attribute__((unused)) struct rte_mbuf **pkts,
|
||||
__rte_unused struct rte_mbuf **pkts,
|
||||
uint64_t pkts_mask,
|
||||
__attribute__((unused)) struct rte_pipeline_table_entry *entry,
|
||||
__attribute__((unused)) void *arg)
|
||||
__rte_unused struct rte_pipeline_table_entry *entry,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
printf("STUB Table Action Miss - setting mask to 0x%"PRIx64"\n",
|
||||
override_miss_mask);
|
||||
|
|
|
@ -52,7 +52,7 @@ static unsigned int count;
|
|||
static rte_atomic32_t synchro;
|
||||
|
||||
static int
|
||||
test_ticketlock_per_core(__attribute__((unused)) void *arg)
|
||||
test_ticketlock_per_core(__rte_unused void *arg)
|
||||
{
|
||||
rte_ticketlock_lock(&tl);
|
||||
printf("Global lock taken on core %u\n", rte_lcore_id());
|
||||
|
@ -66,7 +66,7 @@ test_ticketlock_per_core(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
test_ticketlock_recursive_per_core(__attribute__((unused)) void *arg)
|
||||
test_ticketlock_recursive_per_core(__rte_unused void *arg)
|
||||
{
|
||||
unsigned int id = rte_lcore_id();
|
||||
|
||||
|
@ -186,7 +186,7 @@ test_ticketlock_perf(void)
|
|||
* checked as the result later.
|
||||
*/
|
||||
static int
|
||||
test_ticketlock_try(__attribute__((unused)) void *arg)
|
||||
test_ticketlock_try(__rte_unused void *arg)
|
||||
{
|
||||
if (rte_ticketlock_trylock(&tl_try) == 0) {
|
||||
rte_ticketlock_lock(&tl);
|
||||
|
|
|
@ -137,8 +137,8 @@ mytimer_reset(struct mytimerinfo *timinfo, uint64_t ticks,
|
|||
|
||||
/* timer callback for stress tests */
|
||||
static void
|
||||
timer_stress_cb(__attribute__((unused)) struct rte_timer *tim,
|
||||
__attribute__((unused)) void *arg)
|
||||
timer_stress_cb(__rte_unused struct rte_timer *tim,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
long r;
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
|
@ -163,7 +163,7 @@ timer_stress_cb(__attribute__((unused)) struct rte_timer *tim,
|
|||
}
|
||||
|
||||
static int
|
||||
timer_stress_main_loop(__attribute__((unused)) void *arg)
|
||||
timer_stress_main_loop(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t hz = rte_get_timer_hz();
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
|
@ -272,7 +272,7 @@ timer_stress2_cb(struct rte_timer *tim __rte_unused, void *arg __rte_unused)
|
|||
#define NB_STRESS2_TIMERS 8192
|
||||
|
||||
static int
|
||||
timer_stress2_main_loop(__attribute__((unused)) void *arg)
|
||||
timer_stress2_main_loop(__rte_unused void *arg)
|
||||
{
|
||||
static struct rte_timer *timers;
|
||||
int i, ret;
|
||||
|
@ -457,7 +457,7 @@ timer_basic_cb(struct rte_timer *tim, void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
timer_basic_main_loop(__attribute__((unused)) void *arg)
|
||||
timer_basic_main_loop(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t hz = rte_get_timer_hz();
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
|
|
|
@ -106,7 +106,7 @@ reload_timer(struct rte_timer *tim)
|
|||
}
|
||||
|
||||
static int
|
||||
slave_main_loop(__attribute__((unused)) void *arg)
|
||||
slave_main_loop(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
unsigned i;
|
||||
|
|
|
@ -128,7 +128,7 @@ For example, the cmd_obj_del_show command is defined as shown below:
|
|||
struct object *obj;
|
||||
};
|
||||
|
||||
static void cmd_obj_del_show_parsed(void *parsed_result, struct cmdline *cl, attribute ((unused)) void *data)
|
||||
static void cmd_obj_del_show_parsed(void *parsed_result, struct cmdline *cl, __rte_unused void *data)
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ The following is the definition of the function:
|
|||
.. code-block:: c
|
||||
|
||||
static int
|
||||
lcore_hello( attribute ((unused)) void *arg)
|
||||
lcore_hello(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id;
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ to generate hints based on recent network load trends.
|
|||
.. code-block:: c
|
||||
|
||||
static
|
||||
attribute ((noreturn)) int main_loop( attribute ((unused)) void *dummy)
|
||||
attribute ((noreturn)) int main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
// ...
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ In this case, the timer is stopped using the rte_timer_stop() function.
|
|||
/* timer0 callback */
|
||||
|
||||
static void
|
||||
timer0_cb( attribute ((unused)) struct rte_timer *tim, __attribute ((unused)) void *arg)
|
||||
timer0_cb(__rte_unused struct rte_timer *tim, __rte_unused void *arg)
|
||||
{
|
||||
static unsigned counter = 0;
|
||||
|
||||
|
@ -159,7 +159,7 @@ rte_timer_reset() function:
|
|||
/* timer1 callback */
|
||||
|
||||
static void
|
||||
timer1_cb( attribute ((unused)) struct rte_timer *tim, _attribute ((unused)) void *arg)
|
||||
timer1_cb(__rte_unused struct rte_timer *tim, __rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
uint64_t hz;
|
||||
|
|
|
@ -333,7 +333,7 @@ extern struct dpaa2_memseg_list rte_dpaa2_memsegs;
|
|||
|
||||
#ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA
|
||||
extern uint8_t dpaa2_virt_mode;
|
||||
static void *dpaa2_mem_ptov(phys_addr_t paddr) __attribute__((unused));
|
||||
static void *dpaa2_mem_ptov(phys_addr_t paddr) __rte_unused;
|
||||
|
||||
static void *dpaa2_mem_ptov(phys_addr_t paddr)
|
||||
{
|
||||
|
@ -352,7 +352,7 @@ static void *dpaa2_mem_ptov(phys_addr_t paddr)
|
|||
return va;
|
||||
}
|
||||
|
||||
static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) __attribute__((unused));
|
||||
static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) __rte_unused;
|
||||
|
||||
static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr)
|
||||
{
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
#endif
|
||||
|
||||
#ifndef __always_unused
|
||||
#define __always_unused __attribute__((unused))
|
||||
#define __always_unused __rte_unused
|
||||
#endif
|
||||
|
||||
#ifndef __maybe_unused
|
||||
#define __maybe_unused __attribute__((unused))
|
||||
#define __maybe_unused __rte_unused
|
||||
#endif
|
||||
|
||||
#if defined(__GLIBC__) && !defined(pr_debug)
|
||||
|
|
|
@ -3556,7 +3556,7 @@ dpaa2_sec_process_parallel_event(struct qbman_swp *swp,
|
|||
qbman_swp_dqrr_consume(swp, dq);
|
||||
}
|
||||
static void
|
||||
dpaa2_sec_process_atomic_event(struct qbman_swp *swp __attribute__((unused)),
|
||||
dpaa2_sec_process_atomic_event(struct qbman_swp *swp __rte_unused,
|
||||
const struct qbman_fd *fd,
|
||||
const struct qbman_result *dq,
|
||||
struct dpaa2_queue *rxq,
|
||||
|
|
|
@ -489,9 +489,9 @@ update_client_stats(uint32_t addr, uint16_t port, uint32_t *TXorRXindicator)
|
|||
#endif
|
||||
|
||||
static void
|
||||
mode6_debug(const char __attribute__((unused)) *info,
|
||||
mode6_debug(const char __rte_unused *info,
|
||||
struct rte_ether_hdr *eth_h, uint16_t port,
|
||||
uint32_t __attribute__((unused)) *burstnumber)
|
||||
uint32_t __rte_unused *burstnumber)
|
||||
{
|
||||
struct rte_ipv4_hdr *ipv4_h;
|
||||
#ifdef RTE_LIBRTE_BOND_DEBUG_ALB
|
||||
|
|
|
@ -198,7 +198,7 @@ uint16_t dpaa2_dev_tx_ordered(void *queue, struct rte_mbuf **bufs,
|
|||
uint16_t dummy_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts);
|
||||
void dpaa2_dev_free_eqresp_buf(uint16_t eqresp_ci);
|
||||
void dpaa2_flow_clean(struct rte_eth_dev *dev);
|
||||
uint16_t dpaa2_dev_tx_conf(void *queue) __attribute__((unused));
|
||||
uint16_t dpaa2_dev_tx_conf(void *queue) __rte_unused;
|
||||
|
||||
#if defined(RTE_LIBRTE_IEEE1588)
|
||||
int dpaa2_timesync_enable(struct rte_eth_dev *dev);
|
||||
|
|
|
@ -29,7 +29,7 @@ static inline uint32_t __attribute__((hot))
|
|||
dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf,
|
||||
struct dpaa2_annot_hdr *annotation);
|
||||
|
||||
static void enable_tx_tstamp(struct qbman_fd *fd) __attribute__((unused));
|
||||
static void enable_tx_tstamp(struct qbman_fd *fd) __rte_unused;
|
||||
|
||||
#define DPAA2_MBUF_TO_CONTIG_FD(_mbuf, _fd, _bpid) do { \
|
||||
DPAA2_SET_FD_ADDR(_fd, DPAA2_MBUF_VADDR_TO_IOVA(_mbuf)); \
|
||||
|
@ -432,7 +432,7 @@ eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
|
|||
|
||||
static void
|
||||
eth_mbuf_to_fd(struct rte_mbuf *mbuf,
|
||||
struct qbman_fd *fd, uint16_t bpid) __attribute__((unused));
|
||||
struct qbman_fd *fd, uint16_t bpid) __rte_unused;
|
||||
|
||||
static void __rte_noinline __attribute__((hot))
|
||||
eth_mbuf_to_fd(struct rte_mbuf *mbuf,
|
||||
|
@ -688,7 +688,7 @@ dpaa2_dev_process_parallel_event(struct qbman_swp *swp,
|
|||
}
|
||||
|
||||
void __attribute__((hot))
|
||||
dpaa2_dev_process_atomic_event(struct qbman_swp *swp __attribute__((unused)),
|
||||
dpaa2_dev_process_atomic_event(struct qbman_swp *swp __rte_unused,
|
||||
const struct qbman_fd *fd,
|
||||
const struct qbman_result *dq,
|
||||
struct dpaa2_queue *rxq,
|
||||
|
|
|
@ -234,7 +234,7 @@ void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring)
|
|||
int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev,
|
||||
struct vnic_dev_ring *ring,
|
||||
unsigned int desc_count, unsigned int desc_size,
|
||||
__attribute__((unused)) unsigned int socket_id,
|
||||
__rte_unused unsigned int socket_id,
|
||||
char *z_name)
|
||||
{
|
||||
void *alloc_addr;
|
||||
|
@ -273,7 +273,7 @@ int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
void vnic_dev_free_desc_ring(__attribute__((unused)) struct vnic_dev *vdev,
|
||||
void vnic_dev_free_desc_ring(__rte_unused struct vnic_dev *vdev,
|
||||
struct vnic_dev_ring *ring)
|
||||
{
|
||||
if (ring->descs) {
|
||||
|
|
|
@ -531,7 +531,7 @@ static void hinic_fillout_indir_tbl(struct hinic_nic_dev *nic_dev, u32 *indir)
|
|||
}
|
||||
|
||||
static int hinic_rss_init(struct hinic_nic_dev *nic_dev,
|
||||
__attribute__((unused)) u8 *rq2iq_map,
|
||||
__rte_unused u8 *rq2iq_map,
|
||||
struct rte_eth_rss_conf *rss_conf)
|
||||
{
|
||||
u32 indir_tbl[HINIC_RSS_INDIR_SIZE] = {0};
|
||||
|
|
|
@ -1403,7 +1403,7 @@ hns3_add_uc_addr_common(struct hns3_hw *hw, struct rte_ether_addr *mac_addr)
|
|||
|
||||
static int
|
||||
hns3_add_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
|
||||
uint32_t idx, __attribute__ ((unused)) uint32_t pool)
|
||||
uint32_t idx, __rte_unused uint32_t pool)
|
||||
{
|
||||
struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private);
|
||||
char mac_str[RTE_ETHER_ADDR_FMT_SIZE];
|
||||
|
|
|
@ -136,8 +136,8 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)
|
|||
|
||||
static int
|
||||
hns3vf_add_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
|
||||
__attribute__ ((unused)) uint32_t idx,
|
||||
__attribute__ ((unused)) uint32_t pool)
|
||||
__rte_unused uint32_t idx,
|
||||
__rte_unused uint32_t pool)
|
||||
{
|
||||
struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private);
|
||||
char mac_str[RTE_ETHER_ADDR_FMT_SIZE];
|
||||
|
|
|
@ -4489,7 +4489,7 @@ i40e_dev_rss_reta_query(struct rte_eth_dev *dev,
|
|||
* @alignment: what to align the allocation to
|
||||
**/
|
||||
enum i40e_status_code
|
||||
i40e_allocate_dma_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
||||
i40e_allocate_dma_mem_d(__rte_unused struct i40e_hw *hw,
|
||||
struct i40e_dma_mem *mem,
|
||||
u64 size,
|
||||
u32 alignment)
|
||||
|
@ -4523,7 +4523,7 @@ i40e_allocate_dma_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
|||
* @mem: ptr to mem struct to free
|
||||
**/
|
||||
enum i40e_status_code
|
||||
i40e_free_dma_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
||||
i40e_free_dma_mem_d(__rte_unused struct i40e_hw *hw,
|
||||
struct i40e_dma_mem *mem)
|
||||
{
|
||||
if (!mem)
|
||||
|
@ -4547,7 +4547,7 @@ i40e_free_dma_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
|||
* @size: size of memory requested
|
||||
**/
|
||||
enum i40e_status_code
|
||||
i40e_allocate_virt_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
||||
i40e_allocate_virt_mem_d(__rte_unused struct i40e_hw *hw,
|
||||
struct i40e_virt_mem *mem,
|
||||
u32 size)
|
||||
{
|
||||
|
@ -4569,7 +4569,7 @@ i40e_allocate_virt_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
|||
* @mem: pointer to mem struct to free
|
||||
**/
|
||||
enum i40e_status_code
|
||||
i40e_free_virt_mem_d(__attribute__((unused)) struct i40e_hw *hw,
|
||||
i40e_free_virt_mem_d(__rte_unused struct i40e_hw *hw,
|
||||
struct i40e_virt_mem *mem)
|
||||
{
|
||||
if (!mem)
|
||||
|
@ -4600,7 +4600,7 @@ i40e_release_spinlock_d(struct i40e_spinlock *sp)
|
|||
}
|
||||
|
||||
void
|
||||
i40e_destroy_spinlock_d(__attribute__((unused)) struct i40e_spinlock *sp)
|
||||
i40e_destroy_spinlock_d(__rte_unused struct i40e_spinlock *sp)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -120,10 +120,10 @@ writeq(uint64_t value, volatile void *addr)
|
|||
#endif /* __INTEL_NET_BASE_OSDEP__ */
|
||||
|
||||
#ifndef __always_unused
|
||||
#define __always_unused __attribute__((unused))
|
||||
#define __always_unused __rte_unused
|
||||
#endif
|
||||
#ifndef __maybe_unused
|
||||
#define __maybe_unused __attribute__((unused))
|
||||
#define __maybe_unused __rte_unused
|
||||
#endif
|
||||
#ifndef __packed
|
||||
#define __packed __rte_packed
|
||||
|
@ -219,14 +219,14 @@ ice_release_lock(struct ice_lock *sp)
|
|||
}
|
||||
|
||||
static inline void
|
||||
ice_destroy_lock(__attribute__((unused)) struct ice_lock *sp)
|
||||
ice_destroy_lock(__rte_unused struct ice_lock *sp)
|
||||
{
|
||||
}
|
||||
|
||||
struct ice_hw;
|
||||
|
||||
static inline void *
|
||||
ice_alloc_dma_mem(__attribute__((unused)) struct ice_hw *hw,
|
||||
ice_alloc_dma_mem(__rte_unused struct ice_hw *hw,
|
||||
struct ice_dma_mem *mem, u64 size)
|
||||
{
|
||||
const struct rte_memzone *mz = NULL;
|
||||
|
@ -252,7 +252,7 @@ ice_alloc_dma_mem(__attribute__((unused)) struct ice_hw *hw,
|
|||
}
|
||||
|
||||
static inline void
|
||||
ice_free_dma_mem(__attribute__((unused)) struct ice_hw *hw,
|
||||
ice_free_dma_mem(__rte_unused struct ice_hw *hw,
|
||||
struct ice_dma_mem *mem)
|
||||
{
|
||||
PMD_DRV_LOG(DEBUG, "memzone %s to be freed with physical address: "
|
||||
|
|
|
@ -6263,8 +6263,8 @@ ixgbe_set_queue_rate_limit(struct rte_eth_dev *dev,
|
|||
|
||||
static int
|
||||
ixgbevf_add_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
|
||||
__attribute__((unused)) uint32_t index,
|
||||
__attribute__((unused)) uint32_t pool)
|
||||
__rte_unused uint32_t index,
|
||||
__rte_unused uint32_t pool)
|
||||
{
|
||||
struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
|
||||
int diag;
|
||||
|
@ -7066,7 +7066,7 @@ ixgbe_dev_filter_ctrl(struct rte_eth_dev *dev,
|
|||
}
|
||||
|
||||
static u8 *
|
||||
ixgbe_dev_addr_list_itr(__attribute__((unused)) struct ixgbe_hw *hw,
|
||||
ixgbe_dev_addr_list_itr(__rte_unused struct ixgbe_hw *hw,
|
||||
u8 **mc_addr_ptr, u32 *vmdq)
|
||||
{
|
||||
u8 *mc_addr;
|
||||
|
|
|
@ -406,7 +406,7 @@ static inline void *pfe_mem_ptov(phys_addr_t paddr)
|
|||
return rte_mem_iova2virt(paddr);
|
||||
}
|
||||
|
||||
static phys_addr_t pfe_mem_vtop(uint64_t vaddr) __attribute__((unused));
|
||||
static phys_addr_t pfe_mem_vtop(uint64_t vaddr) __rte_unused;
|
||||
|
||||
static inline phys_addr_t pfe_mem_vtop(uint64_t vaddr)
|
||||
{
|
||||
|
|
|
@ -426,7 +426,7 @@ u32 qede_osal_log2(u32);
|
|||
#define OSAL_PAGE_SIZE 4096
|
||||
#define OSAL_CACHE_LINE_SIZE RTE_CACHE_LINE_SIZE
|
||||
#define OSAL_IOMEM volatile
|
||||
#define OSAL_UNUSED __attribute__((unused))
|
||||
#define OSAL_UNUSED __rte_unused
|
||||
#define OSAL_UNLIKELY(x) __builtin_expect(!!(x), 0)
|
||||
#define OSAL_MIN_T(type, __min1, __min2) \
|
||||
((type)(__min1) < (type)(__min2) ? (type)(__min1) : (type)(__min2))
|
||||
|
|
|
@ -1030,7 +1030,7 @@ qede_set_ucast_tunn_cmn_param(struct ecore_filter_ucast *ucast,
|
|||
static int
|
||||
_qede_tunn_filter_config(struct rte_eth_dev *eth_dev,
|
||||
const struct rte_eth_tunnel_filter_conf *conf,
|
||||
__attribute__((unused)) enum rte_filter_op filter_op,
|
||||
__rte_unused enum rte_filter_op filter_op,
|
||||
enum ecore_tunn_clss *clss,
|
||||
bool add)
|
||||
{
|
||||
|
@ -1168,7 +1168,7 @@ qede_tunn_filter_config(struct rte_eth_dev *eth_dev,
|
|||
}
|
||||
|
||||
static int
|
||||
qede_flow_validate_attr(__attribute__((unused))struct rte_eth_dev *dev,
|
||||
qede_flow_validate_attr(__rte_unused struct rte_eth_dev *dev,
|
||||
const struct rte_flow_attr *attr,
|
||||
struct rte_flow_error *error)
|
||||
{
|
||||
|
@ -1218,7 +1218,7 @@ qede_flow_validate_attr(__attribute__((unused))struct rte_eth_dev *dev,
|
|||
}
|
||||
|
||||
static int
|
||||
qede_flow_parse_pattern(__attribute__((unused))struct rte_eth_dev *dev,
|
||||
qede_flow_parse_pattern(__rte_unused struct rte_eth_dev *dev,
|
||||
const struct rte_flow_item pattern[],
|
||||
struct rte_flow_error *error,
|
||||
struct rte_flow *flow)
|
||||
|
|
|
@ -36,7 +36,7 @@ static const char *mbox_message[NIC_MBOX_MSG_MAX] = {
|
|||
[NIC_MBOX_MSG_SHUTDOWN] = "NIC_MBOX_MSG_SHUTDOWN",
|
||||
};
|
||||
|
||||
static inline const char * __attribute__((unused))
|
||||
static inline const char * __rte_unused
|
||||
nicvf_mbox_msg_str(int msg)
|
||||
{
|
||||
assert(msg >= 0 && msg < NIC_MBOX_MSG_MAX);
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
ret; \
|
||||
})
|
||||
|
||||
#define __maybe_unused __attribute__((__unused__))
|
||||
#define __maybe_unused __rte_unused
|
||||
|
||||
#define UNUSED(x) (void)(x)
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
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;
|
||||
|
@ -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,
|
||||
__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;
|
||||
|
@ -569,9 +569,9 @@ struct cmd_start_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
int slave_core_id = rte_lcore_id();
|
||||
|
||||
|
@ -627,9 +627,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl,
|
||||
"ALB - link bonding mode 6 example\n"
|
||||
|
@ -659,9 +659,9 @@ struct cmd_stop_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
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;
|
||||
};
|
||||
|
||||
static void cmd_quit_parsed(__attribute__((unused)) void *parsed_result,
|
||||
static void cmd_quit_parsed(__rte_unused void *parsed_result,
|
||||
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) {
|
||||
|
@ -743,9 +743,9 @@ struct cmd_show_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
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 */
|
||||
static void prompt(__attribute__((unused)) void *arg1)
|
||||
static void prompt(__rte_unused void *arg1)
|
||||
{
|
||||
struct cmdline *cl;
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ struct cmd_obj_del_show_result {
|
|||
|
||||
static void cmd_obj_del_show_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_obj_del_show_result *res = parsed_result;
|
||||
char ip_str[INET6_ADDRSTRLEN];
|
||||
|
@ -122,7 +122,7 @@ struct cmd_obj_add_result {
|
|||
|
||||
static void cmd_obj_add_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_obj_add_result *res = parsed_result;
|
||||
struct object *o;
|
||||
|
@ -181,9 +181,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl,
|
||||
"Demo example of command line interface in RTE\n\n"
|
||||
|
|
|
@ -104,7 +104,7 @@ int complete_get_elt_obj_list(cmdline_parse_token_hdr_t *tk,
|
|||
}
|
||||
|
||||
|
||||
int get_help_obj_list(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
||||
int get_help_obj_list(__rte_unused cmdline_parse_token_hdr_t *tk,
|
||||
char *dstbuf, unsigned int size)
|
||||
{
|
||||
snprintf(dstbuf, size, "Obj-List");
|
||||
|
|
|
@ -176,7 +176,7 @@ static void process_frame(struct app_port *ptr_port,
|
|||
rte_ether_addr_copy(&ptr_port->mac_addr, &ptr_mac_hdr->s_addr);
|
||||
}
|
||||
|
||||
static int slave_main(__attribute__((unused)) void *ptr_data)
|
||||
static int slave_main(__rte_unused void *ptr_data)
|
||||
{
|
||||
struct app_port *ptr_port;
|
||||
struct rte_mbuf *ptr_frame;
|
||||
|
|
|
@ -49,8 +49,8 @@ struct aes_test_algo {
|
|||
|
||||
static int
|
||||
parse_interim_enc_dec(const char *key,
|
||||
__attribute__((__unused__)) char *text,
|
||||
__attribute__((__unused__)) struct fips_val *val)
|
||||
__rte_unused char *text,
|
||||
__rte_unused struct fips_val *val)
|
||||
{
|
||||
if (strcmp(key, OP_ENC_STR) == 0)
|
||||
info.op = FIPS_TEST_ENC_AUTH_GEN;
|
||||
|
|
|
@ -31,9 +31,9 @@ struct hash_size_conversion {
|
|||
};
|
||||
|
||||
static int
|
||||
parse_interim_algo(__attribute__((__unused__)) const char *key,
|
||||
parse_interim_algo(__rte_unused const char *key,
|
||||
char *text,
|
||||
__attribute__((__unused__)) struct fips_val *val)
|
||||
__rte_unused struct fips_val *val)
|
||||
{
|
||||
|
||||
uint32_t i;
|
||||
|
|
|
@ -29,9 +29,9 @@ struct plain_hash_size_conversion {
|
|||
};
|
||||
|
||||
static int
|
||||
parse_interim_algo(__attribute__((__unused__)) const char *key,
|
||||
parse_interim_algo(__rte_unused const char *key,
|
||||
char *text,
|
||||
__attribute__((__unused__)) struct fips_val *val)
|
||||
__rte_unused struct fips_val *val)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ parse_tdes_uint8_hex_str(const char *key, char *src, struct fips_val *val);
|
|||
|
||||
static int
|
||||
parse_tdes_interim(const char *key,
|
||||
__attribute__((__unused__)) char *text,
|
||||
__rte_unused char *text,
|
||||
struct fips_val *val);
|
||||
|
||||
struct fips_test_callback tdes_tests_vectors[] = {
|
||||
|
@ -95,8 +95,8 @@ struct fips_test_callback tdes_writeback_callbacks[] = {
|
|||
|
||||
static int
|
||||
parse_tdes_interim(const char *key,
|
||||
__attribute__((__unused__)) char *text,
|
||||
__attribute__((__unused__)) struct fips_val *val)
|
||||
__rte_unused char *text,
|
||||
__rte_unused struct fips_val *val)
|
||||
{
|
||||
if (strstr(key, ENC_STR))
|
||||
info.op = FIPS_TEST_ENC_AUTH_GEN;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <rte_debug.h>
|
||||
|
||||
static int
|
||||
lcore_hello(__attribute__((unused)) void *arg)
|
||||
lcore_hello(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id;
|
||||
lcore_id = rte_lcore_id();
|
||||
|
|
|
@ -382,7 +382,7 @@ l3fwd_simple_forward(struct rte_mbuf *m, struct lcore_queue_conf *qconf,
|
|||
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_loop(__attribute__((unused)) void *dummy)
|
||||
main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
|
|
@ -420,7 +420,7 @@ reassemble(struct rte_mbuf *m, uint16_t portid, uint32_t queue,
|
|||
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_loop(__attribute__((unused)) void *dummy)
|
||||
main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
|
|
@ -535,7 +535,7 @@ l2fwd_main_loop(void)
|
|||
}
|
||||
|
||||
static int
|
||||
l2fwd_launch_one_lcore(__attribute__((unused)) void *dummy)
|
||||
l2fwd_launch_one_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
l2fwd_main_loop();
|
||||
return 0;
|
||||
|
|
|
@ -117,8 +117,8 @@ static void handle_sigterm(__rte_unused int value)
|
|||
|
||||
/* Print out statistics on packets dropped */
|
||||
static void
|
||||
print_stats(__attribute__((unused)) struct rte_timer *ptr_timer,
|
||||
__attribute__((unused)) void *ptr_data)
|
||||
print_stats(__rte_unused struct rte_timer *ptr_timer,
|
||||
__rte_unused void *ptr_data)
|
||||
{
|
||||
uint64_t total_packets_dropped, total_packets_tx, total_packets_rx;
|
||||
uint16_t portid;
|
||||
|
@ -278,7 +278,7 @@ l2fwd_main_loop(void)
|
|||
}
|
||||
|
||||
static int
|
||||
l2fwd_launch_one_lcore(__attribute__((unused)) void *dummy)
|
||||
l2fwd_launch_one_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
l2fwd_main_loop();
|
||||
return 0;
|
||||
|
|
|
@ -281,7 +281,7 @@ l2fwd_main_loop(void)
|
|||
}
|
||||
|
||||
static int
|
||||
l2fwd_launch_one_lcore(__attribute__((unused)) void *dummy)
|
||||
l2fwd_launch_one_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
l2fwd_main_loop();
|
||||
return 0;
|
||||
|
|
|
@ -1326,7 +1326,7 @@ is_valid_ipv4_pkt(struct rte_ipv4_hdr *pkt, uint32_t link_len)
|
|||
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_loop(__attribute__((unused)) void *dummy)
|
||||
main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
|
|
@ -461,8 +461,8 @@ signal_exit_now(int sigtype)
|
|||
|
||||
/* Freqency scale down timer callback */
|
||||
static void
|
||||
power_timer_cb(__attribute__((unused)) struct rte_timer *tim,
|
||||
__attribute__((unused)) void *arg)
|
||||
power_timer_cb(__rte_unused struct rte_timer *tim,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
uint64_t hz;
|
||||
float sleep_time_ratio;
|
||||
|
@ -927,7 +927,7 @@ static int event_register(struct lcore_conf *qconf)
|
|||
}
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_telemetry_loop(__attribute__((unused)) void *dummy)
|
||||
main_telemetry_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned int lcore_id;
|
||||
|
@ -1047,7 +1047,7 @@ main_telemetry_loop(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_empty_poll_loop(__attribute__((unused)) void *dummy)
|
||||
main_empty_poll_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned int lcore_id;
|
||||
|
@ -1151,7 +1151,7 @@ main_empty_poll_loop(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
/* main processing loop */
|
||||
static int
|
||||
main_loop(__attribute__((unused)) void *dummy)
|
||||
main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
@ -2079,8 +2079,8 @@ init_power_library(void)
|
|||
return ret;
|
||||
}
|
||||
static void
|
||||
update_telemetry(__attribute__((unused)) struct rte_timer *tim,
|
||||
__attribute__((unused)) void *arg)
|
||||
update_telemetry(__rte_unused struct rte_timer *tim,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
unsigned int lcore_id = rte_lcore_id();
|
||||
struct lcore_conf *qconf;
|
||||
|
|
|
@ -202,28 +202,28 @@ lpm_cb_parse_ptype(uint16_t port, uint16_t queue, struct rte_mbuf *pkts[],
|
|||
uint16_t nb_pkts, uint16_t max_pkts, void *user_param);
|
||||
|
||||
int
|
||||
em_main_loop(__attribute__((unused)) void *dummy);
|
||||
em_main_loop(__rte_unused void *dummy);
|
||||
|
||||
int
|
||||
lpm_main_loop(__attribute__((unused)) void *dummy);
|
||||
lpm_main_loop(__rte_unused void *dummy);
|
||||
|
||||
int
|
||||
lpm_event_main_loop_tx_d(__attribute__((unused)) void *dummy);
|
||||
lpm_event_main_loop_tx_d(__rte_unused void *dummy);
|
||||
int
|
||||
lpm_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy);
|
||||
lpm_event_main_loop_tx_d_burst(__rte_unused void *dummy);
|
||||
int
|
||||
lpm_event_main_loop_tx_q(__attribute__((unused)) void *dummy);
|
||||
lpm_event_main_loop_tx_q(__rte_unused void *dummy);
|
||||
int
|
||||
lpm_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy);
|
||||
lpm_event_main_loop_tx_q_burst(__rte_unused void *dummy);
|
||||
|
||||
int
|
||||
em_event_main_loop_tx_d(__attribute__((unused)) void *dummy);
|
||||
em_event_main_loop_tx_d(__rte_unused void *dummy);
|
||||
int
|
||||
em_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy);
|
||||
em_event_main_loop_tx_d_burst(__rte_unused void *dummy);
|
||||
int
|
||||
em_event_main_loop_tx_q(__attribute__((unused)) void *dummy);
|
||||
em_event_main_loop_tx_q(__rte_unused void *dummy);
|
||||
int
|
||||
em_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy);
|
||||
em_event_main_loop_tx_q_burst(__rte_unused void *dummy);
|
||||
|
||||
|
||||
/* Return ipv4/ipv6 fwd lookup struct for LPM or EM. */
|
||||
|
|
|
@ -618,7 +618,7 @@ em_cb_parse_ptype(uint16_t port __rte_unused, uint16_t queue __rte_unused,
|
|||
|
||||
/* main processing loop */
|
||||
int
|
||||
em_main_loop(__attribute__((unused)) void *dummy)
|
||||
em_main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
@ -835,7 +835,7 @@ em_event_loop(struct l3fwd_event_resources *evt_rsrc,
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
em_event_main_loop_tx_d(__attribute__((unused)) void *dummy)
|
||||
em_event_main_loop_tx_d(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -845,7 +845,7 @@ em_event_main_loop_tx_d(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
em_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy)
|
||||
em_event_main_loop_tx_d_burst(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -855,7 +855,7 @@ em_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
em_event_main_loop_tx_q(__attribute__((unused)) void *dummy)
|
||||
em_event_main_loop_tx_q(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -865,7 +865,7 @@ em_event_main_loop_tx_q(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
em_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy)
|
||||
em_event_main_loop_tx_q_burst(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
|
|
@ -173,7 +173,7 @@ lpm_get_dst_port_with_ipv4(const struct lcore_conf *qconf, struct rte_mbuf *pkt,
|
|||
|
||||
/* main processing loop */
|
||||
int
|
||||
lpm_main_loop(__attribute__((unused)) void *dummy)
|
||||
lpm_main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
|
||||
unsigned lcore_id;
|
||||
|
@ -417,7 +417,7 @@ lpm_event_loop(struct l3fwd_event_resources *evt_rsrc,
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
lpm_event_main_loop_tx_d(__attribute__((unused)) void *dummy)
|
||||
lpm_event_main_loop_tx_d(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -427,7 +427,7 @@ lpm_event_main_loop_tx_d(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
lpm_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy)
|
||||
lpm_event_main_loop_tx_d_burst(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -437,7 +437,7 @@ lpm_event_main_loop_tx_d_burst(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
lpm_event_main_loop_tx_q(__attribute__((unused)) void *dummy)
|
||||
lpm_event_main_loop_tx_q(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
@ -447,7 +447,7 @@ lpm_event_main_loop_tx_q(__attribute__((unused)) void *dummy)
|
|||
}
|
||||
|
||||
int __rte_noinline
|
||||
lpm_event_main_loop_tx_q_burst(__attribute__((unused)) void *dummy)
|
||||
lpm_event_main_loop_tx_q_burst(__rte_unused void *dummy)
|
||||
{
|
||||
struct l3fwd_event_resources *evt_rsrc =
|
||||
l3fwd_get_eventdev_rsrc();
|
||||
|
|
|
@ -286,7 +286,7 @@ lsi_main_loop(void)
|
|||
}
|
||||
|
||||
static int
|
||||
lsi_launch_one_lcore(__attribute__((unused)) void *dummy)
|
||||
lsi_launch_one_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
lsi_main_loop();
|
||||
return 0;
|
||||
|
|
|
@ -152,7 +152,7 @@ do_stats_display(void)
|
|||
* repeatedly sleeps.
|
||||
*/
|
||||
static int
|
||||
sleep_lcore(__attribute__((unused)) void *dummy)
|
||||
sleep_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
/* Used to pick a display thread - static, so zero-initialised */
|
||||
static rte_atomic32_t display_stats;
|
||||
|
|
|
@ -16,9 +16,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl,
|
||||
"commands:\n"
|
||||
|
@ -46,9 +46,9 @@ struct cmd_quit_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_quit(cl);
|
||||
}
|
||||
|
@ -72,9 +72,9 @@ struct cmd_list_result {
|
|||
cmdline_fixed_string_t list;
|
||||
};
|
||||
|
||||
static void cmd_list_parsed(__attribute__((unused)) void *parsed_result,
|
||||
static void cmd_list_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
uint16_t port_id;
|
||||
char dev_name[RTE_DEV_NAME_MAX_LEN];
|
||||
|
@ -112,7 +112,7 @@ struct cmd_dev_attach_result {
|
|||
|
||||
static void cmd_dev_attach_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_dev_attach_result *res = parsed_result;
|
||||
struct rte_devargs da;
|
||||
|
@ -159,7 +159,7 @@ struct cmd_dev_detach_result {
|
|||
|
||||
static void cmd_dev_detach_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_dev_detach_result *res = parsed_result;
|
||||
struct rte_devargs da;
|
||||
|
|
|
@ -53,7 +53,7 @@ struct rte_mempool *message_pool;
|
|||
volatile int quit = 0;
|
||||
|
||||
static int
|
||||
lcore_recv(__attribute__((unused)) void *arg)
|
||||
lcore_recv(__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
|
||||
|
|
|
@ -40,8 +40,8 @@ struct cmd_send_result {
|
|||
};
|
||||
|
||||
static void cmd_send_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
void *msg = NULL;
|
||||
struct cmd_send_result *res = parsed_result;
|
||||
|
@ -77,9 +77,9 @@ struct cmd_quit_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
quit = 1;
|
||||
cmdline_quit(cl);
|
||||
|
@ -104,9 +104,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(cl, "Simple demo example of multi-process in RTE\n\n"
|
||||
"This is a readline-like interface that can be used to\n"
|
||||
|
|
|
@ -109,9 +109,9 @@ struct cmd_help_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_help_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_help_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(
|
||||
cl,
|
||||
|
@ -154,9 +154,9 @@ struct cmd_quit_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_quit_parsed(__attribute__((unused)) void *parsed_result,
|
||||
cmd_quit_parsed(__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct ntb_fwd_lcore_conf *conf;
|
||||
uint32_t lcore_id;
|
||||
|
@ -209,8 +209,8 @@ struct cmd_sendfile_result {
|
|||
|
||||
static void
|
||||
cmd_sendfile_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_sendfile_result *res = parsed_result;
|
||||
struct rte_rawdev_buf *pkts_send[NTB_MAX_PKT_BURST];
|
||||
|
@ -793,9 +793,9 @@ struct cmd_start_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_start_parsed(__attribute__((unused)) void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
cmd_start_parsed(__rte_unused void *parsed_result,
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
start_pkt_fwd();
|
||||
}
|
||||
|
@ -819,9 +819,9 @@ struct cmd_stop_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_stop_parsed(__attribute__((unused)) void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
cmd_stop_parsed(__rte_unused void *parsed_result,
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct ntb_fwd_lcore_conf *conf;
|
||||
uint32_t lcore_id;
|
||||
|
@ -983,8 +983,8 @@ struct cmd_stats_result {
|
|||
|
||||
static void
|
||||
cmd_stats_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_stats_result *res = parsed_result;
|
||||
if (!strcmp(res->show, "clear"))
|
||||
|
@ -1021,9 +1021,9 @@ struct cmd_set_fwd_mode_result {
|
|||
};
|
||||
|
||||
static void
|
||||
cmd_set_fwd_mode_parsed(__attribute__((unused)) void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
cmd_set_fwd_mode_parsed(__rte_unused void *parsed_result,
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_fwd_mode_result *res = parsed_result;
|
||||
int i;
|
||||
|
|
|
@ -869,7 +869,7 @@ get_ipv6_dst_port(void *ipv6_hdr, uint16_t portid,
|
|||
#endif
|
||||
|
||||
static inline void l3fwd_simple_forward(struct rte_mbuf *m, uint16_t portid)
|
||||
__attribute__((unused));
|
||||
__rte_unused;
|
||||
|
||||
#if ((APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) && \
|
||||
(ENABLE_MULTI_BUFFER_OPTIMIZE == 1))
|
||||
|
@ -1120,7 +1120,7 @@ simple_ipv6_fwd_8pkts(struct rte_mbuf *m[8], uint16_t portid)
|
|||
struct rte_ether_hdr *eth_hdr[8];
|
||||
union ipv6_5tuple_host key[8];
|
||||
|
||||
__attribute__((unused)) struct rte_ipv6_hdr *ipv6_hdr[8];
|
||||
__rte_unused struct rte_ipv6_hdr *ipv6_hdr[8];
|
||||
|
||||
eth_hdr[0] = rte_pktmbuf_mtod(m[0], struct rte_ether_hdr *);
|
||||
eth_hdr[1] = rte_pktmbuf_mtod(m[1], struct rte_ether_hdr *);
|
||||
|
|
|
@ -118,7 +118,7 @@ void *helloworld_pthread(void *arg)
|
|||
*/
|
||||
__thread pthread_t tid[HELLOW_WORLD_MAX_LTHREADS];
|
||||
|
||||
static void *initial_lthread(void *args __attribute__((unused)))
|
||||
static void *initial_lthread(void *args __rte_unused)
|
||||
{
|
||||
int lcore = (int) rte_lcore_id();
|
||||
/*
|
||||
|
@ -204,7 +204,7 @@ static void *initial_lthread(void *args __attribute__((unused)))
|
|||
* in the core mask
|
||||
*/
|
||||
static int
|
||||
lthread_scheduler(void *args __attribute__((unused)))
|
||||
lthread_scheduler(void *args __rte_unused)
|
||||
{
|
||||
/* create initial thread */
|
||||
struct lthread *lt;
|
||||
|
|
|
@ -167,7 +167,7 @@ app_pkt_handle(struct rte_mbuf *pkt, uint64_t time)
|
|||
|
||||
|
||||
static __attribute__((noreturn)) int
|
||||
main_loop(__attribute__((unused)) void *dummy)
|
||||
main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
uint64_t current_time, last_time = rte_rdtsc();
|
||||
uint32_t lcore_id = rte_lcore_id();
|
||||
|
|
|
@ -21,9 +21,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(
|
||||
cl,
|
||||
|
@ -64,9 +64,9 @@ struct cmd_quit_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_quit(cl);
|
||||
}
|
||||
|
@ -92,8 +92,8 @@ struct cmd_setqavg_result {
|
|||
};
|
||||
|
||||
static void cmd_setqavg_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_setqavg_result *res = parsed_result;
|
||||
|
||||
|
@ -133,9 +133,9 @@ struct cmd_appstats_result {
|
|||
cmdline_fixed_string_t app_string;
|
||||
};
|
||||
|
||||
static void cmd_appstats_parsed(__attribute__((unused)) void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
static void cmd_appstats_parsed(__rte_unused void *parsed_result,
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
app_stat();
|
||||
}
|
||||
|
@ -168,8 +168,8 @@ struct cmd_subportstats_result {
|
|||
};
|
||||
|
||||
static void cmd_subportstats_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_subportstats_result *res = parsed_result;
|
||||
|
||||
|
@ -219,8 +219,8 @@ struct cmd_pipestats_result {
|
|||
};
|
||||
|
||||
static void cmd_pipestats_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_pipestats_result *res = parsed_result;
|
||||
|
||||
|
@ -282,8 +282,8 @@ struct cmd_avg_q_result {
|
|||
};
|
||||
|
||||
static void cmd_avg_q_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_avg_q_result *res = parsed_result;
|
||||
|
||||
|
@ -359,8 +359,8 @@ struct cmd_avg_tcpipe_result {
|
|||
};
|
||||
|
||||
static void cmd_avg_tcpipe_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_avg_tcpipe_result *res = parsed_result;
|
||||
|
||||
|
@ -426,8 +426,8 @@ struct cmd_avg_pipe_result {
|
|||
};
|
||||
|
||||
static void cmd_avg_pipe_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_avg_pipe_result *res = parsed_result;
|
||||
|
||||
|
@ -485,8 +485,8 @@ struct cmd_avg_tcsubport_result {
|
|||
};
|
||||
|
||||
static void cmd_avg_tcsubport_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_avg_tcsubport_result *res = parsed_result;
|
||||
|
||||
|
@ -542,8 +542,8 @@ struct cmd_avg_subport_result {
|
|||
};
|
||||
|
||||
static void cmd_avg_subport_parsed(void *parsed_result,
|
||||
__attribute__((unused)) struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused struct cmdline *cl,
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_avg_subport_result *res = parsed_result;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ uint32_t qavg_ntimes = APP_QAVG_NTIMES;
|
|||
|
||||
/* main processing loop */
|
||||
static int
|
||||
app_main_loop(__attribute__((unused))void *dummy)
|
||||
app_main_loop(__rte_unused void *dummy)
|
||||
{
|
||||
uint32_t lcore_id;
|
||||
uint32_t i, mode;
|
||||
|
|
|
@ -174,7 +174,7 @@ do_stats_display(void)
|
|||
* repeatedly sleeps.
|
||||
*/
|
||||
static int
|
||||
sleep_lcore(__attribute__((unused)) void *dummy)
|
||||
sleep_lcore(__rte_unused void *dummy)
|
||||
{
|
||||
/* Used to pick a display thread - static, so zero-initialised */
|
||||
static rte_atomic32_t display_stats;
|
||||
|
|
|
@ -25,8 +25,8 @@ static struct rte_timer timer1;
|
|||
|
||||
/* timer0 callback */
|
||||
static void
|
||||
timer0_cb(__attribute__((unused)) struct rte_timer *tim,
|
||||
__attribute__((unused)) void *arg)
|
||||
timer0_cb(__rte_unused struct rte_timer *tim,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
static unsigned counter = 0;
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
|
@ -41,8 +41,8 @@ timer0_cb(__attribute__((unused)) struct rte_timer *tim,
|
|||
|
||||
/* timer1 callback */
|
||||
static void
|
||||
timer1_cb(__attribute__((unused)) struct rte_timer *tim,
|
||||
__attribute__((unused)) void *arg)
|
||||
timer1_cb(__rte_unused struct rte_timer *tim,
|
||||
__rte_unused void *arg)
|
||||
{
|
||||
unsigned lcore_id = rte_lcore_id();
|
||||
uint64_t hz;
|
||||
|
@ -56,7 +56,7 @@ timer1_cb(__attribute__((unused)) struct rte_timer *tim,
|
|||
}
|
||||
|
||||
static __attribute__((noreturn)) int
|
||||
lcore_mainloop(__attribute__((unused)) void *arg)
|
||||
lcore_mainloop(__rte_unused void *arg)
|
||||
{
|
||||
uint64_t prev_tsc = 0, cur_tsc, diff_tsc;
|
||||
unsigned lcore_id;
|
||||
|
|
|
@ -228,9 +228,9 @@ struct cmd_help_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
cmdline_printf(
|
||||
cl,
|
||||
|
@ -263,9 +263,9 @@ struct cmd_list_result {
|
|||
};
|
||||
|
||||
static void cmd_list_vdpa_devices_parsed(
|
||||
__attribute__((unused)) void *parsed_result,
|
||||
__rte_unused void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
int did;
|
||||
uint32_t queue_num;
|
||||
|
@ -320,7 +320,7 @@ struct cmd_create_result {
|
|||
|
||||
static void cmd_create_vdpa_port_parsed(void *parsed_result,
|
||||
struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
int did;
|
||||
struct cmd_create_result *res = parsed_result;
|
||||
|
@ -368,9 +368,9 @@ struct cmd_quit_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
vdpa_sample_quit();
|
||||
cmdline_quit(cl);
|
||||
|
|
|
@ -17,7 +17,7 @@ int set_policy_mac(int port, int idx);
|
|||
|
||||
int set_policy_defaults(struct channel_packet *pkt);
|
||||
|
||||
void run_cli(__attribute__((unused)) void *arg);
|
||||
void run_cli(__rte_unused void *arg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -302,7 +302,7 @@ check_all_ports_link_status(uint32_t port_mask)
|
|||
}
|
||||
}
|
||||
static int
|
||||
run_monitor(__attribute__((unused)) void *arg)
|
||||
run_monitor(__rte_unused void *arg)
|
||||
{
|
||||
if (channel_monitor_init() < 0) {
|
||||
printf("Unable to initialize channel monitor\n");
|
||||
|
@ -313,7 +313,7 @@ run_monitor(__attribute__((unused)) void *arg)
|
|||
}
|
||||
|
||||
static int
|
||||
run_core_monitor(__attribute__((unused)) void *arg)
|
||||
run_core_monitor(__rte_unused void *arg)
|
||||
{
|
||||
if (branch_monitor_init() < 0) {
|
||||
printf("Unable to initialize core monitor\n");
|
||||
|
|
|
@ -8,20 +8,20 @@ void branch_monitor_exit(void)
|
|||
{
|
||||
}
|
||||
|
||||
__attribute__((unused)) static float
|
||||
apply_policy(__attribute__((unused)) int core)
|
||||
__rte_unused static float
|
||||
apply_policy(__rte_unused int core)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
int
|
||||
add_core_to_monitor(__attribute__((unused)) int core)
|
||||
add_core_to_monitor(__rte_unused int core)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
remove_core_from_monitor(__attribute__((unused)) int core)
|
||||
remove_core_from_monitor(__rte_unused int core)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -27,9 +27,9 @@ struct cmd_quit_result {
|
|||
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,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
channel_monitor_exit();
|
||||
channel_manager_exit();
|
||||
|
@ -58,7 +58,7 @@ struct cmd_show_vm_result {
|
|||
|
||||
static void
|
||||
cmd_show_vm_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_vm_result *res = parsed_result;
|
||||
struct vm_info info;
|
||||
|
@ -135,7 +135,7 @@ struct cmd_set_pcpu_result {
|
|||
|
||||
static void
|
||||
cmd_set_pcpu_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_set_pcpu_result *res = parsed_result;
|
||||
|
||||
|
@ -182,7 +182,7 @@ struct cmd_vm_op_result {
|
|||
|
||||
static void
|
||||
cmd_vm_op_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_vm_op_result *res = parsed_result;
|
||||
|
||||
|
@ -221,7 +221,7 @@ struct cmd_channels_op_result {
|
|||
};
|
||||
static void
|
||||
cmd_channels_op_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
unsigned num_channels = 0, channel_num, i;
|
||||
int channels_added;
|
||||
|
@ -349,7 +349,7 @@ struct cmd_channels_status_op_result {
|
|||
|
||||
static void
|
||||
cmd_channels_status_op_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
unsigned num_channels = 0, channel_num;
|
||||
int changed;
|
||||
|
@ -435,7 +435,7 @@ struct cmd_show_cpu_freq_result {
|
|||
|
||||
static void
|
||||
cmd_show_cpu_freq_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
struct cmd_show_cpu_freq_result *res = parsed_result;
|
||||
uint32_t curr_freq = power_manager_get_current_frequency(res->core_num);
|
||||
|
@ -476,7 +476,7 @@ struct cmd_set_cpu_freq_result {
|
|||
|
||||
static void
|
||||
cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl,
|
||||
__attribute__((unused)) void *data)
|
||||
__rte_unused void *data)
|
||||
{
|
||||
int ret = -1;
|
||||
struct cmd_set_cpu_freq_result *res = parsed_result;
|
||||
|
@ -536,7 +536,7 @@ cmdline_parse_ctx_t main_ctx[] = {
|
|||
};
|
||||
|
||||
void
|
||||
run_cli(__attribute__((unused)) void *arg)
|
||||
run_cli(__rte_unused void *arg)
|
||||
{
|
||||
struct cmdline *cl;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void run_cli(__attribute__((unused)) void *arg);
|
||||
void run_cli(void *arg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -455,7 +455,7 @@ sighup_handler(int signum)
|
|||
* and writing to OUTPUT_PORT
|
||||
*/
|
||||
static int
|
||||
lcore_main(__attribute__((__unused__)) void *dummy)
|
||||
lcore_main(__rte_unused void *dummy)
|
||||
{
|
||||
const uint16_t lcore_id = (uint16_t)rte_lcore_id();
|
||||
const uint16_t num_cores = (uint16_t)rte_lcore_count();
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
static void
|
||||
cmdline_valid_buffer(struct rdline *rdl, const char *buf,
|
||||
__attribute__((unused)) unsigned int size)
|
||||
__rte_unused unsigned int size)
|
||||
{
|
||||
struct cmdline *cl = rdl->opaque;
|
||||
int ret;
|
||||
|
|
|
@ -27,7 +27,7 @@ struct cmdline_token_ops cmdline_token_etheraddr_ops = {
|
|||
};
|
||||
|
||||
int
|
||||
cmdline_parse_etheraddr(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
||||
cmdline_parse_etheraddr(__rte_unused cmdline_parse_token_hdr_t *tk,
|
||||
const char *buf, void *res, unsigned ressize)
|
||||
{
|
||||
unsigned int token_len = 0;
|
||||
|
@ -58,7 +58,7 @@ cmdline_parse_etheraddr(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
|||
}
|
||||
|
||||
int
|
||||
cmdline_get_help_etheraddr(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
||||
cmdline_get_help_etheraddr(__rte_unused cmdline_parse_token_hdr_t *tk,
|
||||
char *dstbuf, unsigned int size)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
@ -72,7 +72,7 @@ parse_ports(cmdline_portlist_t *pl, const char *str)
|
|||
}
|
||||
|
||||
int
|
||||
cmdline_parse_portlist(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
||||
cmdline_parse_portlist(__rte_unused cmdline_parse_token_hdr_t *tk,
|
||||
const char *buf, void *res, unsigned ressize)
|
||||
{
|
||||
unsigned int token_len = 0;
|
||||
|
@ -108,7 +108,7 @@ cmdline_parse_portlist(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
|||
}
|
||||
|
||||
int
|
||||
cmdline_get_help_portlist(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
|
||||
cmdline_get_help_portlist(__rte_unused cmdline_parse_token_hdr_t *tk,
|
||||
char *dstbuf, unsigned int size)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
@ -665,7 +665,7 @@ eal_check_mem_on_local_socket(void)
|
|||
|
||||
|
||||
static int
|
||||
sync_func(__attribute__((unused)) void *arg)
|
||||
sync_func(__rte_unused void *arg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ void eal_thread_init_master(unsigned lcore_id)
|
|||
|
||||
/* main loop of threads */
|
||||
__attribute__((noreturn)) void *
|
||||
eal_thread_loop(__attribute__((unused)) void *arg)
|
||||
eal_thread_loop(__rte_unused void *arg)
|
||||
{
|
||||
char c;
|
||||
int n, ret;
|
||||
|
|
|
@ -717,7 +717,7 @@ rte_log2_u64(uint64_t v)
|
|||
#ifndef container_of
|
||||
#define container_of(ptr, type, member) __extension__ ({ \
|
||||
const typeof(((type *)0)->member) *_ptr = (ptr); \
|
||||
__attribute__((unused)) type *_target_ptr = \
|
||||
__rte_unused type *_target_ptr = \
|
||||
(type *)(ptr); \
|
||||
(type *)(((uintptr_t)_ptr) - offsetof(type, member)); \
|
||||
})
|
||||
|
|
|
@ -893,7 +893,7 @@ eal_check_mem_on_local_socket(void)
|
|||
}
|
||||
|
||||
static int
|
||||
sync_func(__attribute__((unused)) void *arg)
|
||||
sync_func(__rte_unused void *arg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* default log function
|
||||
*/
|
||||
static ssize_t
|
||||
console_log_write(__attribute__((unused)) void *c, const char *buf, size_t size)
|
||||
console_log_write(__rte_unused void *c, const char *buf, size_t size)
|
||||
{
|
||||
ssize_t ret;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue