In current NTB driver, we add requester IDs for RC and USP dynamically during driver initialization. This overrides the requester IDs pre-configured from config file.
This PR adds NTB driver the capability of awareness of pre-configured requester IDs and avoid overriding them when adding new ones. And, a sysfs file ntb/requester_ids is introduced for adding, deleting and showing requester IDs dynamically at run time.
Besides the feature changes, a minor bug in config_req_id_table() is also fixed.
In current NTB driver, we add requester IDs for RC and USP dynamically during driver initialization. This overrides the requester IDs pre-configured from config file.
This PR adds NTB driver the capability of awareness of pre-configured requester IDs and avoid overriding them when adding new ones. And, a sysfs file ntb/requester_ids is introduced for adding, deleting and showing requester IDs dynamically at run time.
Besides the feature changes, a minor bug in config_req_id_table() is also fixed.