net: mac802154: Create an offloaded transmission error helper
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 Apr 2022 10:08:57 +0000 (12:08 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 25 Apr 2022 18:51:12 +0000 (20:51 +0200)
commit30ca44eb2480ede838c7c8c131a7d25589a98f0a
tree9cd09f050073f0b5ecb27a9218db3e7351f8fbba
parent337e2f8681d70c8ab60ea83e33791b57907e1271
net: mac802154: Create an offloaded transmission error helper

So far there is only a helper for successful transmissions, which led
device drivers to implement their own handling in case of
error. Unfortunately, we really need all the drivers to give the hand
back to the core once they are done in order to be able to build a
proper synchronous API. So let's create a _xmit_error() helper and take
this opportunity to fill the new device-global field storing Tx
statuses.

Suggested-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220407100903.1695973-5-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
include/net/mac802154.h
net/mac802154/util.c