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: add rte prefix to IP structure
[dpdk.git]
/
examples
/
load_balancer
/
runtime.c
diff --git
a/examples/load_balancer/runtime.c
b/examples/load_balancer/runtime.c
index
39a846a
..
f0aad15
100644
(file)
--- a/
examples/load_balancer/runtime.c
+++ b/
examples/load_balancer/runtime.c
@@
-495,7
+495,7
@@
app_lcore_worker(
for (j = 0; j < bsz_rd; j ++) {
struct rte_mbuf *pkt;
for (j = 0; j < bsz_rd; j ++) {
struct rte_mbuf *pkt;
- struct ipv4_hdr *ipv4_hdr;
+ struct
rte_
ipv4_hdr *ipv4_hdr;
uint32_t ipv4_dst, pos;
uint32_t port;
uint32_t ipv4_dst, pos;
uint32_t port;
@@
-507,9
+507,9
@@
app_lcore_worker(
}
pkt = lp->mbuf_in.array[j];
}
pkt = lp->mbuf_in.array[j];
- ipv4_hdr = rte_pktmbuf_mtod_offset(
pkt,
-
struct
ipv4_hdr *,
-
sizeof(struct
ether_hdr));
+ ipv4_hdr = rte_pktmbuf_mtod_offset(
+
pkt, struct rte_
ipv4_hdr *,
+
sizeof(struct rte_
ether_hdr));
ipv4_dst = rte_be_to_cpu_32(ipv4_hdr->dst_addr);
if (unlikely(rte_lpm_lookup(lp->lpm_table, ipv4_dst, &port) != 0)) {
ipv4_dst = rte_be_to_cpu_32(ipv4_hdr->dst_addr);
if (unlikely(rte_lpm_lookup(lp->lpm_table, ipv4_dst, &port) != 0)) {