mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
The devlink core recently gained support for checking whether the driver supports a flash_update parameter, via `supported_flash_update_params`. However, parameters are specified as function arguments. Adding a new parameter still requires modifying the signature of the .flash_update callback in all drivers. Convert the .flash_update function to take a new `struct devlink_flash_update_params` instead. By using this structure, and the `supported_flash_update_params` bit field, a new parameter to flash_update can be added without requiring modification to existing drivers. As before, all parameters except file_name will require driver opt-in. Because file_name is a necessary field to for the flash_update to make sense, no "SUPPORTED" bitflag is provided and it is always considered valid. All future additional parameters will require a new bit in the supported_flash_update_params bitfield. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Cc: Jiri Pirko <jiri@mellanox.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Michael Chan <michael.chan@broadcom.com> Cc: Bin Luo <luobin9@huawei.com> Cc: Saeed Mahameed <saeedm@mellanox.com> Cc: Leon Romanovsky <leon@kernel.org> Cc: Ido Schimmel <idosch@mellanox.com> Cc: Danielle Ratson <danieller@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| abm | ||
| bpf | ||
| crypto | ||
| flower | ||
| nfpcore | ||
| nic | ||
| ccm_mbox.c | ||
| ccm.c | ||
| ccm.h | ||
| devlink_param.c | ||
| Makefile | ||
| nfp_abi.h | ||
| nfp_app_nic.c | ||
| nfp_app.c | ||
| nfp_app.h | ||
| nfp_asm.c | ||
| nfp_asm.h | ||
| nfp_devlink.c | ||
| nfp_hwmon.c | ||
| nfp_main.c | ||
| nfp_main.h | ||
| nfp_net_common.c | ||
| nfp_net_ctrl.c | ||
| nfp_net_ctrl.h | ||
| nfp_net_debugdump.c | ||
| nfp_net_debugfs.c | ||
| nfp_net_ethtool.c | ||
| nfp_net_main.c | ||
| nfp_net_repr.c | ||
| nfp_net_repr.h | ||
| nfp_net_sriov.c | ||
| nfp_net_sriov.h | ||
| nfp_net.h | ||
| nfp_netvf_main.c | ||
| nfp_port.c | ||
| nfp_port.h | ||
| nfp_shared_buf.c | ||