[lng-odp] [PATCH] validation:classification: Add fix for classification tests

2015-09-18 Thread ion.grigore
From: Grigore Ion odph_ipv4_csum_update should be used to update the checksum inside a pkt, as it is used in all the other examples and tests different from classification. Thus the prototype of the function should return void, because the intention was to update a value not to return something.

[lng-odp] [PATCH] helper : Fix UDP checksum computation

2015-09-21 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianess. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCH] validation:pktio : Fix UDP checksum computation

2015-09-21 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianess. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- test/validation/pktio/pktio.c |2 +- 1 files changed, 1 insertions(+), 1 del

[lng-odp] [PATCH] example:generator : Fix UDP checksum computation

2015-09-21 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianess. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- example/generator/odp_generator.c |2 +- 1 files changed, 1 insertions(+), 1

[lng-odp] [PATCH] example:generator : Fix data race condition

2015-09-22 Thread ion.grigore
From: Grigore Ion The counters.seq counter is used to check if the configured number of packets was processed. There is a race condition between the counter incrementation time and its value testing time. If code is running on multiple CPUs it is possible the application send more packets than ex

[lng-odp] [PATCH] example:generator : Fix data race condition

2015-10-01 Thread ion.grigore
From: Grigore Ion The counters.seq counter is used to check if the configured number of packets was processed. There is a race condition between the counter incrementation time and its value testing time. If code is running on multiple CPUs it is possible the application send more packets than ex

[lng-odp] [PATCH] helper : Fix UDP checksum computation

2015-10-01 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCH] helper : Fix UDP checksum computation

2015-10-01 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv1] helper : Fix UDP checksum computation

2015-10-02 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv1] example:generator : Fix data race condition

2015-10-02 Thread ion.grigore
From: Grigore Ion The counters.seq counter is used to check if the configured number of packets was processed. There is a race condition between the counter incrementation time and its value testing time. If code is running on multiple CPUs it is possible the application send more packets than ex

[lng-odp] [PATCHv1] validation:pktio : Fix UDP checksum computation

2015-10-02 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- v1: - Add PATCH version information (Maxim Uvarov) - Check patch with checkpat

[lng-odp] [PATCHv2 1/2] example:generator : Fix data race condition

2015-10-02 Thread ion.grigore
From: Grigore Ion The counters.seq counter is used to check if the configured number of packets was processed. There is a race condition between the counter incrementation time and its value testing time. If code is running on multiple CPUs it is possible the application send more packets than ex

[lng-odp] [PATCHv2 2/2] example:generator : Fix UDP checksum computation

2015-10-02 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- v2: - Add PATCH version information (Maxim Uvarov) - Check patch with checkpat

[lng-odp] [PATCHv3] example:generator : Fix data race condition

2015-10-22 Thread ion.grigore
From: Grigore Ion The counters.seq counter is used to check if the configured number of packets was processed. There is a race condition between the counter incrementation time and its value testing time. If code is running on multiple CPUs it is possible the application send more packets than ex

[lng-odp] [PATCH v1] example:generator : Fix statistics print

2015-10-22 Thread ion.grigore
From: Grigore Ion The statistics are displayed at a fixed time interval. If the configured number of packets is processed before this interval expires, no statistic is shown. If many packets are processed it is very possible the last statistic is not displayed. Signed-off-by: Grigore Ion --- e

[lng-odp] [PATCHv1] example:generator : Fix statistics print

2015-10-22 Thread ion.grigore
From: Grigore Ion The statistics are displayed at a fixed time interval. If the configured number of packets is processed before this interval expires, no statistic is shown. If many packets are processed it is very possible the last statistic is not displayed. Signed-off-by: Grigore Ion --- e

[lng-odp] [PATCHv2] helper : Fix UDP checksum computation

2015-10-22 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv1] validation:classification: Add fix for classification tests

2015-10-22 Thread ion.grigore
From: Grigore Ion odph_ipv4_csum_update should be used to update the checksum inside a pkt, as it is used in all the other examples and tests different from classification. Thus the prototype of the function should return void, because the intention was to update a value not to return something.

[lng-odp] [PATCHv2] validation:pktio : Fix UDP checksum computation

2015-10-22 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- v2: - patch updated to the last master (Maxim Uvarov) v1: - Add PATCH version inf

[lng-odp] [PATCHv1] helper:test: Fix UDP checksum computation

2015-12-07 Thread ion.grigore
From: Grigore Ion The UDP checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. Signed-off-by: Grigore Ion --- v1: Fix UDP checksum computation helper/test/odp_chksum.c | 4 ++-- 1 file chan

[lng-odp] [PATCHv3] helper : Fix UDP checksum computation

2015-12-07 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv4] helper : Fix UDP checksum computation

2015-12-08 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv5] helper : Fix UDP checksum computation

2015-12-09 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv6] helper : Fix UDP checksum computation

2015-12-10 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv7] helper : Fix UDP checksum computation

2015-12-14 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum is computed in the CPU endianness. The returned result must be converted to the BE ordering when it is used to update the UDP checksum in a packet. - checksum computation for packets havi

[lng-odp] [PATCHv8] helper : Fix UDP checksum computation

2016-01-04 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum computation for packets having the UDP length not a multiple of 2 - checksum computation in the test and the example applications Signed-off-by: Grigore Ion --- v8: - Checksum in BE end

[lng-odp] [PATCHv9] helper : Fix UDP checksum computation

2016-01-11 Thread ion.grigore
From: Grigore Ion This patch fixes the following problems: - checksum computation for LE platforms - checksum computation for packets having the UDP length not a multiple of 2 - checksum computation in the test and the example applications Signed-off-by: Grigore Ion --- v9: - Fix comments (Ilya

[lng-odp] [PATCH] example:ipsec: Tunnel mode fixes

2016-01-12 Thread ion.grigore
From: Grigore Ion This patch fixes the following issues: 1. ETYPE field in the ETH header is not updated using the BE byte order (PKT_STATE_IPSEC_IN_FINISH status). 2. IP addresses, from the packet, are not converted to the CPU endianness, when the inbound policy is checked (PKT_STATE_IPSEC_IN_FI