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
maintainers: add Windows exports script
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
l2_forward_real_virtual.rst
diff --git
a/doc/guides/sample_app_ug/l2_forward_real_virtual.rst
b/doc/guides/sample_app_ug/l2_forward_real_virtual.rst
index
2b2d5af
..
bede06e
100644
(file)
--- a/
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
+++ b/
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
@@
-101,7
+101,7
@@
where,
* --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default).
* --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default).
-To run the application in linux
app
environment with 4 lcores, 16 ports and 8 RX queues per lcore and MAC address
+To run the application in linux environment with 4 lcores, 16 ports and 8 RX queues per lcore and MAC address
updating enabled, issue the command:
.. code-block:: console
updating enabled, issue the command:
.. code-block:: console
@@
-367,13
+367,13
@@
Naturally, the number of ports in the portmask must be even, otherwise, the appl
static void
l2fwd_simple_forward(struct rte_mbuf *m, unsigned portid)
{
static void
l2fwd_simple_forward(struct rte_mbuf *m, unsigned portid)
{
- struct ether_hdr *eth;
+ struct
rte_
ether_hdr *eth;
void *tmp;
unsigned dst_port;
dst_port = l2fwd_dst_ports[portid];
void *tmp;
unsigned dst_port;
dst_port = l2fwd_dst_ports[portid];
- eth = rte_pktmbuf_mtod(m, struct ether_hdr *);
+ eth = rte_pktmbuf_mtod(m, struct
rte_
ether_hdr *);
/* 02:00:00:00:00:xx */
/* 02:00:00:00:00:xx */
@@
-383,7
+383,7
@@
Naturally, the number of ports in the portmask must be even, otherwise, the appl
/* src addr */
/* src addr */
- ether_addr_copy(&l2fwd_ports_eth_addr[dst_port], ð->s_addr);
+
rte_
ether_addr_copy(&l2fwd_ports_eth_addr[dst_port], ð->s_addr);
l2fwd_send_packet(m, (uint8_t) dst_port);
}
l2fwd_send_packet(m, (uint8_t) dst_port);
}