RE: [PATCH 2/7] devlink: Adding NPAR permanent config parameters

2017-10-19 Thread Yuval Mintz
> >> DEVLINK_ATTR_PERM_CFG_NPAR_BW_RESERVATION_VALID: 1 to use > >> BW_RESERVATION setting, 0 to ignore. > >> > > ... > >> DEVLINK_ATTR_PERM_CFG_NPAR_BW_LIMIT_VALID: 1 to use BW_LIMIT > >> setting, 0 to ignore. > > > > While it probably ties to different fields in your NVM layout why would the > us

Re: [PATCH 2/7] devlink: Adding NPAR permanent config parameters

2017-10-19 Thread Steve Lin
On Thu, Oct 19, 2017 at 6:39 AM, Yuval Mintz wrote: >> DEVLINK_ATTR_PERM_CFG_NPAR_BW_RESERVATION_VALID: 1 to use >> BW_RESERVATION setting, 0 to ignore. >> > ... >> DEVLINK_ATTR_PERM_CFG_NPAR_BW_LIMIT_VALID: 1 to use BW_LIMIT >> setting, 0 to ignore. > > While it probably ties to different fields

RE: [PATCH 2/7] devlink: Adding NPAR permanent config parameters

2017-10-19 Thread Yuval Mintz
> DEVLINK_ATTR_PERM_CFG_NPAR_BW_RESERVATION_VALID: 1 to use > BW_RESERVATION setting, 0 to ignore. > ... > DEVLINK_ATTR_PERM_CFG_NPAR_BW_LIMIT_VALID: 1 to use BW_LIMIT > setting, 0 to ignore. While it probably ties to different fields in your NVM layout why would the user require specific attribu

[PATCH 2/7] devlink: Adding NPAR permanent config parameters

2017-10-17 Thread Steve Lin
Extending DEVLINK_ATTR_PERM_CFG (permanent/NVRAM device configuration) to include NPAR settings: DEVLINK_ATTR_PERM_CFG_NPAR_NUM_PARTITIONS_PER_PORT: Number of NIC Partitions (NPAR) per port. DEVLINK_ATTR_PERM_CFG_NPAR_BW_IN_PERCENT: 1 if BW_RESERVATION and BW_LIMIT is in percent; /0 if BW_RESERVA