Bug report for MIMXRT1176 lwip driver for enet_qos

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug report for MIMXRT1176 lwip driver for enet_qos

636件の閲覧回数
pnhnkvr
Contributor I

Hi,

I would report a bug in ENET_QOS LWIP driver:

in source file enet_ethernetif_qos.c struct ethernetif is defined as

struct ethernetif
{
ENET_QOS_Type *base;
enet_qos_handle_t handle;
#if !NO_SYS
EventGroupHandle_t enetTransmitAccessEvent;
EventBits_t txFlag;
#endif /* !NO_SYS */
enet_qos_rx_bd_struct_t *rxBuffDescrip;
enet_qos_tx_bd_struct_t *txBuffDescrip;
enet_qos_frame_info_t txDirty[ENET_RXBD_NUM];
rx_buffer_t *rxDataBuff;
tx_buffer_t *txDataBuff;
volatile uint8_t txIdx;
uint32_t rxBufferStartAddr[ENET_RXBD_NUM];
rx_pbuf_wrapper_t RxPbufs[ENET_RXBUFF_NUM];
};

Here the size of txDirty array is defined by ENET_RXBD_NUM instead of ENET_TXBD_NUM.
Obviously this will work as long as the ENET_RXBD_NUM >= ENET_TXBD_NUM (as in all of the examples), but if ENET_RXBD_NUM < ENET_TXBD_NUM, txDirty array will overflow.

-Panu

0 件の賞賛
1 返信

621件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @pnhnkvr 

 

Thank you very much for your input.  You are right.  I will report this issue.

 

Regards

Daniel

0 件の賞賛