[dpdk-dev] [PATCH 4/4] build: enable pmdinfogen for Windows

2020-12-12 Thread Dmitry Kozlyuk
Remove platform restriction when building drivers. Signed-off-by: Dmitry Kozlyuk --- drivers/meson.build | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/meson.build b/drivers/meson.build index f49d4f79b..1dfa8738f 100644 --- a/drivers/meso

[dpdk-dev] [PATCH 3/4] buildtools: support object file extraction for Windows

2020-12-12 Thread Dmitry Kozlyuk
clang archiver tool is llvm-ar on Windows and ar on other platforms. MinGW always uses ar. Replace shell script (Unix-only) that calls ar with a Python script (OS-independent) that calls an appropriate archiver tool selected at configuration time. Move the logic not to generate empty sources into p

[dpdk-dev] [PATCH 2/4] pmdinfogen: allow multiple input files

2020-12-12 Thread Dmitry Kozlyuk
Process any number of input object files and write a unified output. Signed-off-by: Dmitry Kozlyuk --- Used in the next patch, separated for clarity. buildtools/pmdinfogen.py | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/buildtools/pmdinfogen.py b/buildtool

[dpdk-dev] [PATCH 1/4] pmdinfogen: support COFF

2020-12-12 Thread Dmitry Kozlyuk
Common Object File Format (COFF) is used on Windows in place of ELF. Add COFF parser to pmdinfogen. Also add an argument to specify input file format, which is selected at configure time based on the target. Signed-off-by: Dmitry Kozlyuk --- buildtools/coff.py | 154 ++

[dpdk-dev] [PATCH 0/4] pmdinfogen: support Windows

2020-12-12 Thread Dmitry Kozlyuk
Based on Python version of pmdinfogen, deferred until 21.02: http://patchwork.dpdk.org/project/dpdk/list/?series=13153 There are a few Python libraries for PE/COFF, none of which suits the need, so a custom COFF parser is used. Advice is welcome, options considered: * py-coff (https://githu

[dpdk-dev] [PATCH v2] net/i40e: issue with ADD VLAN from Guest

2020-12-12 Thread Souvik Dey
Reset the configuration of vlan strip that would be change by the pf kernel driver when adding vlan from vf. Application cannot use rte_eth_dev_set_vlan_offload() to set the VLAN_STRIP, as this will only work for the first time when original and current config mismatch, but for all subsequent call

[dpdk-dev] [PATCH v2] net/i40e: issue with ADD VLAN from Guest

2020-12-12 Thread Souvik Dey
Reset the configuration of vlan strip that would be change by the pf kernel driver when adding vlan from vf. Application cannot use rte_eth_dev_set_vlan_offload() to set the VLAN_STRIP, as this will only work for the first time when original and current config mismatch, but for all subsequent call

Re: [dpdk-dev] [PATCH] net/i40e: issue with ADD VLAN from Guest

2020-12-12 Thread Dey, Souvik
Hi Guo, Thanks for the comments. I will upload a v2 of the patch. -- Regards, Souvik From: Guo, Jia Sent: Thursday, December 10, 2020 10:08 PM To: Dey, Souvik ; Xing, Beilei ; Zhang, Qi Z Cc: dev@dpdk.org Subject: RE: [PATCH] net/i40e: issue with ADD VLAN from Guest

[dpdk-dev] [PATCH v5] ip_frag: remove padding length of fragment

2020-12-12 Thread Yicai Lu
In some situations, we would get several ip fragments, which total data length is less than min_ip_len(64) and padding with zeros. We simulated intermediate fragments by modifying the MTU. To illustrate the problem, we simplify the packet format and ignore the impact of the packet header.In namespa

Re: [dpdk-dev] [PATCH v3] ip_frag: recalculate data length of fragment

2020-12-12 Thread luyicai
Hi, Thank you so much for your review! I absolutely agree with that, and I'll resubmit a patch as soon as possible. > -Original Message- > From: Ananyev, Konstantin [mailto:konstantin.anan...@intel.com] > Sent: Monday, December 7, 2020 8:25 PM > To: luyicai ; dev@dpdk.org > Cc: Zhoujingbi