diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-04-09 20:12:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-10 00:35:37 +0300 |
commit | a8373f1a60d0716e25f5c4cd4d6e3909bfdb41bd (patch) | |
tree | 151a992115b3e39a98463e81af367312cbfbf78b /drivers/net/ethernet/amd/xgbe/xgbe-main.c | |
parent | b876382bac0fe2ed1129247c47029799bb4d763a (diff) | |
download | linux-a8373f1a60d0716e25f5c4cd4d6e3909bfdb41bd.tar.xz |
amd-xgbe: Add support for the netdev Tx watchdog
Add support to be able to detect a hung Tx task by adding the netdev
ndo_tx_timeout function callback. Do not set the watchdog_timeo value
so as to use the system default time (currently 5 seconds).
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-main.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-main.c b/drivers/net/ethernet/amd/xgbe/xgbe-main.c index 2e4c22d94a6b..714905384900 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-main.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-main.c @@ -491,6 +491,9 @@ static int xgbe_probe(struct platform_device *pdev) netdev->priv_flags |= IFF_UNICAST_FLT; + /* Use default watchdog timeout */ + netdev->watchdog_timeo = 0; + xgbe_init_rx_coalesce(pdata); xgbe_init_tx_coalesce(pdata); |