git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/qede: fix few log messages
[dpdk.git]
/
drivers
/
net
/
enic
/
enic.h
diff --git
a/drivers/net/enic/enic.h
b/drivers/net/enic/enic.h
index
c3ed1fa
..
c083985
100644
(file)
--- a/
drivers/net/enic/enic.h
+++ b/
drivers/net/enic/enic.h
@@
-24,13
+24,6
@@
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Poll-mode Driver"
#define DRV_COPYRIGHT "Copyright 2008-2015 Cisco Systems, Inc"
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Poll-mode Driver"
#define DRV_COPYRIGHT "Copyright 2008-2015 Cisco Systems, Inc"
-#define ENIC_WQ_MAX 8
-/* With Rx scatter support, we use two RQs on VIC per RQ used by app. Both
- * RQs use the same CQ.
- */
-#define ENIC_RQ_MAX 16
-#define ENIC_CQ_MAX (ENIC_WQ_MAX + (ENIC_RQ_MAX / 2))
-#define ENIC_INTR_MAX (ENIC_CQ_MAX + 2)
#define ENIC_MAX_MAC_ADDR 64
#define VLAN_ETH_HLEN 18
#define ENIC_MAX_MAC_ADDR 64
#define VLAN_ETH_HLEN 18
@@
-121,17
+114,17
@@
struct enic {
unsigned int flags;
unsigned int priv_flags;
unsigned int flags;
unsigned int priv_flags;
- /* work queue */
- struct vnic_wq
wq[ENIC_WQ_MAX]
;
- unsigned int wq_count;
+ /* work queue
(len = conf_wq_count)
*/
+ struct vnic_wq
*wq
;
+ unsigned int wq_count;
/* equals eth_dev nb_tx_queues */
- /* receive queue */
- struct vnic_rq
rq[ENIC_RQ_MAX]
;
- unsigned int rq_count;
+ /* receive queue
(len = conf_rq_count)
*/
+ struct vnic_rq
*rq
;
+ unsigned int rq_count;
/* equals eth_dev nb_rx_queues */
- /* completion queue */
- struct vnic_cq
cq[ENIC_CQ_MAX]
;
- unsigned int cq_count;
+ /* completion queue
(len = conf_cq_count)
*/
+ struct vnic_cq
*cq
;
+ unsigned int cq_count;
/* equals rq_count + wq_count */
/* interrupt resource */
struct vnic_intr intr;
/* interrupt resource */
struct vnic_intr intr;
@@
-275,6
+268,8
@@
uint16_t enic_dummy_recv_pkts(void *rx_queue,
uint16_t nb_pkts);
uint16_t enic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
uint16_t nb_pkts);
uint16_t nb_pkts);
uint16_t enic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
uint16_t nb_pkts);
+uint16_t enic_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
+ uint16_t nb_pkts);
int enic_set_mtu(struct enic *enic, uint16_t new_mtu);
int enic_link_update(struct enic *enic);
void enic_fdir_info(struct enic *enic);
int enic_set_mtu(struct enic *enic, uint16_t new_mtu);
int enic_link_update(struct enic *enic);
void enic_fdir_info(struct enic *enic);