net: cadence_gem: Fix the queue address update during wrap around
commit96ea126a8deef30cc81519fb3cb50bf3d65eb6aa
authorSai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Tue, 12 May 2020 14:54:44 +0000 (12 20:24 +0530)
committerJason Wang <jasowang@redhat.com>
Thu, 18 Jun 2020 13:05:51 +0000 (18 21:05 +0800)
treeef62f933b9b693a553570ddea0c6bbb0a65c06c4
parent6fe7661d3dc16d605e0ef283b5c77b5256125c2a
net: cadence_gem: Fix the queue address update during wrap around

During wrap around and reset, queues are pointing to initial base
address of queue 0, irrespective of what queue we are dealing with.
Fix it by assigning proper base address every time.

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/cadence_gem.c