cb94a679b7
Increase the number of routes from 8 to 16 that are statically added for lpm and em mode as most of the SoCs support more than 8 interfaces. The number of routes added is equal to the number of ethernet devices ports enabled through port mask. Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Reviewed-by: Conor Walsh <conor.walsh@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
20 lines
375 B
C
20 lines
375 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2021 Intel Corporation
|
|
*/
|
|
|
|
struct ipv4_l3fwd_route {
|
|
uint32_t ip;
|
|
uint8_t depth;
|
|
uint8_t if_out;
|
|
};
|
|
|
|
struct ipv6_l3fwd_route {
|
|
uint8_t ip[16];
|
|
uint8_t depth;
|
|
uint8_t if_out;
|
|
};
|
|
|
|
extern const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[16];
|
|
|
|
extern const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[16];
|