diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-08-13 11:00:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-15 06:02:39 +0300 |
commit | ecb9f80db23a7ab09b46b298b404e41dd7aff6e6 (patch) | |
tree | 76dc0c738cd0516686e1acc5cb8881e608f2aa6d /drivers/net/ethernet/marvell/mvpp2/mvpp2.h | |
parent | 03eb57bb897f22ba06025ff628a3447520636572 (diff) | |
download | linux-ecb9f80db23a7ab09b46b298b404e41dd7aff6e6.tar.xz |
net/mvpp2: Replace tasklet with softirq hrtimer
The tx_done_tasklet tasklet is used in invoke the hrtimer
(mvpp2_hr_timer_cb) in softirq context. This can be also achieved without
the tasklet but with HRTIMER_MODE_SOFT as hrtimer mode.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2.h')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h index 4d9564ba68f6..ee3bab508ee8 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h @@ -829,9 +829,8 @@ struct mvpp2_pcpu_stats { /* Per-CPU port control */ struct mvpp2_port_pcpu { struct hrtimer tx_done_timer; + struct net_device *dev; bool timer_scheduled; - /* Tasklet for egress finalization */ - struct tasklet_struct tx_done_tasklet; }; struct mvpp2_queue_vector { |