numam-dpdk/examples/ip_pipeline/config/flow.txt
Tomasz Kulasek 93771a569d examples/ip_pipeline: rework flow classification CLI
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 <svlan> <cvlan> port <port ID> id <flow ID>
File line example:
qinq 1 2 port 3 id 0

2. flow add ipv4 bulk
File line format:
ipv4 <sipaddr> <dipaddr> <sport> <dport> <proto> port <port ID> id
<flowID>
File line example:
ipv4 1.2.3.4 10.20.30.40 63 127 6 port 2 id 999

3. flow add ipv6 bulk
File line format:
ipv6 <sipaddr> <dipaddr> <sport> <dport> <proto> port <port ID> id
<flowID>

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2016-06-08 16:45:05 +02:00

18 lines
419 B
Plaintext

#
# p <pipelineid> flow add qinq bulk ./config/flow.txt
#
#qinq 100 200 port 0 id 0
#qinq 101 201 port 1 id 1
#qinq 102 202 port 2 id 2
#qinq 103 203 port 3 id 3
#
# p <pipelineid> flow add ipv4 bulk ./config/flow.txt
#
ipv4 100.0.0.10 200.0.0.10 100 200 6 port 0 id 0
ipv4 100.0.0.11 200.0.0.11 101 201 6 port 1 id 1
ipv4 100.0.0.12 200.0.0.12 102 202 6 port 2 id 2
ipv4 100.0.0.13 200.0.0.13 103 203 6 port 3 id 3