]>
git.proxmox.com Git - ceph.git/blob - ceph/src/dpdk/drivers/net/qede/base/ecore_sp_api.h
2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
9 #ifndef __ECORE_SP_API_H__
10 #define __ECORE_SP_API_H__
12 #include "ecore_status.h"
15 ECORE_SPQ_MODE_BLOCK
, /* Client will poll a designated mem. address */
16 ECORE_SPQ_MODE_CB
, /* Client supplies a callback */
17 ECORE_SPQ_MODE_EBLOCK
, /* ECORE should block until completion */
21 union event_ring_data
;
22 struct eth_slow_path_rx_cqe
;
24 struct ecore_spq_comp_cb
{
25 void (*function
)(struct ecore_hwfn
*,
27 union event_ring_data
*,
34 * @brief ecore_eth_cqe_completion - handles the completion of a
35 * ramrod on the cqe ring
40 * @return enum _ecore_status_t
42 enum _ecore_status_t
ecore_eth_cqe_completion(struct ecore_hwfn
*p_hwfn
,
43 struct eth_slow_path_rx_cqe
*cqe
);