Microsemi / switchtec-kernel

A kernel module for the Microsemi PCIe switch
GNU General Public License v2.0
45 stars 31 forks source link

Req id review #90

Closed kelvin-cao closed 4 years ago

kelvin-cao commented 4 years ago

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.

kelvin-cao commented 4 years ago

Updated per the comments. Thanks!