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/bnxt: refactor mbuf pointer reset
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
base
/
adapter.h
diff --git
a/drivers/net/cxgbe/base/adapter.h
b/drivers/net/cxgbe/base/adapter.h
index
f9c4cde
..
a5a3313
100644
(file)
--- a/
drivers/net/cxgbe/base/adapter.h
+++ b/
drivers/net/cxgbe/base/adapter.h
@@
-39,9
+39,6
@@
struct port_info {
short int xact_addr_filt; /* index of exact MAC address filter */
u16 viid; /* associated virtual interface id */
short int xact_addr_filt; /* index of exact MAC address filter */
u16 viid; /* associated virtual interface id */
- s8 mdio_addr; /* address of the PHY */
- u8 port_type; /* firmware port type */
- u8 mod_type; /* firmware module type */
u8 port_id; /* physical port ID */
u8 pidx; /* port index for this PF */
u8 tx_chan; /* associated channel */
u8 port_id; /* physical port ID */
u8 pidx; /* port index for this PF */
u8 tx_chan; /* associated channel */
@@
-63,12
+60,6
@@
struct port_info {
u8 vivld;
};
u8 vivld;
};
-/* Enable or disable autonegotiation. If this is set to enable,
- * the forced link modes above are completely ignored.
- */
-#define AUTONEG_DISABLE 0x00
-#define AUTONEG_ENABLE 0x01
-
enum { /* adapter flags */
FULL_INIT_DONE = (1 << 0),
USING_MSI = (1 << 1),
enum { /* adapter flags */
FULL_INIT_DONE = (1 << 0),
USING_MSI = (1 << 1),
@@
-162,6
+153,7
@@
struct sge_eth_rx_stats { /* Ethernet rx queue statistics */
};
struct sge_eth_rxq { /* a SW Ethernet Rx queue */
};
struct sge_eth_rxq { /* a SW Ethernet Rx queue */
+ unsigned int flags; /* flags for state of the queue */
struct sge_rspq rspq;
struct sge_fl fl;
struct sge_eth_rx_stats stats;
struct sge_rspq rspq;
struct sge_fl fl;
struct sge_eth_rx_stats stats;
@@
-199,10
+191,14
@@
struct tx_sw_desc { /* SW state per Tx descriptor */
struct tx_eth_coal_desc coalesce;
};
struct tx_eth_coal_desc coalesce;
};
-enum {
+enum
cxgbe_txq_state
{
EQ_STOPPED = (1 << 0),
};
EQ_STOPPED = (1 << 0),
};
+enum cxgbe_rxq_state {
+ IQ_STOPPED = (1 << 0),
+};
+
struct eth_coalesce {
unsigned char *ptr;
unsigned char type;
struct eth_coalesce {
unsigned char *ptr;
unsigned char type;
@@
-796,7
+792,6
@@
void t4_free_mem(void *addr);
#define t4_os_free(_ptr) t4_free_mem((_ptr))
void t4_os_portmod_changed(const struct adapter *adap, int port_id);
#define t4_os_free(_ptr) t4_free_mem((_ptr))
void t4_os_portmod_changed(const struct adapter *adap, int port_id);
-void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat);
void reclaim_completed_tx(struct sge_txq *q);
void t4_free_sge_resources(struct adapter *adap);
void reclaim_completed_tx(struct sge_txq *q);
void t4_free_sge_resources(struct adapter *adap);
@@
-821,8
+816,8
@@
int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *rspq, bool fwevtq,
int t4_sge_eth_txq_start(struct sge_eth_txq *txq);
int t4_sge_eth_txq_stop(struct sge_eth_txq *txq);
void t4_sge_eth_txq_release(struct adapter *adap, struct sge_eth_txq *txq);
int t4_sge_eth_txq_start(struct sge_eth_txq *txq);
int t4_sge_eth_txq_stop(struct sge_eth_txq *txq);
void t4_sge_eth_txq_release(struct adapter *adap, struct sge_eth_txq *txq);
-int t4_sge_eth_rxq_start(struct adapter *adap, struct sge_
rspq *r
q);
-int t4_sge_eth_rxq_stop(struct adapter *adap, struct sge_
rspq *r
q);
+int t4_sge_eth_rxq_start(struct adapter *adap, struct sge_
eth_rxq *rx
q);
+int t4_sge_eth_rxq_stop(struct adapter *adap, struct sge_
eth_rxq *rx
q);
void t4_sge_eth_rxq_release(struct adapter *adap, struct sge_eth_rxq *rxq);
void t4_sge_eth_clear_queues(struct port_info *pi);
void t4_sge_eth_release_queues(struct port_info *pi);
void t4_sge_eth_rxq_release(struct adapter *adap, struct sge_eth_rxq *rxq);
void t4_sge_eth_clear_queues(struct port_info *pi);
void t4_sge_eth_release_queues(struct port_info *pi);