On Sat, 20 Feb 2021 07:52:46 +0000 Joakim Zhang wrote:
quoted
I'm not sure why you recycle and reallocate every buffer. Isn't it enough to
reinitialize the descriptors with the buffers which are already allocated?
As I know, the receive buffer address is not fixed after allocated,
it will recycle and re-allocate in stmmac_rx(), where to handle the
receive buffers.
Not sure what you mean by that. The driver must know the addresses of
the memory it allocated and handed over to the device.
It should be enough to re-initialize the descriptors with the buffers
if it is possible. Could you point me how to do it?