[dpdk-dev] [PATCH v2] app/testpmd: fix IP checksum calculation

2020-12-05 Thread George Prekas
Strict-aliasing rules are violated by cast to uint16_t* in flowgen.c and the calculated IP checksum is wrong on GCC 9 and GCC 10. Signed-off-by: George Prekas --- v2: * Instead of a compiler barrier, use a compiler flag. --- app/test-pmd/meson.build | 1 + 1 file changed, 1 insertion(+) diff

Re: [dpdk-dev] [PATCH] app/testpmd: fix IP checksum calculation

2020-12-04 Thread George Prekas
On 12/4/2020 2:59 AM, Ferruh Yigit wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On 12/3/2020 1:59 PM, George Prekas wrote: Insert a compiler barrier to make

[dpdk-dev] [PATCH] app/testpmd: fix IP checksum calculation

2020-12-03 Thread George Prekas
Insert a compiler barrier to make sure that the IP checksum calculation happens after setting all the fields of the IP header. Signed-off-by: George Prekas --- app/test-pmd/flowgen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c index

Re: [dpdk-dev] [PATCH] app/testpmd: fix IP checksum calculation

2020-12-03 Thread George Prekas
On 12/3/2020 10:08 AM, Stephen Hemminger wrote: On Thu, 3 Dec 2020 07:59:54 -0600 George Prekas wrote: Insert a compiler barrier to make sure that the IP checksum calculation happens after setting all the fields of the IP header. Signed-off-by: George Prekas I don't think this is nece

Re: [dpdk-dev] [dpdk-users] IGB_UIO: PCI Resources Management

2017-01-20 Thread George Prekas
d uio_info.open, which only does pci_disable_device() and pci_enable_device(), but this prevent app receiving packets in its second run, independent from app terminated gracefully or not. Any idea why this is not working? btw, I can produce the problematic case, as George Prekas described in: ht

[dpdk-dev] Possible memory corruption due to incorrect DMA shutdown

2016-11-02 Thread George Prekas
here https://github.com/prekageo/allmemscan $ make $ sudo insmod allmem.ko $ sudo ./allmemscan 28 prekageo_was_here Optionally: $ sudo dd if=/dev/allmem bs=4K skip=PAGE count=1 | hexdump -C | less On 11/03/2016 19:41, George Prekas wrote: > Hi. I've been using DPDK for a research project > (h