diff options
author | Ricardo Ribalda <ricardo.ribalda@gmail.com> | 2013-10-01 08:17:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-13 18:14:26 -0700 |
commit | eeb6df7a3b949813f257680802fda8dd4a3996ab (patch) | |
tree | 7af3716e0d70b900cd440d1042a5cb4ca3ac63bb /net | |
parent | 6b13db47f96a5ec8705ea90fc209256f227ec1b1 (diff) |
ll_temac: Reset dma descriptors indexes on ndo_open
[ Upstream commit 7167cf0e8cd10287b7912b9ffcccd9616f382922 ]
The dma descriptors indexes are only initialized on the probe function.
If a packet is on the buffer when temac_stop is called, the dma
descriptors indexes can be left on a incorrect state where no other
package can be sent.
So an interface could be left in an usable state after ifdow/ifup.
This patch makes sure that the descriptors indexes are in a proper
status when the device is open.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions