net: mac802154: Rename the synchronous xmit worker
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 May 2022 15:05:06 +0000 (17:05 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 10 Jun 2022 07:48:40 +0000 (09:48 +0200)
There are currently two driver hooks: one is synchronous, the other is
not. We cannot rely on driver implementations to provide a synchronous
API (which is related to the bus medium more than a wish to have a
synchronized implementation) so we are going to introduce a sync API
above any kind of driver transmit function. In order to clarify what
this worker is for (synchronous driver implementation), let's rename it
so that people don't get bothered by the fact that their driver does not
make use of the "xmit worker" which is a too generic name.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220519150516.443078-2-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/mac802154/ieee802154_i.h
net/mac802154/main.c
net/mac802154/tx.c

index 1381e6a5e1800b5b20ff5b42aec420e8c4336118..d7632c6d225f10907bc0a9fc12ecf1bae22888d4 100644 (file)
@@ -123,7 +123,7 @@ ieee802154_sdata_running(struct ieee802154_sub_if_data *sdata)
 extern struct ieee802154_mlme_ops mac802154_mlme_wpan;
 
 void ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb);
-void ieee802154_xmit_worker(struct work_struct *work);
+void ieee802154_xmit_sync_worker(struct work_struct *work);
 netdev_tx_t
 ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev);
 netdev_tx_t
index bd7bdb1219dd8ec41c92949f9da614c9640ac5fd..392771bba9dd72e28bf2ef9b2f5897933c848a22 100644 (file)
@@ -95,7 +95,7 @@ ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops)
 
        skb_queue_head_init(&local->skb_queue);
 
-       INIT_WORK(&local->tx_work, ieee802154_xmit_worker);
+       INIT_WORK(&local->tx_work, ieee802154_xmit_sync_worker);
 
        /* init supported flags with 802.15.4 default ranges */
        phy->supported.max_minbe = 8;
index c829e4a7532564d401c0d2d1f90f56c2fe030b2c..97df5985b83079d056feca689016695d4a53f340 100644 (file)
@@ -22,7 +22,7 @@
 #include "ieee802154_i.h"
 #include "driver-ops.h"
 
-void ieee802154_xmit_worker(struct work_struct *work)
+void ieee802154_xmit_sync_worker(struct work_struct *work)
 {
        struct ieee802154_local *local =
                container_of(work, struct ieee802154_local, tx_work);