Why FIB_TABLE_HASHSZ=2 when CONFIG_IP_ROUTE_MULTIPATH
tingwei liu
tingw.liu at gmail.com
Fri Mar 8 04:14:54 EST 2013
Hi, all
who can tell me why? I think is should be 256 also.
#ifdef CONFIG_IP_ROUTE_MULTIPATH
#define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
#define FIB_TABLE_HASHSZ 2
#else /* CONFIG_IP_ROUTE_MULTIPATH */
#define FIB_RES_NH(res) ((res).fi->fib_nh[0])
#define FIB_TABLE_HASHSZ 256
#endif /* CONFIG_IP_ROUTE_MULTIPATH */
Thanks
More information about the Kernelnewbies
mailing list