diff options
author | Camelia Groza <camelia.groza@nxp.com> | 2017-09-11 09:20:41 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:49 (GMT) |
commit | 3d33284eb087deb7f62639a2d2c03b9d0a3eeb34 (patch) | |
tree | 004433eefe9d243c485dd81fabefe215dbd9fdf3 /net | |
parent | 4f4f8a909a6610abf0844feab011fcedd3a60014 (diff) | |
download | linux-3d33284eb087deb7f62639a2d2c03b9d0a3eeb34.tar.xz |
sdk_dpaa: update the xmit timestamp to avoid watchdog timeouts
[core-linux part]
Update txq0's trans_start in order to prevent the netdev watchdog from
triggering too quickly. Since we set the LLTX flag, the stack won't update
the jiffies for other tx queues. Prevent the watchdog from checking the
other tx queues by adding the NETIF_HW_ACCEL_MQ flag.
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_generic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 6cfb6e9..3fab16c 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -309,6 +309,13 @@ static void dev_watchdog(unsigned long arg) txq->trans_timeout++; break; } + + /* Devices with HW_ACCEL_MQ have multiple txqs + * but update only the first one's transmission + * timestamp so avoid checking the rest. + */ + if (dev->features & NETIF_F_HW_ACCEL_MQ) + break; } if (some_queue_timedout) { |