git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: increase readability in logs
[dpdk.git]
/
doc
/
guides
/
howto
/
rte_flow.rst
diff --git
a/doc/guides/howto/rte_flow.rst
b/doc/guides/howto/rte_flow.rst
index
3dcda6c
..
27d4f28
100644
(file)
--- a/
doc/guides/howto/rte_flow.rst
+++ b/
doc/guides/howto/rte_flow.rst
@@
-23,7
+23,7
@@
In this example we will create a simple rule that drops packets whose IPv4
destination equals 192.168.3.2. This code is equivalent to the following
testpmd command (wrapped for clarity)::
destination equals 192.168.3.2. This code is equivalent to the following
testpmd command (wrapped for clarity)::
- tpmd> flow create 0 ingress pattern eth / vlan /
+ t
est
pmd> flow create 0 ingress pattern eth / vlan /
ipv4 dst is 192.168.3.2 / end actions drop / end
Code
ipv4 dst is 192.168.3.2 / end actions drop / end
Code
@@
-45,7
+45,7
@@
Code
pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[0].spec = ð
pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[0].spec = ð
- /* set the vlan to pas all packets */
+ /* set the vlan to pas
s
all packets */
pattern[1] = RTE_FLOW_ITEM_TYPE_VLAN;
pattern[1].spec = &vlan;
pattern[1] = RTE_FLOW_ITEM_TYPE_VLAN;
pattern[1].spec = &vlan;
@@
-118,7
+118,7
@@
a mask.
This code is equivalent to the following testpmd command (wrapped for
clarity)::
This code is equivalent to the following testpmd command (wrapped for
clarity)::
- tpmd> flow create 0 ingress pattern eth / vlan /
+ t
est
pmd> flow create 0 ingress pattern eth / vlan /
ipv4 dst spec 192.168.3.0 dst mask 255.255.255.0 /
end actions drop / end
ipv4 dst spec 192.168.3.0 dst mask 255.255.255.0 /
end actions drop / end
@@
-141,7
+141,7
@@
Code
pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[0].spec = ð
pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[0].spec = ð
- /* set the vlan to pas all packets */
+ /* set the vlan to pas
s
all packets */
pattern[1] = RTE_FLOW_ITEM_TYPE_VLAN;
pattern[1].spec = &vlan;
pattern[1] = RTE_FLOW_ITEM_TYPE_VLAN;
pattern[1].spec = &vlan;
@@
-219,7
+219,7
@@
In this example we will create a rule that routes all vlan id 123 to queue 3.
This code is equivalent to the following testpmd command (wrapped for
clarity)::
This code is equivalent to the following testpmd command (wrapped for
clarity)::
- tpmd> flow create 0 ingress pattern eth / vlan vid spec 123 /
+ t
est
pmd> flow create 0 ingress pattern eth / vlan vid spec 123 /
end actions queue index 3 / end
Code
end actions queue index 3 / end
Code