net/mlx5: fix VLAN stripping indication
[dpdk.git] / drivers / net / qede / base / ecore_l2.h
1 /*
2  * Copyright (c) 2016 QLogic Corporation.
3  * All rights reserved.
4  * www.qlogic.com
5  *
6  * See LICENSE.qede_pmd for copyright and licensing details.
7  */
8
9 #ifndef __ECORE_L2_H__
10 #define __ECORE_L2_H__
11
12
13 #include "ecore.h"
14 #include "ecore_hw.h"
15 #include "ecore_spq.h"
16 #include "ecore_l2_api.h"
17
18 /**
19  * @brief ecore_sp_eth_tx_queue_update -
20  *
21  * This ramrod updates a TX queue. It is used for setting the active
22  * state of the queue.
23  *
24  * @note Final phase API.
25  *
26  * @param p_hwfn
27  *
28  * @return enum _ecore_status_t
29  */
30 enum _ecore_status_t ecore_sp_eth_tx_queue_update(struct ecore_hwfn *p_hwfn);
31
32 enum _ecore_status_t
33 ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
34                          struct ecore_sp_vport_start_params *p_params);
35
36 /**
37  * @brief - Starts an Rx queue; Should be used where contexts are handled
38  * outside of the ramrod area [specifically iov scenarios]
39  *
40  * @param p_hwfn
41  * @param opaque_fid
42  * @param cid
43  * @param p_params [queue_id, vport_id, stats_id, sb, sb_idx, vf_qid]
44           stats_id is absolute packed in p_params.
45  * @param bd_max_bytes
46  * @param bd_chain_phys_addr
47  * @param cqe_pbl_addr
48  * @param cqe_pbl_size
49  * @param b_use_zone_a_prod - support legacy VF producers
50  *
51  * @return enum _ecore_status_t
52  */
53 enum _ecore_status_t
54 ecore_sp_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
55                               u16 opaque_fid,
56                               u32 cid,
57                               struct ecore_queue_start_common_params *p_params,
58                               u16 bd_max_bytes,
59                               dma_addr_t bd_chain_phys_addr,
60                               dma_addr_t cqe_pbl_addr,
61                               u16 cqe_pbl_size, bool b_use_zone_a_prod);
62
63 /**
64  * @brief - Starts a Tx queue; Should be used where contexts are handled
65  * outside of the ramrod area [specifically iov scenarios]
66  *
67  * @param p_hwfn
68  * @param opaque_fid
69  * @param cid
70  * @param p_params [queue_id, vport_id,stats_id, sb, sb_idx, vf_qid]
71  * @param pbl_addr
72  * @param pbl_size
73  * @param p_pq_params - parameters for choosing the PQ for this Tx queue
74  *
75  * @return enum _ecore_status_t
76  */
77 enum _ecore_status_t
78 ecore_sp_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
79                               u16 opaque_fid,
80                               u32 cid,
81                               struct ecore_queue_start_common_params *p_params,
82                               dma_addr_t pbl_addr,
83                               u16 pbl_size,
84                               union ecore_qm_pq_params *p_pq_params);
85
86 u8 ecore_mcast_bin_from_mac(u8 *mac);
87
88 #endif