Set txbuf_map array size to TX_DESC_COUNT instead of RX_DESC_COUNT.
This commit is contained in:
parent
bc502553a6
commit
e7502187c2
@ -90,7 +90,7 @@ struct dwc_softc {
|
||||
struct dwc_hwdesc *txdesc_ring;
|
||||
bus_addr_t txdesc_ring_paddr;
|
||||
bus_dma_tag_t txbuf_tag;
|
||||
struct dwc_bufmap txbuf_map[RX_DESC_COUNT];
|
||||
struct dwc_bufmap txbuf_map[TX_DESC_COUNT];
|
||||
uint32_t tx_idx_head;
|
||||
uint32_t tx_idx_tail;
|
||||
int txcount;
|
||||
|
Loading…
Reference in New Issue
Block a user