lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <392fb48f0907120242r438411ccm5507998c3fcad877@mail.gmail.com>
Date:	Sun, 12 Jul 2009 18:42:32 +0900
From:	Mike McCormack <mikem@...g3k.org>
To:	netdev@...r.kernel.org,
	Stephen Hemminger <shemminger@...ux-foundation.org>
Subject: [PATCH] sky2: Kick the transmit watchdog timer on transmit

Hi Stephen,

I was curious as to why sky2_tx_timeout() was being called once when
the driver started, and never again (which originally caused the crash
resolved by the previous patch).

I might be missing something, but it looks like we the transmit
watchdog needs to be kicked whenever a packet is transmitted.

This patch has had a small amount of testing, but reviewing other
drivers (e.g. net/atm/lec.c), this appears to be what is done.

thanks,

Mike

---

If we don't kick the watchdog, it always triggers.

Signed-off-by: Mike McCormack <mikem@...g3k.org>
---
 drivers/net/sky2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 77fd1b9..48d58ec 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1708,6 +1708,8 @@ static int sky2_xmit_frame(struct sk_buff *skb,
struct net_device *dev)

 	sky2_put_idx(hw, txqaddr[sky2->port], sky2->tx_prod);

+	dev->trans_start = jiffies;	/* restart tx timeout */
+
 	return NETDEV_TX_OK;

 mapping_unwind:
-- 
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ