All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wpan-next v4 00/11] ieee802154: Better Tx error handling
@ 2022-03-18 18:56 Miquel Raynal
  2022-03-18 18:56 ` [PATCH wpan-next v4 01/11] net: ieee802154: Enhance/fix the names of the MLME return codes Miquel Raynal
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Miquel Raynal @ 2022-03-18 18:56 UTC (permalink / raw)
  To: Alexander Aring, Stefan Schmidt, linux-wpan
  Cc: David S. Miller, Jakub Kicinski, netdev, David Girault,
	Romuald Despres, Frederic Blain, Nicolas Schodet,
	Thomas Petazzoni, Miquel Raynal

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. However, while working on this task, it appeared
necessary to first rework the way MLME errors were (not) propagated to
the upper layers. This small series tries to tackle exactly that.

Changes in v4:
* Reverted the at86rf320 patch introducing trac values for debugfs
  purposes as suggested by Alex. Reintroduced some of its content in a
  subsequent patch to filter out offloaded transmission error cases.
* Used IEEE802154_SYSTEM_ERROR as a non specific error code.

Changes in v3:
* Split the series into two parts, this is the "error handling" halve.
* Reworked the error path to not handle the ifs_handling situation
  anymore.
* Enhanced the list of MLME status codes available.
* Improved the error handling by collecting the error codes, somethimes
  by changing device drivers directly to propagate these MLME
  statuses. Then, once in the core, save one global Tx status value so
  that in the case of synchronous transfers we can check the return
  value and eventually error out.
* Prevented the core to stop the device before the end of the last
  transmission to avoid deadlocks by just sync'ing the last Tx
  transfer.

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

Miquel Raynal (11):
  net: ieee802154: Enhance/fix the names of the MLME return codes
  net: ieee802154: Fill the list of MLME return codes
  net: mac802154: Save a global error code on transmissions
  net: mac802154: Create a transmit error helper
  Revert "at86rf230: add debugfs support"
  net: ieee802154: at86rf230: Error out upon failed offloaded
    transmissions
  net: ieee802154: at86rf230: Provide meaningful error codes when
    possible
  net: ieee802154: at86rf230: Call _xmit_error() when a transmission
    fails
  net: ieee802154: atusb: Call _xmit_error() when a transmission fails
  net: ieee802154: ca8210: Use core return codes instead of hardcoding
    them
  net: ieee802154: ca8210: Call _xmit_error() when a transmission fails

 drivers/net/ieee802154/Kconfig     |   7 --
 drivers/net/ieee802154/at86rf230.c | 139 +++++-----------------
 drivers/net/ieee802154/atusb.c     |   5 +-
 drivers/net/ieee802154/ca8210.c    | 182 +++++++++++------------------
 include/linux/ieee802154.h         |  81 +++++++++++--
 include/net/mac802154.h            |  10 ++
 net/mac802154/ieee802154_i.h       |   2 +
 net/mac802154/util.c               |  16 ++-
 8 files changed, 202 insertions(+), 240 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-06  4:25 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 18:56 [PATCH wpan-next v4 00/11] ieee802154: Better Tx error handling Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 01/11] net: ieee802154: Enhance/fix the names of the MLME return codes Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 02/11] net: ieee802154: Fill the list of " Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 03/11] net: mac802154: Save a global error code on transmissions Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 04/11] net: mac802154: Create a transmit error helper Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 05/11] Revert "at86rf230: add debugfs support" Miquel Raynal
2022-03-27 15:36   ` Alexander Aring
2022-03-18 18:56 ` [PATCH wpan-next v4 06/11] net: ieee802154: at86rf230: Error out upon failed offloaded transmissions Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 07/11] net: ieee802154: at86rf230: Provide meaningful error codes when possible Miquel Raynal
2022-03-27 15:46   ` Alexander Aring
2022-03-28 16:28     ` Miquel Raynal
2022-03-29 16:35     ` Miquel Raynal
2022-04-04 12:40       ` Miquel Raynal
2022-04-06  0:05         ` Alexander Aring
2022-03-18 18:56 ` [PATCH wpan-next v4 08/11] net: ieee802154: at86rf230: Call _xmit_error() when a transmission fails Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 09/11] net: ieee802154: atusb: " Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 10/11] net: ieee802154: ca8210: Use core return codes instead of hardcoding them Miquel Raynal
2022-03-18 18:56 ` [PATCH wpan-next v4 11/11] net: ieee802154: ca8210: Call _xmit_error() when a transmission fails Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.