summaryrefslogtreecommitdiff
path: root/examples/load_balancer
diff options
context:
space:
mode:
authorMichal Kobylinski <michalx.kobylinski@intel.com>2016-03-09 17:57:15 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-09 22:57:43 +0100
commitdc81ebbacaeb87d9dab302576ab676564c78557e (patch)
treea85cbdda9fafc2e1862e4754c903156bad48a4b0 /examples/load_balancer
parent995be9512abd00e769d56d92ca100a786056ba53 (diff)
downloaddpdk-draft-windows-dc81ebbacaeb87d9dab302576ab676564c78557e.zip
dpdk-draft-windows-dc81ebbacaeb87d9dab302576ab676564c78557e.tar.gz
dpdk-draft-windows-dc81ebbacaeb87d9dab302576ab676564c78557e.tar.xz
lpm: extend IPv4 next hop field
This patch extend next_hop field from 8-bits to 24-bits in LPM library for IPv4. Added versioning symbols to functions and updated library and applications that have a dependency on LPM library. Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com> Acked-by: David Hunt <david.hunt@intel.com>
Diffstat (limited to 'examples/load_balancer')
-rw-r--r--examples/load_balancer/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/load_balancer/runtime.c b/examples/load_balancer/runtime.c
index 2b265c2..6944325 100644
--- a/examples/load_balancer/runtime.c
+++ b/examples/load_balancer/runtime.c
@@ -525,7 +525,7 @@ app_lcore_worker(
struct rte_mbuf *pkt;
struct ipv4_hdr *ipv4_hdr;
uint32_t ipv4_dst, pos;
- uint8_t port;
+ uint32_t port;
if (likely(j < bsz_rd - 1)) {
APP_WORKER_PREFETCH1(rte_pktmbuf_mtod(lp->mbuf_in.array[j+1], unsigned char *));