OSDN Git Service

net: cadence_gem: clear RX control descriptor
authorRamon Fried <rfried.dev@gmail.com>
Sat, 18 Apr 2020 08:51:45 +0000 (11:51 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Apr 2020 14:35:41 +0000 (15:35 +0100)
commit59ab136a9e24f989cb7922d9cf7d1774fc497a78
tree5f629633bce0c5fb7875e0885e6add212fc0cbb1
parentf1e7cb1388e46eac8285854af2abdfde41ffa226
net: cadence_gem: clear RX control descriptor

The RX ring descriptors control field is used for setting
SOF and EOF (start of frame and end of frame).
The SOF and EOF weren't cleared from the previous descriptors,
causing inconsistencies in ring buffer.
Fix that by clearing the control field of every descriptors we're
processing.

Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20200418085145.489726-1-rfried.dev@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/cadence_gem.c