ip_pipeline: add flow actions pipeline
PATCH v4 1/1 ip_pipeline: add flow actions pipeline
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic metering/marking(for e.g. Single Rate Three Color Marker (srTCM), Two Rate Three Color Marker trTCM)), policer can be performed separately in flow action pipeline to avoid excessive computational burden on the CPU core running the flow-classification pipeline. The Flow action pipeline implements various function such as traffic metering, policer, stats. Traffic mettering can configured as per the required context, for examples- per user, per traffic class or both. These contexts can be applied by specifying parameters in configuration file as shown below;
[PIPELINE1]
type = FLOW_ACTIONS
core = 1pktq_in = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0n_flows = 65536n_meters_per_flow = 1flow_id_offset = 158ip_hdr_offset = 142color_offset = 64
The entries of flow and dscp tables of flow actions pipeline can be modified through command-line interface. The commands to add or delete entries to the flow table, DSCP(differentiated services code point) table and for statistics collection, etc have been included. The key functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler.
---
This patch depends on patch "ip_pipeline: add pipeline type validation"
http://dpdk.org/dev/patchwork/patch/7056/
*v2
Add CLI command check for pipeline type and update such check to all existing pipelines. It prevents running CLI commands on not supported pipeline types.
*v3
To be applied on top of:
[dpdk-dev] [PATCH 1/1] ip_pipeline: add pipeline type validation
*v4
Removing changes made in v2, fix bug introduced in v3.
examples/ip_pipeline/Makefile | 2 + examples/ip_pipeline/init.c | 2 + .../ip_pipeline/pipeline/pipeline_actions_common.h | 83 + .../ip_pipeline/pipeline/pipeline_flow_actions.c | 1814 ++++++++++++++++++++ .../ip_pipeline/pipeline/pipeline_flow_actions.h | 78 + .../pipeline/pipeline_flow_actions_be.c | 973 +++++++++++ .../pipeline/pipeline_flow_actions_be.h | 168 ++ 7 files changed, 3120 insertions(+) create mode 100644 examples/ip_pipeline/pipeline/pipeline_flow_actions.c create mode 100644 examples/ip_pipeline/pipeline/pipeline_flow_actions.h create mode 100644 examples/ip_pipeline/pipeline/pipeline_flow_actions_be.c create mode 100644 examples/ip_pipeline/pipeline/pipeline_flow_actions_be.h
examples/ip_pipeline/Makefile +2 -0
@@ -66,6 +66,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_firewall_be.c SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_firewall.c SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_classification_be.c SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_classification.c +SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_actions_be.c +SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_actions.c SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_routing_be.c SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_routing.c
examples/ip_pipeline/init.c +2 -0
@@ -49,6 +49,7 @@#include "pipeline_passthrough.h" #include "pipeline_firewall.h" #include "pipeline_flow_classification.h" +#include "pipeline_flow_actions.h" #include "pipeline_routing.h" #define APP_NAME_SIZE 32
@@ -1291,6 +1292,7 @@ int app_init(struct app_params *app)app_pipeline_type_register (app, &pipeline_master);app_pipeline_type_register (app, &pipeline_passthrough);app_pipeline_type_register (app, &pipeline_flow_classification); +app_pipeline_type_register (app, &pipeline_flow_actions);app_pipeline_type_register (app, &pipeline_firewall);app_pipeline_type_register (app, &pipeline_routing);
examples/ip_pipeline/pipeline/pipeline_actions_common.h +83 -0
87 lines not on this page · raw message
examples/ip_pipeline/pipeline/pipeline_flow_actions.c new file +1814 -0
1,814 lines not on this page · raw message
examples/ip_pipeline/pipeline/pipeline_flow_actions.h new file +78 -0
78 lines not on this page · raw message
examples/ip_pipeline/pipeline/pipeline_flow_actions_be.c new file +973 -0
973 lines not on this page · raw message
examples/ip_pipeline/pipeline/pipeline_flow_actions_be.h new file +168 -0
26 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.5.0
Part of the diff is not shown here. View the raw message.
Thomas Monjalon
Applied2015-11-18 17:09, Fan Zhang:
Quoted 29 lines
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic metering/marking(for e.g. Single Rate Three Color Marker (srTCM), Two Rate Three Color Marker trTCM)), policer can be performed separately in flow action pipeline to avoid excessive computational burden on the CPU core running the flow-classification pipeline. The Flow action pipeline implements various function such as traffic metering, policer, stats. Traffic mettering can configured as per the required context, for examples- per user, per traffic class or both. These contexts can be applied by specifying parameters in configuration file as shown below;
[PIPELINE1]
type =FLOW_ACTIONS
core = 1pktq_in= RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0pktq_out= TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0n_flows= 65536n_meters_per_flow= 1flow_id_offset= 158ip_hdr_offset= 142color_offset= 64The entries of flow and dscp tables of flow actions pipeline can be modified through command-line interface. The commands to add or delete entries to the flow table, DSCP(differentiated services code point) table and for statistics collection, etc have been included. The key functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler.
Quoted 3 lines
Signed-off-by Jasvinder Singh <[email protected]>Signed-off-by Fan Zhang <[email protected]>
Applied, thanks
Quoted 30 lines · Thomas Monjalon
2015-11-18 17:09, Fan Zhang:
Quoted 29 lines
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic metering/marking(for e.g. Single Rate Three Color Marker (srTCM), Two Rate Three Color Marker trTCM)), policer can be performed separately in flow action pipeline to avoid excessive computational burden on the CPU core running the flow-classification pipeline. The Flow action pipeline implements various function such as traffic metering, policer, stats. Traffic mettering can configured as per the required context, for examples- per user, per traffic class or both. These contexts can be applied by specifying parameters in configuration file as shown below;
[PIPELINE1]
type =FLOW_ACTIONS
core = 1pktq_in= RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0pktq_out= TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0n_flows= 65536n_meters_per_flow= 1flow_id_offset= 158ip_hdr_offset= 142color_offset= 64The entries of flow and dscp tables of flow actions pipeline can be modified through command-line interface. The commands to add or delete entries to the flow table, DSCP(differentiated services code point) table and for statistics collection, etc have been included. The key functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler.
Quoted 6 lines
Quoted 3 lines
Signed-off-by Jasvinder Singh <[email protected]>Signed-off-by Fan Zhang <[email protected]>Applied, thanks
The patch tries to include pipeline_flow_actions.h which doesn't exist, making the ip_pipeline example unbuildable.
Seems like a case of forgotten "git add" when creating the patch...
- Panu -
2015-12-07 10:51, Panu Matilainen:
Quoted 35 lines · Thomas Monjalon
Quoted 34 lines
2015-11-18 17:09, Fan Zhang:
Quoted 32 lines
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic metering/marking(for e.g. Single Rate Three Color Marker (srTCM), Two Rate Three Color Marker trTCM)), policer can be performed separately in flow action pipeline to avoid excessive computational burden on the CPU core running the flow-classification pipeline. The Flow action pipeline implements various function such as traffic metering, policer, stats. Traffic mettering can configured as per the required context, for examples- per user, per traffic class or both. These contexts can be applied by specifying parameters in configuration file as shown below;
[PIPELINE1]
type =FLOW_ACTIONS
core = 1pktq_in= RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0pktq_out= TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0n_flows= 65536n_meters_per_flow= 1flow_id_offset= 158ip_hdr_offset= 142color_offset= 64The entries of flow and dscp tables of flow actions pipeline can be modified through command-line interface. The commands to add or delete entries to the flow table, DSCP(differentiated services code point) table and for statistics collection, etc have been included. The key functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler.
Signed-off-by Jasvinder Singh <[email protected]>Signed-off-by Fan Zhang <[email protected]>
Quoted 7 lines
Quoted 2 lines
Applied, thanks
The patch tries to include
pipeline_flow_actions.hwhich doesn't exist, making theip_pipelineexample unbuildable.Seems like a case of forgotten "git add" when creating the patch...
Yes you are right. My bad.
I had to resolve some conflicts and forgot these "git add". It is fixed now. Thank you for reporting.
Quoted 10 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Monday, December 7, 2015 1:18 AM
To: Zhang, Roy Fan
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH v4]ip_pipeline: add flow actions pipeline2015-11-18 17:09, Fan Zhang:
Quoted 8 lines
Quoted 6 lines
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic
Signed-off-by Jasvinder Singh <[email protected]>Signed-off-by Fan Zhang <[email protected]>Applied, thanks
Hi Thomas,
This patch is not merged in the master. I don't see any source file.
Regards,
Jasvinder
2015-12-07 09:44, Singh, Jasvinder:
Quoted 8 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 7 lines
Quoted 6 lines
Flow actions pipeline is an extension of flow-classification pipeline. Some of the operations of flow classification pipeline such as traffic
Signed-off-by Jasvinder Singh <[email protected]>Signed-off-by Fan Zhang <[email protected]>
Quoted 5 lines
Quoted 1 line
Applied, thanks
Hi Thomas,
This patch is not merged in the master. I don't see any source file.
Sorry for the inconvenience.
I had to resolve some conflicts and forgot to "git add" some files. It is fixed now. Thank you for reporting.