[dpdk-dev] [PATCH] examples/l2fwd-crypto: fix verify with decrypt in chain

2016-10-12 Thread Piotr Azarewicz
ured packet is not decrypted, what is wrong. Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") Signed-off-by: Piotr Azarewicz --- examples/l2fwd-crypto/main.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/examples/l2f

[dpdk-dev] [PATCH v2] app/test: fix crypto mbuf pool size

2016-10-11 Thread Piotr Azarewicz
/test: add libcrypto") Signed-off-by: Piotr Azarewicz --- v2 change: - changed check if aad.len > MBUF_SIZE - added assertion check for rte_pktmbuf_alloc app/test/test_cryptodev.c | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --g

[dpdk-dev] [PATCH] app/test: fix crypto mbuf pool size

2016-10-07 Thread Piotr Azarewicz
/test: added tests for libcrypto PMD") Signed-off-by: Piotr Azarewicz --- app/test/test_cryptodev.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 2917454..914bb0b 100644 ---

[dpdk-dev] [PATCH 4/4] examples/l2fwd-crypto: updated example for libcrypto PMD

2016-08-26 Thread Piotr Azarewicz
From: Marcin Kerlin To verify real traffic l2fwd-crypto example can be used with this command: sudo ./build/l2fwd-crypto -c 0x3 -n 4 --vdev "cryptodev_libcrypto_pmd" --vdev "cryptodev_libcrypto_pmd" -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT --cipher_algo AES_CBC

[dpdk-dev] [PATCH 3/4] app/test: added tests for libcrypto PMD

2016-08-26 Thread Piotr Azarewicz
st can be used. Signed-off-by: Piotr Azarewicz Signed-off-by: Daniel Mrzyglod Signed-off-by: Marcin Kerlin --- app/test/Makefile |1 + app/test/test_cryptodev.c | 1245 ++- app/test/test_cryptodev.h | 24 + ap

[dpdk-dev] [PATCH 2/4] lib/cryptodev: added support to libcrypto PMD

2016-08-26 Thread Piotr Azarewicz
From: Marcin Kerlin This patch adds libcrypto poll mode driver support to librte_cryptodev library. Signed-off-by: Slawomir Mrozowicz --- lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h

[dpdk-dev] [PATCH 1/4] libcrypto_pmd: initial implementation of SW crypto device

2016-08-26 Thread Piotr Azarewicz
From: Marcin Kerlin This code provides the initial implementation of the libcrypto poll mode driver. All cryptography operations are using Openssl library crypto API. Each algorithm uses EVP_ interface from openssl API - which is recommended by Openssl maintainers.

[dpdk-dev] [PATCH 0/4] New crypto software based device

2016-08-26 Thread Piotr Azarewicz
ainers. For more information about how to use this driver, go to: doc/guides/cryptodevs/libcrypto.rst Slawomir Mrozowicz (2): libcrypto_pmd: initial implementation of SW crypto device lib/cryptodev: added support to libcrypto PMD Piotr Azarewicz (1) app/test: added tests for libcrypto PMD

[dpdk-dev] [PATCH v1 1/1] examples/bond: fix unchecked return value

2016-06-29 Thread Piotr Azarewicz
The example is calling rte_eal_wait_lcore without checking return value. Now it is fixed by checking the value and print proper message. Coverity issue: 37789 Coverity issue: 37790 Fixes: cc7e8ae84faa ("examples/bond: add example application for link bonding mode 6") Signed-off

[dpdk-dev] [PATCH v3 7/7] examples/ip_pipeline: update edge router usecase

2016-06-08 Thread Piotr Azarewicz
Update edge router usecase config files to use bulk commands. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- .../ip_pipeline/config/edge_router_downstream.cfg | 30 +++- .../ip_pipeline/config/edge_router_downstream.sh |7 ++-- .../ip_pipeline/config

[dpdk-dev] [PATCH v3 6/7] examples/ip_pipeline: modifies routing pipeline CLI

2016-06-08 Thread Piotr Azarewicz
Several routing commands are merged into two commands: route and arp - these two commands are handled by cli library. Rest of the commands are handled internaly by the pipeline code. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/l2fwd.cfg

[dpdk-dev] [PATCH v3 5/7] examples/ip_pipeline: modifies flow action pipeline CLI

2016-06-08 Thread Piotr Azarewicz
All commands merged into one: cmd_action_parsed. modified bulk command: action flow bulk File line format: flow meter 0 meter 1 meter 2 meter 3 policer 0policer 1 policer 2policer 3 port Signed-off-by: Marcin Kerlin Signed-off-by: Piotr Azarewicz Acked

[dpdk-dev] [PATCH v3 3/7] examples/ip_pipeline: modifies firewall pipeline CLI

2016-06-08 Thread Piotr Azarewicz
From: Daniel Mrzyglod Each command are merged into one: cmd_firewall_parsed. ADD command format is changed: p firewall add priority ipv4 port and bulk command was modified: 1. firewall add bulk File line format: priority ipv4 port

[dpdk-dev] [PATCH v3 2/7] examples/ip_pipeline: modifies common pipeline CLI

2016-06-08 Thread Piotr Azarewicz
From: Tomasz Kulasek All link commands are merged into one command: cmd_link_parsed. Improve run command to allow run periodically. Adding static keyword to a lot of token declarations. Signed-off-by: Tomasz Kulasek Signed-off-by: Michal Kobylinski Acked-by:

[dpdk-dev] [PATCH v3 1/7] examples/ip_pipeline: add helper functions for parsing string

2016-06-08 Thread Piotr Azarewicz
Add a couple of additional functions that will allow to parse many types of input parameters, i.e.: bool, 16, 32, 64 bits, hex, etc. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_parse.c | 257

[dpdk-dev] [PATCH v3 0/7] examples/ip_pipeline: CLI rework and improvements

2016-06-08 Thread Piotr Azarewicz
of code) - for bulk commands: simplified error checking - added additional config files Acked-by: Cristian Dumitrescu Daniel Mrzyglod (1): examples/ip_pipeline: modifies firewall pipeline CLI Piotr Azarewicz (4): examples/ip_pipeline: add helper functions for parsing string examples

[dpdk-dev] [PATCH v1 1/1] examples/l2fwd-crypto: improve random key generator

2016-05-25 Thread Piotr Azarewicz
Coverity issue: 120136 Signed-off-by: Piotr Azarewicz --- examples/l2fwd-crypto/main.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index d18c813..e1f0a1e 100644 --- a/examples/l2fwd-crypto/main.c

[dpdk-dev] [PATCH v1 1/1] examples/quota_watermark: fix low_watermark variable placement

2016-05-23 Thread Piotr Azarewicz
, sizeof (int) is extraneous and should be replaced with 1. Coverity issue: 30709 Fixes: 1d6c3ee3321a ("examples/quota_watermark: initial import") Signed-off-by: Piotr Azarewicz --- examples/quota_watermark/qw/init.c |2 +- examples/quota_watermark/qwctl/qwctl.c |2 +

[dpdk-dev] [PATCH v2 7/7] examples/ip_pipeline: update edge router usecase

2016-05-20 Thread Piotr Azarewicz
Update edge router usecase config files to use bulk commands. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- .../ip_pipeline/config/edge_router_downstream.cfg | 30 +++- .../ip_pipeline/config/edge_router_downstream.sh |7 ++-- .../ip_pipeline/config

[dpdk-dev] [PATCH v2 6/7] examples/ip_pipeline: modifies routing pipeline CLI

2016-05-20 Thread Piotr Azarewicz
Several routing commands are merged into two commands: route and arp - these two commands are handled by cli library. Rest of the commands are handled internaly by the pipeline code. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/l2fwd.cfg

[dpdk-dev] [PATCH v2 5/7] examples/ip_pipeline: modifies flow action pipeline CLI

2016-05-20 Thread Piotr Azarewicz
All commands merged into one: cmd_action_parsed. modified bulk command: action flow bulk File line format: flow meter 0 meter 1 meter 2 meter 3 policer 0policer 1 policer 2policer 3 port Signed-off-by: Marcin Kerlin Signed-off-by: Piotr Azarewicz Acked

[dpdk-dev] [PATCH v2 4/7] examples/ip_pipeline: modifies flow classifications pipeline CLI

2016-05-20 Thread Piotr Azarewicz
This patch modifies flow classifications pipeline command line interface. All commands are merged into one cmd_fc_parsed. Additionally a classification for ipv6, ipv4 and qinq can be added from configuration file. 1. flow add qinq bulk File line format: qinq port id File line example: qinq 1

[dpdk-dev] [PATCH v2 3/7] examples/ip_pipeline: modifies firewall pipeline CLI

2016-05-20 Thread Piotr Azarewicz
Each command are merged into one: cmd_firewall_parsed. ADD command format is changed: p firewall add priority ipv4 port and bulk command was modified: 1. firewall add bulk File line format: priority ipv4 port (protomask is a hex value) File line example: priority 0 ipv4

[dpdk-dev] [PATCH v2 2/7] examples/ip_pipeline: modifies common pipeline CLI

2016-05-20 Thread Piotr Azarewicz
All link commands are merged into one command: cmd_link_parsed. Improve run command to allow run periodically. Adding static keyword to a lot of token declarations. Signed-off-by: Tomasz Kulasek Signed-off-by: Michal Kobylinski Acked-by: Cristian Dumitrescu ---

[dpdk-dev] [PATCH v2 1/7] examples/ip_pipeline: add helper functions for parsing string

2016-05-20 Thread Piotr Azarewicz
Add a couple of additional functions that will allow to parse many types of input parameters, i.e.: bool, 16, 32, 64 bits, hex, etc. Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_parse.c | 257

[dpdk-dev] [PATCH v2 0/7] examples/ip_pipeline: CLI rework and improvements

2016-05-20 Thread Piotr Azarewicz
error checking - added additional config files Acked-by: Cristian Dumitrescu Piotr Azarewicz (7): examples/ip_pipeline: add helper functions for parsing string examples/ip_pipeline: modifies common pipeline CLI examples/ip_pipeline: modifies firewall pipeline CLI examples/ip_pipeline

[dpdk-dev] [PATCH v1 1/1] enic: fix local ol_flags variable

2016-05-10 Thread Piotr Azarewicz
(CONSTANT_EXPRESSION_RESULT) result_independent_of_operands: ol_flags & (18014398509481984ULL /* 1ULL << 54 */) is always 0 regardless of the values of its operands. This occurs as the logical operand of if. Coverity issue: 13218 Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: Piotr Azarewi

[dpdk-dev] [PATCH v3 1/1] cmdline: add any multi string mode to token string

2016-04-29 Thread Piotr Azarewicz
While parsing token string there may be several modes: - fixed single string - multi-choice single string - any single string This patch add one more mode - any multi string. Signed-off-by: Piotr Azarewicz Acked-by: Olivier Matz --- v3 changes: - add a comment above the definiton

[dpdk-dev] [PATCH v1 1/1] ixgbe: fix queue stop

2016-04-14 Thread Piotr Azarewicz
tor used (CONSTANT_EXPRESSION_RESULT) operator_confusion: rxdctl | 33554432 is always 1/true regardless of the values of its operand. This occurs as the logical second operand of '&&'. Coverity issue: 13215 Coverity issue: 13216 Fixes: 029fd06d40fa ("ixgbe: queue start and stop") Sign

[dpdk-dev] [PATCH v2 1/1] cmdline: add any multi string mode to token string

2016-04-05 Thread Piotr Azarewicz
While parsing token string there may be several modes: - fixed single string - multi-choice single string - any single string This patch add one more mode - any multi string. Signed-off-by: Piotr Azarewicz --- v2 changes: - add cmdline_multi_string_t type for the new mode app/test

[dpdk-dev] [PATCH v1 1/1] cmdline: add any multi string mode to token string

2016-04-01 Thread Piotr Azarewicz
While parsing token string there may be several modes: - fixed single string - multi-choice single string - any single string This patch add one more mode - any multi string. Signed-off-by: Piotr Azarewicz --- app/test/test_cmdline_string.c|9 --- lib/librte_cmdline

[dpdk-dev] [PATCH v4 1/1] examples/l3fwd: modify and modularize l3fwd code

2016-02-25 Thread Piotr Azarewicz
on f.e. > l3fwd -c 0x1 -n 1 -- -p 0x1 -E ... (EM) > l3fwd -c 0x1 -n 1 -- -p 0x1 -L ... (LPM) Options "E" and "L" are mutualy-exclusive. If none selected, "L" is default. Signed-off-by: Ravi Kerur Signed-off-by: Piotr Az

[dpdk-dev] [PATCH v3 1/1] examples/l3fwd: modify and modularize l3fwd code

2016-02-18 Thread Piotr Azarewicz
on f.e. > l3fwd -c 0x1 -n 1 -- -p 0x1 -E ... (EM) > l3fwd -c 0x1 -n 1 -- -p 0x1 -L ... (LPM) Options "E" and "L" are mutualy-exclusive. If none selected, "L" is default. Signed-off-by: Ravi Kerur Signed-off-by: Piotr Az

[dpdk-dev] [PATCH v2 1/1] examples/l3fwd: modify and modularize l3fwd code

2016-02-16 Thread Piotr Azarewicz
-L ... (LPM) Options "E" and "L" are mutualy-exclusive. If none selected, "L" is default. Signed-off-by: Ravi Kerur Signed-off-by: Piotr Azarewicz Tested-by: Tomasz Kulasek Acked-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- v2 changes: Rebase to

[dpdk-dev] [PATCH v2 1/1] example/ip_pipeline: fix memcpy issue

2015-12-09 Thread Piotr Azarewicz
("examples/ip_pipeline: add master pipeline") Fixes: eb32fe7c5574 ("examples/ip_pipeline: rework initialization parameters") Signed-off-by: Piotr Azarewicz --- v2 changes: - add the same fix in two other places examples/ip_pipeline/init.c|2 +-

[dpdk-dev] [PATCH v1 1/1] example/ip_pipeline: fix memcpy issue

2015-12-08 Thread Piotr Azarewicz
The cmds and thread_cmds both are the arrays of cmdline_parse_ctx_t. So the goal is to copy elements size of cmdline_parse_ctx_t not cmdline_parse_ctx_t*. Coverity issue: 120412 Fixes: b4aee0fb9c6d ("examples/ip_pipeline: reconfigure thread binding dynamically") Signed-off-by: Piotr

[dpdk-dev] [PATCH v5 1/1] ip_pipeline: added dynamic pipeline reconfiguration

2015-10-29 Thread Piotr Azarewicz
leaking memory - cleaning up v4 changes: - fix compilation with gcc 5.1 - add proper checking if thread exist v5 changes: - better approach about v4 changes Signed-off-by: Maciej Gajdzica Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH v4 1/1] ip_pipeline: added dynamic pipeline reconfiguration

2015-10-29 Thread Piotr Azarewicz
leaking memory - cleaning up v4 changes: - fix compilation with gcc 5.1 - add proper checking if thread exist Signed-off-by: Maciej Gajdzica Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline

[dpdk-dev] [PATCH v4 3/3] examples/ip_pipeline: add mp/mc and frag/ras swq

2015-10-28 Thread Piotr Azarewicz
Add integrated MP/MC and fragmentation/reassembly support to SWQs Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/app.h | 14 +++ examples/ip_pipeline/config_check.c | 45 +++- examples/ip_pipeline/config_parse.c | 195 +-- examples

[dpdk-dev] [PATCH v4 2/3] port: fix ras/frag ring ports

2015-10-28 Thread Piotr Azarewicz
to redefinition the macros. Fixes: 50f54a84dfb7 ("port: add IPv6 reassembly port") Fixes: ba92d511ddac ("port: move metadata offset reference at mbuf head") Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_frag.c |5 +++-- lib/librte_port/rte_port_ras.c |8 +

[dpdk-dev] [PATCH v4 1/3] port: add mp/mc ring ports

2015-10-28 Thread Piotr Azarewicz
ring_multi_reader input port (on top of multi consumer rte_ring) ring_multi_writer output port (on top of multi producer rte_ring) Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_ring.c | 311 +++--- lib/librte_port/rte_port_ring.h | 35

[dpdk-dev] [PATCH v4 0/3] ip_pipeline: add MP/MC and frag/ras support to SWQs

2015-10-28 Thread Piotr Azarewicz
fix usage RTE_MBUF_METADATA_* macros Acked-by: Cristian Dumitrescu Piotr Azarewicz (3): port: add mp/mc ring ports port: fix ras/frag ring ports examples/ip_pipeline: add mp/mc and frag/ras swq examples/ip_pipeline/app.h | 14 ++ examples/ip_pipeline/config_check.c | 45 -

[dpdk-dev] [PATCH v3 3/3] examples/ip_pipeline: add mp/mc and frag/ras swq

2015-10-20 Thread Piotr Azarewicz
Add integrated MP/MC and fragmentation/reassembly support to SWQs Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/app.h | 14 +++ examples/ip_pipeline/config_check.c | 45 +++- examples/ip_pipeline/config_parse.c | 195 +-- examples

[dpdk-dev] [PATCH v3 2/3] port: fix ras ring ports

2015-10-20 Thread Piotr Azarewicz
embly port") Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_ras.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/librte_port/rte_port_ras.c b/lib/librte_port/rte_port_ras.c index 6bd0f8c..e45d450 100644 --- a/lib/librte_port/rte_port_ras.c

[dpdk-dev] [PATCH v3 1/3] port: add mp/mc ring ports

2015-10-20 Thread Piotr Azarewicz
ring_multi_reader input port (on top of multi consumer rte_ring) ring_multi_writer output port (on top of multi producer rte_ring) Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_ring.c | 311 +++--- lib/librte_port/rte_port_ring.h | 35

[dpdk-dev] [PATCH v3 0/3] ip_pipeline: add MP/MC and frag/ras support to SWQs

2015-10-20 Thread Piotr Azarewicz
: Cristian Dumitrescu Piotr Azarewicz (3): port: add mp/mc ring ports port: fix ras ring ports examples/ip_pipeline: add mp/mc and frag/ras swq examples/ip_pipeline/app.h | 14 ++ examples/ip_pipeline/config_check.c | 45 - examples/ip_pipeline/config_parse

[dpdk-dev] [PATCH v3 1/1] ip_pipeline: added dynamic pipeline reconfiguration

2015-10-19 Thread Piotr Azarewicz
leaking memory - cleaning up Signed-off-by: Maciej Gajdzica Signed-off-by: Piotr Azarewicz Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/app.h | 12 + examples/ip_pipeline/config_parse.c

[dpdk-dev] [PATCH v2 3/3] examples/ip_pipeline: add mp/mc and frag/ras swq

2015-09-24 Thread Piotr Azarewicz
Add integrated MP/MC and fragmentation/reassembly support to SWQs Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/app.h | 14 +++ examples/ip_pipeline/config_check.c | 45 +++- examples/ip_pipeline/config_parse.c | 195 +-- examples

[dpdk-dev] [PATCH v2 2/3] port: fix ras ring ports

2015-09-24 Thread Piotr Azarewicz
Bug fixes for ring ports with IPv4/IPv6 reassembly support. Previous implementation can't work properly due to incorrect choosing process function. Also, assuming that, when processing ip packet, ip header is know we can set l3_len parameter here. Signed-off-by: Piotr Azarewicz --- lib

[dpdk-dev] [PATCH v2 1/3] port: add mp/mc ring ports

2015-09-24 Thread Piotr Azarewicz
ring_multi_reader input port (on top of multi consumer rte_ring) ring_multi_writer output port (on top of multi producer rte_ring) Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_ring.c | 311 +++ lib/librte_port/rte_port_ring.h | 35 - 2

[dpdk-dev] [PATCH v2 0/3] ip_pipeline: add MP/MC and frag/ras support to SWQs

2015-09-24 Thread Piotr Azarewicz
: - rte_port_ring: - fixed checkpatch errors - interlace the implementation of multi into the implementation of single - reduced the amount of code duplication Piotr Azarewicz (3): port: add mp/mc ring ports port: fix ras ring ports examples/ip_pipeline: add mp/mc

[dpdk-dev] [PATCH v1 3/3] examples/ip_pipeline: add mp/mc and frag/ras swq

2015-09-15 Thread Piotr Azarewicz
Add integrated MP/MC and fragmentation/reassembly support to SWQs Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/app.h | 14 +++ examples/ip_pipeline/config_check.c | 45 +++- examples/ip_pipeline/config_parse.c | 195 +-- examples

[dpdk-dev] [PATCH v1 2/3] port: fix ras ring ports

2015-09-15 Thread Piotr Azarewicz
Bug fixes for ring ports with IPv4/IPv6 reassembly support. Previous implementation can't work properly due to incorrect choosing process function. Also, assuming that, when processing ip packet, ip header is know we can set l3_len parameter here. Signed-off-by: Piotr Azarewicz --- lib

[dpdk-dev] [PATCH v1 1/3] port: add mp/mc ring ports

2015-09-15 Thread Piotr Azarewicz
ring_multi_reader input port (on top of multi consumer rte_ring) ring_multi_writer output port (on top of multi producer rte_ring) Signed-off-by: Piotr Azarewicz --- lib/librte_port/rte_port_ring.c | 399 ++- lib/librte_port/rte_port_ring.h | 34 +++- 2

[dpdk-dev] [PATCH v1 0/3] ip_pipeline: add MP/MC and frag/ras support to SWQs

2015-09-15 Thread Piotr Azarewicz
This patch set enhancement ip_pipeline application: - librte_port: add support for multi-producer/multi-consumer ring ports - librte_port: bug fixes for ring ports with IPv4/IPv6 reassembly support - ip_pipeline application: integrate MP/MC and fragmentation/reassembly support to SWQs Piotr

[dpdk-dev] [PATCH v4 1/1] ip_frag: fix creating ipv6 fragment extension header

2015-09-10 Thread Piotr Azarewicz
(due to remove the union above) v3 changes: - add macros to read/set fragment_offset and more_flags values v4 changes: - two additional fixes due to remove the union and due to changes in macros Signed-off-by: Piotr Azarewicz --- lib/librte_ip_frag/rte_ip_frag.h| 27

[dpdk-dev] [PATCH v3 1/1] ip_frag: fix creating ipv6 fragment extension header

2015-09-09 Thread Piotr Azarewicz
(due to remove the union above) v3 changes: - add macros to read/set fragment_offset and more_flags values Signed-off-by: Piotr Azarewicz --- lib/librte_ip_frag/rte_ip_frag.h| 27 --- lib/librte_ip_frag/rte_ipv6_fragmentation.c | 12 ++-- lib

[dpdk-dev] [PATCH v2 1/1] ip_frag: fix creating ipv6 fragment extension header

2015-09-08 Thread Piotr Azarewicz
(due to remove the union above) Signed-off-by: Piotr Azarewicz --- lib/librte_ip_frag/rte_ip_frag.h| 13 ++--- lib/librte_ip_frag/rte_ipv6_fragmentation.c |6 ++ lib/librte_port/rte_port_ras.c | 10 +++--- 3 files changed, 11 insertions(+), 18