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
hash: implement RCU resources reclamation
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
ipv4_multicast.rst
diff --git
a/doc/guides/sample_app_ug/ipv4_multicast.rst
b/doc/guides/sample_app_ug/ipv4_multicast.rst
index
46c9204
..
7c6e8b1
100644
(file)
--- a/
doc/guides/sample_app_ug/ipv4_multicast.rst
+++ b/
doc/guides/sample_app_ug/ipv4_multicast.rst
@@
-50,7
+50,7
@@
The application has a number of command line options:
.. code-block:: console
.. code-block:: console
- ./
build/
ipv4_multicast [EAL options] -- -p PORTMASK [-q NQ]
+ ./
<build_dir>/examples/dpdk-
ipv4_multicast [EAL options] -- -p PORTMASK [-q NQ]
where,
where,
@@
-67,7
+67,7
@@
Typically, to run the IPv4 Multicast sample application, issue the following com
.. code-block:: console
.. code-block:: console
- ./
build/
ipv4_multicast -l 0-3 -n 3 -- -p 0x3 -q 1
+ ./
<build_dir>/examples/dpdk-
ipv4_multicast -l 0-3 -n 3 -- -p 0x3 -q 1
In this command:
In this command:
@@
-155,7
+155,7
@@
if the routing table has any ports assigned to the destination address:
.. code-block:: c
.. code-block:: c
- if (!IS_IPV4_MCAST(dest_addr) ||
+ if (!
RTE_
IS_IPV4_MCAST(dest_addr) ||
(hash = rte_fbk_hash_lookup(mcast_hash, dest_addr)) <= 0 ||
(port_mask = hash & enabled_port_mask) == 0) {
rte_pktmbuf_free(m);
(hash = rte_fbk_hash_lookup(mcast_hash, dest_addr)) <= 0 ||
(port_mask = hash & enabled_port_mask) == 0) {
rte_pktmbuf_free(m);
@@
-229,7
+229,7
@@
The actual packet transmission is done in the mcast_send_pkt() function:
rte_ether_addr_copy(dest_addr, ðdr->d_addr);
rte_ether_addr_copy(&ports_eth_addr[port], ðdr->s_addr);
rte_ether_addr_copy(dest_addr, ðdr->d_addr);
rte_ether_addr_copy(&ports_eth_addr[port], ðdr->s_addr);
- ethdr->ether_type = rte_be_to_cpu_16(RTE_ETHER_TYPE_IP
v
4);
+ ethdr->ether_type = rte_be_to_cpu_16(RTE_ETHER_TYPE_IP
V
4);
/* Put new packet into the output queue */
/* Put new packet into the output queue */