From: David S. Miller Date: Thu, 5 Jul 2018 10:58:36 +0000 (+0900) Subject: Merge branch 'devlink-Add-configuration-parameters-support' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2e41c380d1078a8c3b7707bf595c834817bf9ffc;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'devlink-Add-configuration-parameters-support' Moshe Shemesh says: ==================== Add configuration parameters support Add configuration parameters setting through devlink. Each device registers supported configuration parameters table. Each parameter can be either generic or driver specific. The user can retrieve data on these parameters by "devlink param show" command and can set new value to a parameter by "devlink param set" command. The parameters can be set in different configuration modes: runtime - set while driver is running, no reset required. driverinit - applied while driver initializes, requires restart driver by devlink reload command. permanent - written to device's non-volatile memory, hard reset required. The patches at the end of the patchset introduce few params that are using the introduced infrastructure on mlx4 and bnxt. Command examples and output: pci/0000:81:00.0: name internal_error_reset type generic values: cmode runtime value true cmode driverinit value true name max_macs type generic values: cmode driverinit value 128 name enable_64b_cqe_eqe type driver-specific values: cmode driverinit value true name enable_4k_uar type driver-specific values: cmode driverinit value false pci/0000:81:00.0: name internal_error_reset type generic values: cmode runtime value false cmode driverinit value true ==================== Signed-off-by: David S. Miller --- 2e41c380d1078a8c3b7707bf595c834817bf9ffc