[dpdk-dev] [PATCH] examples/ip_pipeline: fix load balancing function in pass-through pipeline

2016-11-21 Thread Jasvinder Singh
;hash") Fixes: cbe82f6cfb0a ("examples/ip_pipeline: add swap action in pass-through") Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/pipeline/pipeline_passthrough_be.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/pipeline/pipeli

[dpdk-dev] [PATCH] examples/ip_pipeline: fix freeBSD build error

2016-10-17 Thread Jasvinder Singh
Error log: CC init.o examples/ip_pipeline/init.c:38:22: fatal error: linux/if.h: No such file or directory #include ^ Fixes: 3f2c9f3bb6c6 ("examples/ip_pipeline: add TAP port") Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/init.c | 16 +

[dpdk-dev] [PATCH v3 3/3] examples/ip_pipeline: add sample config file with TAP port usage

2016-10-13 Thread Jasvinder Singh
To illustrate the TAP port usage, the sample configuration file with passthrough pipeline connected to TAP interface is added. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/tap.cfg | 64 + 1 file changed, 64

[dpdk-dev] [PATCH v3 2/3] examples/ip_pipeline: integrate TAP port

2016-10-13 Thread Jasvinder Singh
The TAP port support is added to ip_pipeline app. To parse configuration file with TAP port entries, parsing function is implemented. The TAP ports configuration check and initialization routines have been included in application code. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v3 1/3] lib/librte_port: enable file descriptor port support

2016-10-13 Thread Jasvinder Singh
This patch adds File Descriptor(FD) port type (e.g. TAP port) to the packet framework library that allows interface with the kernel network stack. The FD port APIs are defined that allow port creation, writing and reading packet from the kernel interface. Signed-off-by: Jasvinder Singh Acked

[dpdk-dev] [PATCH] app/test: fix failing packet-framework table unit-tests

2016-09-12 Thread Jasvinder Singh
The pipeline object is not freed when a particular test-case of the unit-test finishes. Using rte_pipeline_free() before returning the outcome for each test-case fixes the issue. Fixes: 5205954791cb ("app/test: packet framework unit tests") Signed-off-by: Jasvinder Singh ---

[dpdk-dev] [PATCH v2 3/3] examples/ip_pipeline: add sample config file with TAP port usage

2016-09-04 Thread Jasvinder Singh
To illustrate the TAP port usage, the sample configuration file with passthrough pipeline connected to TAP interface is added. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/tap.cfg | 64 + 1 file changed, 64

[dpdk-dev] [PATCH v2 2/3] examples/ip_pipeline: integrate TAP port

2016-09-04 Thread Jasvinder Singh
The TAP port support is added to ip_pipeline app. To parse configuration file with TAP port entries, parsing function is implemented. The TAP ports configuration check and initialization routines have been included in application code. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v2 1/3] lib/librte_port: enable file descriptor port support

2016-09-04 Thread Jasvinder Singh
This patch adds File Descriptor(FD) port type (e.g. TAP port) to the packet framework library that allows interface with the kernel network stack. The FD port APIs are defined that allow port creation, writing and reading packet from the kernel interface. Signed-off-by: Jasvinder Singh Acked

[dpdk-dev] [PATCH] examples/qos_sched: fix packets dequeue operation from ring

2016-09-01 Thread Jasvinder Singh
, rte_ring_sc_dequeue_bulk is replaced with rte_ring_sc_dequeue_burst. Fixes: de3cfa2c9823 ("sched: initial import") Suggested-by: Yang, Tao Y Signed-off-by: Jasvinder Singh --- examples/qos_sched/app_thread.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletion

[dpdk-dev] [PATCH 2/2] ip_pipeline: enable swap action in network layers configuration file

2016-08-26 Thread Jasvinder Singh
operation on the IP source and destination address, and UDP source and destination ports. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/network_layers.cfg | 4 examples/ip_pipeline/config/network_layers.sh | 10 +- 2 files changed, 9

[dpdk-dev] [PATCH 1/2] ip_pipeline: add packet fields swap action to pass-through pipeline

2016-08-26 Thread Jasvinder Singh
;swap = 282 286; IPSRC <-> IPDST swap = 290 292; PORTSRC <-> PORTDST Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- .../ip_pipeline/pipeline/pipeline_passthrough.c| 2 +- .../ip_pipeline/pipeline/pipeline_passthrough_be.c | 335 +++-- .../ip

[dpdk-dev] [PATCH 2/2] examples/ip_pipeline: modify source port default parameter

2016-08-09 Thread Jasvinder Singh
The default value of ``file_name`` parameter of the source port structure is changed from ``NULL`` to ``./config/packets.pcap``. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/app.h | 4 ++-- examples/ip_pipeline/config_parse.c | 6 +- 2 files changed, 3 insertions(+), 7

[dpdk-dev] [PATCH 1/2] lib/librte_port: modify source and sink port structure parameter

2016-08-09 Thread Jasvinder Singh
The ``file_name`` data type of ``struct rte_port_source_params`` and ``struct rte_port_sink_params`` is changed from `char *`` to ``const char *``. Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_notes/release_16_11.rst | 3 ++- lib/librte_port

[dpdk-dev] [PATCH 3/3] examples/ip_pipeline: add sample config file with TAP port usage

2016-08-05 Thread Jasvinder Singh
To illustrate the TAP port usage, the sample configuration file with passthrough pipeline connected to TAP interface is added. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/tap.cfg | 64 + 1 file changed, 64

[dpdk-dev] [PATCH 2/3] examples/ip_pipeline: integrate TAP port

2016-08-05 Thread Jasvinder Singh
The TAP port support is added to ip_pipeline app. To parse configuration file with TAP port entries, parsing function is implemented. The TAP ports configuration check and initialization routines have been included in application code. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH 1/3] lib/librte_port: enable file descriptor port support

2016-08-05 Thread Jasvinder Singh
This patch adds File Descriptor(FD) port type (e.g. TAP port) to the packet framework library that allows interface with the kernel network stack. The FD port APIs are defined that allow port creation, writing and reading packet from the kernel interface. Signed-off-by: Jasvinder Singh Acked

[dpdk-dev] [PATCH v2] ip_pipeline: add Python script file for creating visual diagram of IP pipeline config file

2016-06-28 Thread Jasvinder Singh
. To run the script, following command is used; ./diagram-generator.py -f Some optional arguments are as follows: -h, --helpshow this help message and exit Signed-off-by: Jasvinder Singh Signed-off-by: Cristian Dumitrescu Acked-by: Cristian Dumitrescu --- v2 - made script Python 3

[dpdk-dev] [PATCH] ip_pipeline: add Python script file for creating visual diagram of IP pipeline config file

2016-06-23 Thread Jasvinder Singh
. To run the script, following command is used; ./diagram-generator.py -f Some optional arguments are as follows: -h, --helpshow this help message and exit Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config

[dpdk-dev] [PATCH] ip_pipeline: fix parsing error in TM port section

2016-06-16 Thread Jasvinder Singh
mples/ip_pipeline: clean up configuration parser") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_par

[dpdk-dev] [PATCH v2] ip_pipeline: fix false cacheline sharing among threads

2016-06-12 Thread Jasvinder Singh
4aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v2 - fix checkpatch error examples/ip_pipeline/app.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/app.h b/examples/ip_pipelin

[dpdk-dev] [PATCH] ip_pipeline: fix false cacheline sharing among threads

2016-06-11 Thread Jasvinder Singh
4aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/app.h b/examples/ip_pipeline/app.h index 848244a..c

[dpdk-dev] [PATCH v4] ip_pipeline: add script file for pipeline to core mappings

2016-06-10 Thread Jasvinder Singh
From: Guruprasad Mukundarao This script parses the application configuration file and detects all the pipelines specified therein, and then, it generates all the possible mappings of those pipelines on the specified CPU core-list. As a result, each of the possible

[dpdk-dev] [PATCH v5] ip_pipeline: configuration file parser cleanup

2016-06-08 Thread Jasvinder Singh
INK_FOR_TM which add corresponding nic ports entry to the application param structure while parsing rx/tx queues, TM (Traffic Manager) port sections and pktq_in/out entries of pipeline sections Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v5 - fix clang compilation error on

[dpdk-dev] [PATCH] librte_sched: fix compile error on unused parameter red

2016-06-02 Thread Jasvinder Singh
sched: keep track of RED drops") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- lib/librte_sched/rte_sched.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 1609ea

[dpdk-dev] [PATCH v2 6/6] ip_pipeline: update release notes

2016-06-01 Thread Jasvinder Singh
Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/release_16_07.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/guides/rel_notes/release_16_07.rst b/doc/guides/rel_notes/release_16_07.rst index 30e78d4..d8215bc 100644 --- a/doc/guides

[dpdk-dev] [PATCH v2 5/6] ip_pipeline: sample config file on adding various network layer components

2016-06-01 Thread Jasvinder Singh
the MTU for the routed output traffic, can be added using SWQs enabled with reassembly and fragmentation features. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/network_layers.cfg | 223 + examples/ip_pipeline/config

[dpdk-dev] [PATCH v2 4/6] ip_pipeline: automatic routes update with the change in nic ports state

2016-06-01 Thread Jasvinder Singh
The routing pipeline registers a callback function with the nic ports and this function is invoked for updating the routing entries (corrsponding to local host and directly attached network) tables whenever the nic ports change their states (up/down). Signed-off-by: Jasvinder Singh Acked

[dpdk-dev] [PATCH v2 3/6] ip_pipeline: assign nic ports mac address to the routing pipeline outports

2016-06-01 Thread Jasvinder Singh
instead of hardcoded default values. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/pipeline/pipeline_routing.c | 89 -- examples/ip_pipeline/pipeline/pipeline_routing.h | 7 ++ .../ip_pipeline/pipeline/pipeline_routing_be.c

[dpdk-dev] [PATCH v2 2/6] ip_pipeline: linking routing pipeline output ports with NIC ports

2016-06-01 Thread Jasvinder Singh
-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 151 - examples/ip_pipeline/init.c| 32 - examples/ip_pipeline/pipeline.h| 11 +- examples/ip_pipeline/pipeline

[dpdk-dev] [PATCH v2 1/6] ip_pipeline: increase macros values

2016-06-01 Thread Jasvinder Singh
To allow more queues, pipeline types, threads, source/sink ports,etc., in the ip pipeline application, larger values of macros are set. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 12 ++-- examples/ip_pipeline/pipeline_be.h | 8

[dpdk-dev] [PATCH v2 0/6] ip_pipeline: routing pipeline improvements

2016-06-01 Thread Jasvinder Singh
link is brought up/down - update the release notes Acked-by: Cristian Dumitrescu Jasvinder Singh (6): ip_pipeline: increase macros values ip_pipeline: linking routing pipeline output ports with NIC ports ip_pipeline: assign nic ports mac address to the routing pipeline outports ip

[dpdk-dev] [PATCH v3] ip_pipeline: add script file for pipeline to core mappings

2016-05-31 Thread Jasvinder Singh
From: Guruprasad Mukundarao This script parses the application configuration file and detects all the pipelines specified therein, and then, it generates all the possible mappings of those pipelines on the specified CPU core-list. As a result, each of the possible

[dpdk-dev] [PATCH v3] ip_pipeline: add rss support

2016-05-30 Thread Jasvinder Singh
ation can be applied for using the rss on port 0 of the network interface; [PIPELINE0] type = MASTER core = 0 [LINK0] rss_qs = 0 1 [PIPELINE1] type = PASS-THROUGH core = 1 pktq_in = RXQ0.0 RXQ0.1 RXQ1.0 pktq_out = TXQ0.0 TXQ1.0 TXQ0.1 Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitre

[dpdk-dev] [PATCH v4] ip_pipeline: configuration file parser cleanup

2016-05-30 Thread Jasvinder Singh
INK_FOR_TM which add corresponding nic ports entry to the application param structure while parsing rx/tx queues, TM (Traffic Manager) port sections and pktq_in/out entries of pipeline sections Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v4 - update the commit mess

[dpdk-dev] [PATCH] librte_table: remove unnecessary printf messages from acl build

2016-05-19 Thread Jasvinder Singh
Removes rte_acl_dump() call from rte_table_acl_build () as it invokes number of printf messages. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- lib/librte_table/rte_table_acl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_table/rte_table_acl.c b/lib

[dpdk-dev] [PATCH v3] ip_pipeline: configuration file parser cleanup

2016-05-11 Thread Jasvinder Singh
, the code size of the parsing routines is reduced significantly. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v3 - add check on the number of pktq_in/out entries - add check on the number of msgq_in/out entries v2 - update the commit message - change the local variable name f

[dpdk-dev] [PATCH v2] ip_pipeline: add rss support

2016-05-11 Thread Jasvinder Singh
ation can be applied for using the rss on port 0 of the network interface; [PIPELINE0] type = MASTER core = 0 [LINK0] rss_qs = 0 1 [PIPELINE1] type = PASS-THROUGH core = 1 pktq_in = RXQ0.0 RXQ0.1 RXQ1.0 pktq_out = TXQ0.0 TXQ1.0 TXQ0.1 Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH] ip_pipeline: routing pipeline improvements

2016-05-07 Thread Jasvinder Singh
, it allows adding/removing the implicit routes every time when the corresponding physical nic port is brought up/down. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/app.h | 137 + examples/ip_pipeline/pipeline/pipeline_common_fe.c | 88

[dpdk-dev] [PATCH] ip_pipeline: add scripts file for pipeline to core mappings

2016-05-06 Thread Jasvinder Singh
From: Guruprasad Mukundarao This script parses the application configuration file and detects all the pipelines specified therein, and then, it generates all the possible mappings of those pipelines on the specified CPU core-list. As a result, each of the possible

[dpdk-dev] [PATCH v2] ip_pipeline: configuration file parser cleanup

2016-05-03 Thread Jasvinder Singh
, the code size of the parsing routines is reduced significantly. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v2 - update the commit message - change the local variable name from "token" to "name" examples/ip_pipeline/config_parse.c | 169 --

[dpdk-dev] [PATCH] ip_pipeline: configuration file parser cleanup

2016-05-02 Thread Jasvinder Singh
This patch updates the parsing routines of packet queues (pktq_in/out fields in the PIPELINE section) and message queues (msgq_in/out fields of in the MSGQ Section) specified in ip_pipeline configuration file. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples

[dpdk-dev] [PATCH] ip_pipeline: add rss support

2016-04-29 Thread Jasvinder Singh
ation can be applied for using the rss on port 0 of the network interface; [PIPELINE0] type = MASTER core = 0 [LINK0] rss_qs = 0 1 [PIPELINE1] type = PASS-THROUGH core = 1 pktq_in = RXQ0.0 RXQ0.1 RXQ1.0 pktq_out = TXQ0.0 TXQ1.0 TXQ0.1 Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumit

[dpdk-dev] [PATCH] librte_port: fix the buffer overflow for ring writer

2016-04-11 Thread Jasvinder Singh
xes: bf6931b242f7 ("port: ring") Fixes: 5f4cd47309d6 ("port: add ring writer nodrop") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- lib/librte_port/rte_port_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_por

[dpdk-dev] [PATCH] librte_port: fix the bsz_mask variable type

2016-04-11 Thread Jasvinder Singh
f ring writer") Fixes: 5f4cd47309d6 ("port: add ring writer nodrop") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- lib/librte_port/rte_port_ethdev.c | 4 ++-- lib/librte_port/rte_port_ring.c | 4 ++-- lib/librte_port/rte_port_sched.c | 2 +- 3 files changed,

[dpdk-dev] [PATCH] doc: update release notes for ip_pipeline app

2016-03-14 Thread Jasvinder Singh
This patch updates the release notes with the features that have been added to ip_pipeline application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/release_16_04.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH v3] ip_pipeline: add load balancing function to pass-through pipeline

2016-03-10 Thread Jasvinder Singh
+dma_size) lb = hash Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v3 * rebased on master v2 * modify the action handler implementation .../ip_pipeline/pipeline/pipeline_actions_common.h | 22 ++ .../ip_pipeline/pipeline/pipeline_passthrough_be.c | 275

[dpdk-dev] [PATCH v5 2/2] librte_pipeline: add new API functions for pipeline action handlers

2016-03-08 Thread Jasvinder Singh
any pipeline output port or drop them. Another packet drop API function can be used by the pipeline action handlers (port in/out, table) to drop the packets selected using packet mask. This function updates the drop statistics counters correctly. Signed-off-by: Jasvinder Singh Acked-by: Cristian

[dpdk-dev] [PATCH v5 1/2] librte_pipeline: add support for packet redirection at action handlers

2016-03-08 Thread Jasvinder Singh
action handlers (port in/out, table) to remove the selected packets from the further pipeline processing and to take full ownership for these packets. This feature will be helpful to implement functions such as exception handling (e.g. TTL =0), load balancing etc. Signed-off-by: Jasvinder Singh

[dpdk-dev] [PATCH v4] librte_pipeline: add support for packet redirection at action handlers

2016-03-03 Thread Jasvinder Singh
functions such as exception handling (e.g. TTL =0), load balancing etc. Changes are made to the ports and table action handlers defined in app/test_pipeline and ip_pipeline sample application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v4 * merged library and app commits v3

[dpdk-dev] [PATCH] librte_port: fix segmentation fault for ring writer nodrop

2016-03-02 Thread Jasvinder Singh
2 ("port: add ring multi reader or writer") Signed-off-by: Jasvinder Singh --- lib/librte_port/rte_port_ring.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/librte_port/rte_port_ring.c b/lib/librte_port/rte_port_ring.c index 755dfc1..b847fea 10064

[dpdk-dev] [PATCH] librte_port: fix segmentation fault for ethdev writer nodrop

2016-03-02 Thread Jasvinder Singh
Error log: [APP] Initializing PIPELINE0 ... pipeline> [APP] Initializing PIPELINE1 ... [PIPELINE1] Pass-through Segmentation fault (core dumped) Fixes: 304c8091e90a ("port: add ethdev writer nodrop") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- li

[dpdk-dev] [PATCH v3 2/2] modify action handlers in test_pipeline and ip_pipeline

2016-03-02 Thread Jasvinder Singh
Changes are made to the ports and table action handlers defined in app/test_pipeline and ip_pipeline sample application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- app/test-pipeline/pipeline_acl.c | 3 +- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH v3 1/2] librte_pipeline: add support for packet redirection at action handlers

2016-03-02 Thread Jasvinder Singh
functions such as exception handling (e.g. TTL =0), load balancing etc. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v3 * improved comments in "rte_pipeline.h" v2 * rebased on master doc/guides/rel_notes/deprecation.rst | 5 - doc/guides/rel_notes/release

[dpdk-dev] [PATCH v2 2/2] modify action handlers in test_pipeline and ip_pipeline

2016-02-29 Thread Jasvinder Singh
Changes are made to the ports and table action handlers defined in app/test_pipeline and ip_pipeline sample application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- app/test-pipeline/pipeline_acl.c | 3 +- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH v2 1/2] librte_pipeline: add support for packet redirection at action handlers

2016-02-29 Thread Jasvinder Singh
functions such as exception handling (e.g. TTL =0), load balancing etc. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v2: * rebased on master doc/guides/rel_notes/deprecation.rst | 5 - doc/guides/rel_notes/release_16_04.rst | 6 +- lib/librte_pipeline/Makefile

[dpdk-dev] [PATCH v2] ip_pipeline: add load balancing function to pass-through pipeline

2016-02-04 Thread Jasvinder Singh
+dma_size) lb = hash Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v2 * modify the action handler implementation .../ip_pipeline/pipeline/pipeline_actions_common.h | 22 ++ .../ip_pipeline/pipeline/pipeline_passthrough_be.c | 279 - .../ip_pipeline

[dpdk-dev] [PATCH v2] ip_pipeline: fix cpu socket-id error

2016-01-27 Thread Jasvinder Singh
This patch fixes the socket-id error in ip_pipeline sample application running over uni-processor systems. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- v2: - used SOCKET_ID_ANY instead of -1 examples/ip_pipeline/init.c | 14 +++--- 1 file changed, 11 insertions

[dpdk-dev] [PATCH] ip_pipeline: add load balancing function to pass-through pipeline

2016-01-27 Thread Jasvinder Singh
+dma_size) lb = hash Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- .../ip_pipeline/pipeline/pipeline_actions_common.h | 22 ++ .../ip_pipeline/pipeline/pipeline_passthrough_be.c | 281 - .../ip_pipeline/pipeline/pipeline_passthrough_be.h | 2 + 3 files

[dpdk-dev] [PATCH 2/2] modify action handlers in test_pipeline and ip_pipeline

2016-01-25 Thread Jasvinder Singh
Changes are made to the ports and table action handlers defined in app/test_pipeline and ip_pipeline sample application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- app/test-pipeline/pipeline_acl.c | 3 +- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH 1/2] librte_pipeline: add support for packet redirection at action handlers

2016-01-25 Thread Jasvinder Singh
functions such as exception handling (e.g. TTL =0), load balancing etc. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 5 - doc/guides/rel_notes/release_2_3.rst | 5 +- lib/librte_pipeline/Makefile | 4

[dpdk-dev] [PATCH] ip_pipeline: fix cpu socket-id error

2016-01-20 Thread Jasvinder Singh
This patch fixes the socket-id error in ip_pipeline sample application running over uni-processor systems. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/init.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH v4] ip_pipeline: add sample configuration/script files

2015-12-14 Thread Jasvinder Singh
these configuration and script files don't affect the compilation. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- *v2 - correct date in license header(edge_router_downstream/upstream.cfg) - modify commit message *v3 - correct date in license header(l2fwd.cfg, l3fwd.cfg) *v4 - fix

[dpdk-dev] [PATCH v3] ip_pipeline: add sample configuration/script files

2015-12-14 Thread Jasvinder Singh
these configuration and script files don't affect the compilation. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- *v2 - correct date in license header(edge_router_downstream/upstream.cfg) - modify commit message *v3 - correct date in license header(l2fwd.cfg, l3fwd.cfg) .../ip_pipeline

[dpdk-dev] [PATCH v2] ip_pipeline: add sample configuration/script files

2015-12-14 Thread Jasvinder Singh
these configuration and script files don't affect the compilation. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- *v2 - correct date in license header - modify commit message .../ip_pipeline/config/edge_router_downstream.cfg | 85 .../ip_pipeline/config

[dpdk-dev] [PATCH] ip_pipeline: add sample configuration/script files

2015-12-10 Thread Jasvinder Singh
files. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- .../ip_pipeline/config/edge_router_downstream.cfg | 80 .../ip_pipeline/config/edge_router_downstream.cli | 10 ++ .../ip_pipeline/config/edge_router_upstream.cfg| 106

[dpdk-dev] [PATCH] ip_pipeline: fix build errors on different linux kernels

2015-12-09 Thread Jasvinder Singh
Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_parse.c index 6e49763..6aaca11 100644 --- a/examples/ip_pipeline/config_parse.c +++

[dpdk-dev] [PATCH v5] ip_pipeline: add more functions to routing-pipeline

2015-12-02 Thread Jasvinder Singh
such entries to LPM table have been implemented. Action handlers for QinQ and MPLS encapsulation, classification action to select the input queue of the hierarchical schedular(QoS) and adding colour (Traffic-class for QoS) to the MPLS tag have been implemented. Signed-off-by: Jasvinder Singh Acked

[dpdk-dev] [PATCH v2] ip_pipeline: add check on nic's rxq and txq

2015-12-01 Thread Jasvinder Singh
This patch checks that rx queue and tx queue of each link specified in ip pipeline configuration file are used. *v2 - fix checkpatch warnings Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_check.c | 4 1 file changed, 4 insertions(+) diff

[dpdk-dev] [PATCH v4] ip_pipeline: add flow id parameter to flow classification

2015-11-30 Thread Jasvinder Singh
size power of 2 *v3 fixed bug: changed LRU hash table operation to extendible bucket hash table operation *v4 Coverity issue: 120147 Fixes: 7122d30131ad ("examples/ip_pipeline: rework flow classification pipeline") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- ..

[dpdk-dev] [PATCH v2] doc: update release notes for ip_pipeline app

2015-11-04 Thread Jasvinder Singh
This patch updates the release notes with the features added to ip_pipeline application. v2: *placed the release notes under New Features header Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/release_2_2.rst | 33 + 1 file changed, 33 insertions

[dpdk-dev] [PATCH] doc: update release notes for ip_pipeline app

2015-11-04 Thread Jasvinder Singh
This patch updates the release notes with the features added to ip_pipeline application. Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/release_2_2.rst | 49 1 file changed, 49 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc

[dpdk-dev] [PATCH v4] ip_pipeline: add more functions to routing-pipeline

2015-10-28 Thread Jasvinder Singh
ion handlers *writing 6 bytes for the macaddr_dst instead of 8 bytes during encapsulation, as the additional 2 bytes are located on previous cache line. v4: *fixed bug as RTE_MBUF_METADATA_* macros to access the packet meta-data covers the packet mbuf structure. Signed-off-by: Jasvinder Singh

[dpdk-dev] [PATCH v4 2/2] librte_cfgfile(rte_cfgfile.h): modify the macros values

2015-10-22 Thread Jasvinder Singh
This patch refers to the ABI change proposed for librte_cfgfile(rte_cfgfile.h). In order to allow for longer names and values, the values of macro CFG_NAME_LEN and CFG_VAL_LEN is increased. Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_notes

[dpdk-dev] [PATCH v4 1/2] qos_sched: fix example modification to use librte_cfgfile

2015-10-22 Thread Jasvinder Singh
From: Michal Jastrzebski This is a supplement for previous patch that was incomplete. Previous commit message: This is a modification of qos_sched example to use librte_cfgfile for parsing configuration file. Fixes: db935d0171dd ("examples/qos_sched: use

[dpdk-dev] [PATCH v4 0/2] cfgfile: modify the macros values

2015-10-22 Thread Jasvinder Singh
modification to use librte_cfgfile Jasvinder Singh (1): librte_cfgfile(rte_cfgfile.h): modify the macros values doc/guides/rel_notes/deprecation.rst | 4 - doc/guides/rel_notes/release_2_2.rst | 6 +- examples/qos_sched/cfg_file.c| 183 --- examples

[dpdk-dev] [PATCH v3 6/6] example/ip_pipeline/pipeline: update flow_classification pipeline

2015-10-21 Thread Jasvinder Singh
From: Fan Zhang This patch updates the flow_classification pipeline for added key_mask parameter in 8/16-byte key hash parameters. The update provides user optional key_mask configuration item applying to the packets. Signed-off-by: Fan Zhang ---

[dpdk-dev] [PATCH v3 5/6] example/ip_pipeline: add parse_hex_string for internal use

2015-10-21 Thread Jasvinder Singh
From: Fan Zhang This patch adds parse_hex_string function to parse hex string to uint8_t array. Signed-off-by: Fan Zhang --- examples/ip_pipeline/config_parse.c | 70 + examples/ip_pipeline/pipeline.h | 4 +++ 2 files changed,

[dpdk-dev] [PATCH v3 4/6] app/test-pipeline: modify pipeline test

2015-10-21 Thread Jasvinder Singh
From: Fan Zhang Test-pipeline has been updated to work on added key_mask parameter for 8-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- app/test-pipeline/pipeline_hash.c | 4 1 file changed, 4 insertions(+) diff --git

[dpdk-dev] [PATCH v3 3/6] app/test: modify app/test_table_combined and app/test_table_tables

2015-10-21 Thread Jasvinder Singh
From: Fan Zhang Tests have been updated to work on added key_mask parameter for 8-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- app/test/test_table_combined.c | 5 - app/test/test_table_tables.c | 6 -- 2 files changed, 8

[dpdk-dev] [PATCH v3 2/6] librte_table: add 16 byte hash table operations with computed lookup

2015-10-21 Thread Jasvinder Singh
From: Fan Zhang This patch is to adding hash table operations for key signature computed on lookup ("do-sig") for LRU hash tables and Extendible buckets. Signed-off-by: Fan Zhang --- lib/librte_table/rte_table_hash.h | 8 +

[dpdk-dev] [PATCH v3 1/6] librte_table: add key_mask parameter to 8- and 16-bytes key hash parameters

2015-10-21 Thread Jasvinder Singh
Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/deprecation.rst| 4 --- doc/guides/rel_notes/release_2_2.rst| 4 +++ lib/librte_table/rte_table_hash.h | 12 lib/librte_table/rte_table_hash_key16.c | 52 ++- lib/librte_table/rte_table_has

[dpdk-dev] [PATCH v3 0/6] librte_table: add key_mask parameter to hash table parameter structure

2015-10-21 Thread Jasvinder Singh
This patchset links to ABI change announced for librte_table. The key_mask parameters has been added to the hash table parameter structure for 8-byte key and 16-byte key extendible bucket and LRU tables. v2: *updated release note v3: *merged release note with source code patch *fixed build

[dpdk-dev] [PATCH v3] ip_pipeline: add more functions to routing-pipeline

2015-10-19 Thread Jasvinder Singh
ion handlers *writing 6 bytes for the macaddr_dst instead of 8 bytes during encapsulation, as the additional 2 bytes are located on previous cache line Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/pipeline/pipeline_routing.c | 806 -

[dpdk-dev] [PATCH v2 8/8] librte_table: modify release notes and deprecation notice

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang The LIBABIVER number is incremented. The release notes is updated and the deprecation announce is removed. Signed-off-by: Fan Zhang --- doc/guides/rel_notes/deprecation.rst | 3 --- doc/guides/rel_notes/release_2_2.rst | 4 +++-

[dpdk-dev] [PATCH v2 7/8] example/ip_pipeline/pipeline: update flow_classification pipeline

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patch updates the flow_classification pipeline for added key_mask parameter in 8/16-byte key hash parameters. The update provides user optional key_mask configuration item applying to the packets. Signed-off-by: Fan Zhang ---

[dpdk-dev] [PATCH v2 6/8] example/ip_pipeline: add parse_hex_string for internal use

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patch adds parse_hex_string function to parse hex string to uint8_t array. Signed-off-by: Fan Zhang --- examples/ip_pipeline/config_parse.c | 70 + examples/ip_pipeline/pipeline.h | 4 +++ 2 files changed,

[dpdk-dev] [PATCH v2 4/8] app/test: modify app/test_table_combined and app/test_table_tables

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang Tests have been updated to work on added key_mask parameter for 8-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- app/test/test_table_combined.c | 4 app/test/test_table_tables.c | 6 -- 2 files changed, 8

[dpdk-dev] [PATCH v2 3/8] librte_table: add 16 byte hash table operations with computed lookup

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patch is to adding hash table operations for key signature computed on lookup ("do-sig") for LRU hash tables and Extendible buckets. Signed-off-by: Fan Zhang --- lib/librte_table/rte_table_hash.h | 8 +

[dpdk-dev] [PATCH v2 2/8] librte_table: add key_mask parameter to 16-byte key hash parameters

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patch relates to ABI change proposed for librte_table. key_mask parameter is added for 16-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- lib/librte_table/rte_table_hash.h | 6

[dpdk-dev] [PATCH v2 1/8] librte_table: add key_mask parameter to 8-byte key hash parameters

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patch relates to ABI change proposed for librte_table. key_mask parameter is added for 8-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- lib/librte_table/rte_table_hash.h | 6

[dpdk-dev] [PATCH v2 0/8] librte_table: add key_mask parameter to 8-byte key

2015-10-13 Thread Jasvinder Singh
From: Fan Zhang This patchset links to ABI change announced for librte_table. Key_mask parameters has been added to the hash table parameter structure for 8-byte key and 16-byte key extendible bucket and LRU tables. v2: *change in release note. Acked-by: Cristian

[dpdk-dev] [PATCH v3] ip_pipeline: add flow id parameter to flow classification

2015-10-12 Thread Jasvinder Singh
size power of 2 *v3 fixed bug: changed LRU hash table operation to extendible bucket hash table operation Signed-off-by: Jasvinder Singh --- .../pipeline/pipeline_flow_classification.c| 206 ++--- .../pipeline/pipeline_flow_classification.h| 4 +- .../pipeline

[dpdk-dev] [PATCH v2] ip_pipeline: add flow id parameter to flow classification

2015-10-05 Thread Jasvinder Singh
size power of 2 Signed-off-by: Jasvinder Singh --- .../pipeline/pipeline_flow_classification.c| 206 ++--- .../pipeline/pipeline_flow_classification.h| 4 +- .../pipeline/pipeline_flow_classification_be.c | 115 +++- .../pipeline

[dpdk-dev] [PATCH] ip_pipeline: modify action handler in passthrough pipeline

2015-10-03 Thread Jasvinder Singh
-off-by: Jasvinder Singh --- examples/ip_pipeline/config_parse.c| 52 ++ .../ip_pipeline/pipeline/pipeline_passthrough_be.c | 660 - .../ip_pipeline/pipeline/pipeline_passthrough_be.h | 17 + examples/ip_pipeline/pipeline_be.h | 3 + 4 files

[dpdk-dev] [PATCH v2] ip_pipeline: add more functions to routing-pipeline

2015-10-01 Thread Jasvinder Singh
Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/pipeline/pipeline_routing.c | 800 ++- examples/ip_pipeline/pipeline/pipeline_routing.h |8 +- .../ip_pipeline/pipeline/pipeline_routing_be.c | 1393 ++-- .../ip_pipeline/pipeline/pipeline_routing_be.h

[dpdk-dev] [PATCH] ip_pipeline: add flow id parameter to flow classification

2015-09-30 Thread Jasvinder Singh
This patch adds flow id field to the flow classification table entries and adds table action handlers to read flow id from table entry and write it into the packet meta-data. The flow_id (32-bit) parameter is also added to CLI commands flow add, flow delete, etc. Signed-off-by: Jasvinder Singh

[dpdk-dev] [PATCH] ip_pipeline: fixed bug in app_link_config

2015-09-30 Thread Jasvinder Singh
This patch fixes bug in app_link_config. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/pipeline/pipeline_common_fe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/pipeline/pipeline_common_fe.c b/examples/ip_pipeline/pipeline

[dpdk-dev] [PATCH] ip_pipeline: add more functions to routing-pipeline

2015-09-30 Thread Jasvinder Singh
-off-by: Jasvinder Singh --- examples/ip_pipeline/pipeline/pipeline_routing.c | 795 ++- examples/ip_pipeline/pipeline/pipeline_routing.h |8 +- .../ip_pipeline/pipeline/pipeline_routing_be.c | 1393 ++-- .../ip_pipeline/pipeline/pipeline_routing_be.h | 62

[dpdk-dev] [PATCH v2 4/4] librte_table: modify release notes and deprecation notice

2015-09-17 Thread Jasvinder Singh
The LIBABIVER number is incremented. The release notes is updated and the deprecation announcement is removed. Signed-off-by: Jasvinder Singh --- doc/guides/rel_notes/deprecation.rst | 3 --- doc/guides/rel_notes/release_2_2.rst | 4 +++- lib/librte_table/Makefile| 2 +- 3 files

  1   2   >