rte_is_valid_assigned_ether_addr retrun true
if the given ethernet address is valid.
Signed-off-by: Li Han
---
drivers/net/iavf/iavf_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index c3aa4cd
when we run dpdk in docker, process pid may the same.
add rte_rdtsc() to ensure all the names used in rte_fbarray_init
are different.
Signed-off-by: Li Han
---
lib/librte_eal/linux/eal/eal_memalloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/librte_eal/linux
In rte_eal_config_reattach(),the secondary mmap may fail
due to the rte_mem_cfg_addr already be used by others.do
the change just as the rte_fbarray_init() do.if no
base_virtaddr,use the default 0x1.
v2/v3:
-fix code style issues
Signed-off-by: Li Han
---
lib/librte_eal/linux/eal/eal.c
In rte_eal_config_reattach(),the secondary mmap may fail
due to the rte_mem_cfg_addr already be used by others.do
the change just as the rte_fbarray_init() do.if no
base_virtaddr,use the default 0x1.
v2:
-fix code style issues
Signed-off-by: Li Han
---
lib/librte_eal/linux/eal/eal.c
In rte_eal_config_reattach(),the secondary mmap may fail
due to the rte_mem_cfg_addr already be used by others.do
the change just as the rte_fbarray_init() do.if no
base_virtaddr,use the default 0x1.
Signed-off-by: Li Han
---
lib/librte_eal/linux/eal/eal.c | 26
83ea17 ("app: replace dump_cfg by proc_info")
Signed-off-by: Li Han
---
v3:
*fix commit meassges issue
v2:
*fix typecast issue
---
app/proc-info/main.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index c20effa..6
parse_portmask return type is int,but global variable
"enabled_port_mask" type is uint32_t.so in proc_info_parse_args
function,when parse_portmask return -1,"enabled_port_mask" will
get a huge value and "if (enabled_port_mask == 0)" will never happen.
Signed-off-by:
in function i40e_nvmupd_validate_command, when "cmd->data_size < 1"
it'll return I40E_NVMUPD_INVALID,and in function "i40e_nvmupd_command"
when "upd_cmd == I40E_NVMUPD_STATUS",it check "!cmd->data_size" again,
but it's no need.
Signe
Signed-off-by: Li Han
---
drivers/net/i40e/base/i40e_nvm.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/drivers/net/i40e/base/i40e_nvm.c b/drivers/net/i40e/base/i40e_nvm.c
index c77dac0..5de22e4 100644
--- a/drivers/net/i40e/base/i40e_nvm.c
+++ b/drivers/net/i40e/base/i40e_nvm.c
parse_portmask return type is int,but global variable
"enabled_port_mask" type is uint32_t.so in proc_info_parse_args
function,when parse_portmask return -1,"enabled_port_mask" will
get a huge value and "if (enabled_port_mask == 0)" will never happen.
Signed-off-
in struct ip_frag_key,src_dst[] type is uint64_t.
but "val" which to store the calc restult ,type is uint32_t.
we may lost high 32 bit key. and function return value is int,
but it won't return < 0.
Signed-off-by: Li Han
---
lib/librte_ip_frag/ip_frag_common.h | 4 ++--
in ip_frag_process,some IP_FRAG_LOG content is wrong
Signed-off-by: Li Han
---
lib/librte_ip_frag/ip_frag_internal.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/librte_ip_frag/ip_frag_internal.c
b/lib/librte_ip_frag/ip_frag_internal.c
index 7397aa6..2560c77
in ip_frag_process,some IP_FRAG_LOG content is wrong
Signed-off-by: Li Han
---
lib/librte_ip_frag/ip_frag_internal.c | 10 +-
...40e-add-null-point-check-and-fix-mem-leak.patch | 150 +++
...1000-add-null-point-check-for-rte_zmalloc.patch | 65
...qat-add
in parse_ringnuma_config/parse_portnuma_config functions,port_id
should less than RTE_MAX_ETHPORTS,but port_id_is_invalid check
assumes that port_id may be 255.
Signed-off-by: Li Han
---
app/test-pmd/parameters.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/test
in parse_ringnuma_config/parse_portnuma_config functions,port_id
should less than RTE_MAX_ETHPORTS,but port_id_is_invalid check
assumes that port_id may be 255.
Signed-off-by: Li Han
---
app/test-pmd/parameters.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
mode change 100644
in parse_ringnuma_config/parse_portnuma_config functions,port_id
should less than RTE_MAX_ETHPORTS,but port_id_is_invalid check
assumes that port_id may be 255.
Signed-off-by: Li Han
---
app/test-pmd/parameters.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
mode change 100644
16 matches
Mail list logo