Re: [RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-24 Thread Eric Blake
On 4/23/20 6:16 PM, Philippe Mathieu-Daudé wrote: When a frame lenght is incorrect, set the RDES0 'Error Summary' length (here, and in the subject) and 'Frame too long' bits. Then stop the receive process and trigger an abnormal interrupt. See [4.3.5 Receive Process]. -- Eric Blake, Princi

Re: [RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-24 Thread Helge Deller
On 24.04.20 04:16, Jason Wang wrote: > > On 2020/4/24 上午7:16, Philippe Mathieu-Daudé wrote: >> When a frame lenght is incorrect, set the RDES0 'Error Summary' >> and 'Frame too long' bits. Then stop the receive process and >> trigger an abnormal interrupt. See [4.3.5 Receive Process]. >> >> Cc: Li

Re: [RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-23 Thread Jason Wang
On 2020/4/24 上午7:16, Philippe Mathieu-Daudé wrote: When a frame lenght is incorrect, set the RDES0 'Error Summary' and 'Frame too long' bits. Then stop the receive process and trigger an abnormal interrupt. See [4.3.5 Receive Process]. Cc: Li Qiang Cc: Li Qiang Cc: Ziming Zhang Cc: Jason Wa

[RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-23 Thread Philippe Mathieu-Daudé
When a frame lenght is incorrect, set the RDES0 'Error Summary' and 'Frame too long' bits. Then stop the receive process and trigger an abnormal interrupt. See [4.3.5 Receive Process]. Cc: Li Qiang Cc: Li Qiang Cc: Ziming Zhang Cc: Jason Wang Cc: Prasad J Pandit Fixes: 8ffb7265af ("check fram