ub: ubcore add data plane ops api.
driver inclusion category: feature bugzilla: NA CVE: NA -------------------------------- Ubcore add data plane ops api, which will finally call hw driver's registered methods. Data plane ops including: - ubcore_post_jfs_wr: The UB Core invokes the UBN driver to perform the POST operation. Input parameter: jfs: JFS pointer to the operation. wr: WR information of the sending operation, including the address, length, flag, and user context. Output parameter: bad_wr: Failed requests are returned. Multiple failed requests can be returned. Return value: The value 0 indicates that the operation is submitted successfully. The value other than 0 indicates that the operation fails to be submitted. - ubcore_post_jfr_wr: Initiate a request for filling the recv buffer in the receive operation. After the receive operation succeeds, the application can poll the JFC to obtain the completion message. You can use the JFC associated with the JFR to store the cqe, or the JFC specified in the wr to store the cqe. Ordering and other flags can be specified. Input parameters: JFR: specifies the JFR for storing commands. wr: specifies the content of a request. Multiple requests can be submitted at a time. Output parameters: bad_wr: Failed requests are returned. Multiple failed requests can be returned. Return Value: The execution result is returned. URMA_SUCCESS indicates that the request is successfully enqueued to the JFR. In other cases, error information is returned. - ubcore_post_jetty_send_wr: Initiate a request for unilateral, bilateral, or atomic operations. After the operation is successful, the application can poll the JFC to obtain the completion message. You can use the JFC associated with the Jetty sending channel to store the CQE or the JFC specified in the wr to store the CQE. Ordering and other flags can be specified. Input parameters: jetty: specifies the Jetty sending channel for storing commands. wr: specifies the content of a request. Multiple requests can be submitted at a time. Output parameters: bad_wr: indicates that a failed request is returned. Multiple failed requests are returned. Return Value: The execution result is returned. URMA_SUCCESS indicates that the request is successfully enqueued to the Jetty sending channel. In other cases, error information is returned. - ubcore_post_jetty_recv_wr: Initiate a request for filling the recv buffer in the receive operation. After the receive operation succeeds, the application can poll the JFC to obtain the completion message. You can use the JFC associated with Jetty to store CQEs or the JFC specified in WR to store CQEs. Ordering and other flags can be specified. Input parameters: jetty: specifies the jetty for storing commands. wr: specifies the content of a request. Multiple requests can be submitted at a time. Output parameters: bad_wr: Failed requests are returned. Multiple failed requests can be returned. Return Value: The execution result is returned. URMA_SUCCESS indicates that the request is successfully enqueued to the Jetty receiving channel. In other cases, error information is returned. - ubcore_poll_jfc: The UB Core invokes the UBN driver to perform the poll JFC operation. Input parameter: jfc: indicates the JFC that performs the operation. cr_cnt: indicates the number of CRs that are expected to be received. Return value: cr: indicates the returned cr. If the value is greater than or equal to 0, it indicates the number of returned crs. If the value is less than 0, the operation fails. Signed-off-by:Guoxin Qian <qianguoxin@huawei.com> Signed-off-by:
Yizhen Fan <fanyizhen@huawei.com>
Loading
Please sign in to comment