Fri, Jul 01, 2016 at 05:39:01PM IDT, d...@cumulusnetworks.com wrote: >On 7/1/16 8:04 AM, Jiri Pirko wrote: >> diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h >> b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h >> index 05d5fcc..c2ac037 100644 >> --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h >> +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h >> @@ -74,6 +74,8 @@ >> >> #define MLXSW_SP_CELL_FACTOR 2 /* 2 * cell_size / (IPG + cell_size + >> 1) */ >> >> +#define MLXSW_SP_RIF_MAX 800 > >At most 800 RIFs can be created?
Yes. Do you have use cases that require more than that? If so, how many router interfaces would be required? That would be a good feedback for us. >Why 800? Currently, trying to configure a RIF with an higher index will result in firmware errors. We plan to increase this number in the future (don't expect it to be infinite...). We are currently implementing a new mechanism in the driver that will query these resources from the firmware, so we won't need to hardcode them.