comment requirement that rx/tx descriptor counts must be equal due to
shared code... define rx descriptor count in terms of tx align defines MFC after: 3 days
This commit is contained in:
parent
7143dfdc43
commit
efefe913d2
@ -603,8 +603,13 @@ struct rl_stats {
|
||||
uint16_t rl_rx_underruns;
|
||||
};
|
||||
|
||||
#define RL_RX_DESC_CNT 64
|
||||
/*
|
||||
* Rx/Tx descriptor parameters (8139C+ and 8169 only)
|
||||
*
|
||||
* Tx/Rx count must be equal. Shared code like re_dma_map_desc assumes this.
|
||||
*/
|
||||
#define RL_TX_DESC_CNT 64
|
||||
#define RL_RX_DESC_CNT RL_RX_DESC_CNT
|
||||
#define RL_RX_LIST_SZ (RL_RX_DESC_CNT * sizeof(struct rl_desc))
|
||||
#define RL_TX_LIST_SZ (RL_TX_DESC_CNT * sizeof(struct rl_desc))
|
||||
#define RL_RING_ALIGN 256
|
||||
|
Loading…
x
Reference in New Issue
Block a user