]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: arc_emac: reset txbd_curr and txbd_dirty pointers to zero
authorAlexander Kochetkov <al.kochet@gmail.com>
Tue, 9 Feb 2016 15:20:39 +0000 (18:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:26:30 +0000 (15:26 -0500)
commit99f93a156a2aa9ac1e44f7cb1a197425e6d9879a
tree0203edb151bb461fc9f720007be517ab30b7a020
parentc278c253f3d992c6994d08aa0efb2b6806ca396f
net: arc_emac: reset txbd_curr and txbd_dirty pointers to zero

EMAC reset internal tx ring pointer to zero at statup.
txbd_curr and txbd_dirty can be different from zero.
That cause ethernet transfer hang (no packets transmitted).

In order to reproduce, run on device:
    ifconfig eth0 down
    ifconfig eth0 up

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c