[dpdk-dev] l3fwd increasing LPM IPv4 Table Size

Jun Han junhanece at gmail.com
Mon Feb 24 21:01:55 CET 2014


Hi all,

I have been trying to add more IPv4 table entries by appending random
entries in the ipv4_l3fwd_route_array as the following:

*static struct ipv4_l3fwd_route ipv4_l3fwd_route_array[] = { *
*{IPv4(1,0,0,0), 24, 0}, *
*{IPv4(1,0,4,0), 22, 0}, *
*{IPv4(1,0,4,0), 24, 0}, *
*{IPv4(1,0,5,0), 24, 0}, *
*{IPv4(1,0,6,0), 24, 0}, *
*{IPv4(1,0,7,0), 24, 0}, *
*...*

I added upto 2M entries, but the while executing L3FWD code as the
following, I get the error as shown below:

>> sudo ./build/l3fwd -c 0xffff -n 4 -- -p 0xfff -P
--config="(0,0,1),(1,0,2),(2,0,3),(3,0,4),(4,0,8),(5,0,9),(6,0,10),(7,0,11),(8,0,12),(9,0,13),(10,0,14),(11,0,15)"
*...*

*LPM: Adding route 0x42af0000 / 18 (0)*
*LPM: Adding route 0x42af4000 / 19 (0)*
*LPM: Adding route 0x42af4d00 / 24 (0)*
*LPM: Adding route 0x42af6000 / 19 (0)*
*LPM: Adding route 0x42af6300 / 24 (0)*
*EAL: Error - exiting with code: 1*
*  Cause: Unable to add entry 80105 to the l3fwd LPM table on socket 0*

I am guessing that the problem could be because of
IPV4_L3FWD_LPM_MAX_RULES, so I tried increasing this arbitrarily to a very
big value but this does not solve the problem.

Has anyone experienced something similar before?

Thank you in advance.

Jun


More information about the dev mailing list