[dpdk-dev] [PATCH] net/iavf: fix default mac set fail issue

2020-08-24 Thread Li Han
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

[dpdk-dev] [PATCH] eal/linux: fix muti-secondary msl create issue

2019-11-19 Thread Li Han
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

[dpdk-dev] [PATCH v3] lib/librte_eal/linuxapp: fix runtime config mmap issue

2019-10-23 Thread Li Han
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

[dpdk-dev] [PATCH v2] lib/librte_eal/linuxapp: fix runtime config mmap issue

2019-10-23 Thread Li Han
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

[dpdk-dev] [PATCH] lib/librte_eal/linuxapp: fix runtime config mmap issue

2019-10-23 Thread Li Han
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

[dpdk-dev] [PATCH v3] app/proc-info: fix port mask parse issue

2018-11-06 Thread Li Han
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

[dpdk-dev] [PATCH v2] app/proc-info:fix port mask parse bug

2018-11-05 Thread Li Han
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:

[dpdk-dev] [PATCH] drivers/net/i40e/:remove i40e_nvmupd_command redundant code

2018-09-27 Thread Li Han
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

[dpdk-dev] [PATCH] drivers/net/i40e/:remove i40e_nvmupd_command redundant code in function i40e_nvmupd_validate_command, when "cmd->data_size < 1" it'll return I40E_NVMUPD_INVALID, and in function "i4

2018-09-27 Thread Li Han
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

[dpdk-dev] [PATCH] app/proc-info:fix port mask parse bug

2018-09-27 Thread Li Han
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-

[dpdk-dev] [PATCH] lib/librte_ip_frag:fix ip_frag_key_cmp bug

2018-08-01 Thread Li Han
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 ++--

[dpdk-dev] [PATCH] lib/librte_ip_frag:fix ip frag process log

2018-04-18 Thread Li Han
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

[dpdk-dev] [PATCH] lib/librte_ip_frag:fix ip frag process log

2018-04-18 Thread Li Han
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

[dpdk-dev] [PATCH] app/testpmd:fix invalid port id parameters

2017-08-21 Thread Li Han
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

[dpdk-dev] [PATCH] app/testpmd:fix invalid port id parameters

2017-08-21 Thread Li Han
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

[dpdk-dev] [PATCH] app/testpmd:fix invalid port id parameters

2017-08-21 Thread Li Han
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