Skip to content

ieee802154: Synchronous Tx API

Miquel Raynal linux-wpan netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 17 repliesIn review
  2. v114 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Adapted with the changes already merged/refused.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14net: ieee802154: Move the logic restarting the queue upon transmissionnet/mac802154/util.c+17 -30 replies
2/14net: mac802154: Create a transmit error helperinclude/net/mac802154.h net/mac802154/util.c+20 -04 replies
3/14net: ieee802154: at86rf230: Call _xmit_error() when a transmission failsdrivers/net/ieee802154/at86rf230.c+1 -20 replies
4/14net: ieee802154: atusb: Call _xmit_error() when a transmission failsdrivers/net/ieee802154/atusb.c+1 -33 replies
5/14net: ieee802154: ca8210: Call _xmit_error() when a transmission failsdrivers/net/ieee802154/ca8210.c+5 -20 replies
6/14net: mac802154: Stop exporting ieee802154_wake/stop_queue()include/net/mac802154.h net/mac802154/ieee802154_i.h net/mac802154/util.c+24 -290 replies
7/14net: mac802154: Rename the synchronous xmit workernet/mac802154/ieee802154_i.h net/mac802154/main.c net/mac802154/tx.c+3 -30 replies
8/14net: mac802154: Rename the main tx_work structnet/mac802154/ieee802154_i.h net/mac802154/main.c net/mac802154/tx.c+8 -50 replies
9/14net: mac802154: Follow the count of ongoing transmissionsinclude/net/cfg802154.h net/mac802154/tx.c net/mac802154/util.c+7 -00 replies
10/14net: mac802154: Hold the transmit queue when relevantinclude/net/cfg802154.h net/mac802154/cfg.c net/mac802154/ieee802154_i.h +2 more+21 -50 replies
11/14net: mac802154: Create a hot tx pathnet/mac802154/tx.c+8 -20 replies
12/14net: mac802154: Add a warning in the hot pathnet/mac802154/tx.c+2 -00 replies
13/14net: mac802154: Introduce a tx queue flushing mechanisminclude/net/cfg802154.h net/ieee802154/core.c net/mac802154/cfg.c +3 more+17 -57 replies
14/14net: mac802154: Introduce a synchronous API for MLME commandsnet/mac802154/ieee802154_i.h net/mac802154/tx.c+7 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH wpan-next v2 00/14] ieee802154: Synchronous Tx API

The idea here is to provide a fully synchronous Tx API and also be able to be sure that a transfer as finished. This will be used later by another series.

The first patches create an error helper and then use it in order to have only two "end of transmission" helpers that are always called.

Then, a bit of cleanup regarding the naming and the locations of certain peaces of code is done.

Finally, we create a hot and a slow path, add the necessary logic to be able to track ongoing transfers and when the queue must be kept on hold, until we finally create a helper to stop emitting after the last transfer, which we then use to create a synchronous MLME API.

Changes in v2:
* Adapted with the changes already merged/refused.

Miquel Raynal (14):
net: ieee802154: Move the logic restarting the queue upon transmission
net: mac802154: Create a transmit error helper
net: ieee802154: at86rf230: Call _xmit_error() when a transmission
fails
net: ieee802154: atusb: Call _xmit_error() when a transmission fails
net: ieee802154: ca8210: Call _xmit_error() when a transmission fails
net: mac802154: Stop exporting ieee802154_wake/stop_queue()
net: mac802154: Rename the synchronous xmit worker
net: mac802154: Rename the main tx_work struct
net: mac802154: Follow the count of ongoing transmissions
net: mac802154: Hold the transmit queue when relevant
net: mac802154: Create a hot tx path
net: mac802154: Add a warning in the hot path
net: mac802154: Introduce a tx queue flushing mechanism
net: mac802154: Introduce a synchronous API for MLME commands

 drivers/net/ieee802154/at86rf230.c |  3 +-
 drivers/net/ieee802154/atusb.c     |  4 +--
 drivers/net/ieee802154/ca8210.c    |  7 +++--
 include/net/cfg802154.h            |  5 ++++
 include/net/mac802154.h            | 37 +++++++----------------
 net/ieee802154/core.c              |  1 +
 net/mac802154/cfg.c                |  5 ++--
 net/mac802154/ieee802154_i.h       | 35 ++++++++++++++++++++--
 net/mac802154/main.c               |  2 +-
 net/mac802154/tx.c                 | 48 +++++++++++++++++++++++++-----
 net/mac802154/util.c               | 39 ++++++++++++++++++++----
 11 files changed, 134 insertions(+), 52 deletions(-)
Signature · 1 line
2.27.0