summaryrefslogtreecommitdiff
path: root/examples/l3fwd-vf
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/l3fwd-vf
parent995be9512abd00e769d56d92ca100a786056ba53 (diff)
downloaddpdk-dc81ebbacaeb87d9dab302576ab676564c78557e.zip
dpdk-dc81ebbacaeb87d9dab302576ab676564c78557e.tar.gz
dpdk-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/l3fwd-vf')
-rw-r--r--examples/l3fwd-vf/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l3fwd-vf/main.c b/examples/l3fwd-vf/main.c
index 01f610e..193c3ab 100644
--- a/examples/l3fwd-vf/main.c
+++ b/examples/l3fwd-vf/main.c
@@ -440,7 +440,7 @@ get_dst_port(struct ipv4_hdr *ipv4_hdr, uint8_t portid, lookup_struct_t * l3fwd
static inline uint8_t
get_dst_port(struct ipv4_hdr *ipv4_hdr, uint8_t portid, lookup_struct_t * l3fwd_lookup_struct)
{
- uint8_t next_hop;
+ uint32_t next_hop;
return (uint8_t) ((rte_lpm_lookup(l3fwd_lookup_struct,
rte_be_to_cpu_32(ipv4_hdr->dst_addr), &next_hop) == 0)?