]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d6f28addd009c2f9fcd3a4330411b65b8d1aefe
tree9cd09f050073f0b5ecb27a9218db3e7351f8fbba
parentcc34da09ac8c83e581fe8377e8f8c17375d2895f
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