aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/alteon/acenic.h
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2024-07-30 11:33:49 -0700
committerJakub Kicinski <kuba@kernel.org>2024-07-31 18:59:46 -0700
commit20a3bcfe9327e0559a25a9ecd45967fd4f11ff24 (patch)
treeb086f8b67be5dd542f7911612f02c3c17bec333c /drivers/net/ethernet/alteon/acenic.h
parentMerge branch 'mlxsw-core_thermal-small-cleanups' (diff)
downloadlinux-20a3bcfe9327e0559a25a9ecd45967fd4f11ff24.tar.gz
linux-20a3bcfe9327e0559a25a9ecd45967fd4f11ff24.zip
net: alteon: Convert tasklet API to new bottom half workqueue mechanism
Migrate tasklet APIs to the new bottom half workqueue mechanism. It replaces all occurrences of tasklet usage with the appropriate workqueue APIs throughout the alteon driver. This transition ensures compatibility with the latest design and enhances performance. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Link: https://patch.msgid.link/20240730183403.4176544-2-allen.lkml@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/alteon/acenic.h')
-rw-r--r--drivers/net/ethernet/alteon/acenic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/alteon/acenic.h b/drivers/net/ethernet/alteon/acenic.h
index ca5ce0cbbad1..0e45a97b9c9b 100644
--- a/drivers/net/ethernet/alteon/acenic.h
+++ b/drivers/net/ethernet/alteon/acenic.h
@@ -2,7 +2,7 @@
#ifndef _ACENIC_H_
#define _ACENIC_H_
#include <linux/interrupt.h>
-
+#include <linux/workqueue.h>
/*
* Generate TX index update each time, when TX ring is closed.
@@ -667,8 +667,8 @@ struct ace_private
struct rx_desc *rx_mini_ring;
struct rx_desc *rx_return_ring;
- int tasklet_pending, jumbo;
- struct tasklet_struct ace_tasklet;
+ int bh_work_pending, jumbo;
+ struct work_struct ace_bh_work;
struct event *evt_ring;
@@ -776,7 +776,7 @@ static int ace_open(struct net_device *dev);
static netdev_tx_t ace_start_xmit(struct sk_buff *skb,
struct net_device *dev);
static int ace_close(struct net_device *dev);
-static void ace_tasklet(struct tasklet_struct *t);
+static void ace_bh_work(struct work_struct *work);
static void ace_dump_trace(struct ace_private *ap);
static void ace_set_multicast_list(struct net_device *dev);
static int ace_change_mtu(struct net_device *dev, int new_mtu);