Stefan Schmidt says:
==================== pull-request: ieee802154-next 2022-05-01 Miquel Raynal landed two patch series bundled in this pull request. The first series re-works the symbol duration handling to better accommodate the needs of the various phy layers in ieee802154. In the second series Miquel improves th errors handling from drivers up mac802154. THis streamlines the error handling throughout the ieee/mac802154 stack in preparation for sync TX to be introduced for MLME frames. ==================== Link: https://lore.kernel.org/r/20220501194614.1198325-1-stefan@datenfreihafen.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -203,8 +203,8 @@ struct wpan_phy {
|
||||
|
||||
/* PHY depended MAC PIB values */
|
||||
|
||||
/* 802.15.4 acronym: Tdsym in usec */
|
||||
u8 symbol_duration;
|
||||
/* 802.15.4 acronym: Tdsym in nsec */
|
||||
u32 symbol_duration;
|
||||
/* lifs and sifs periods timing */
|
||||
u16 lifs_period;
|
||||
u16 sifs_period;
|
||||
@@ -415,4 +415,6 @@ static inline const char *wpan_phy_name(struct wpan_phy *phy)
|
||||
return dev_name(&phy->dev);
|
||||
}
|
||||
|
||||
void ieee802154_configure_durations(struct wpan_phy *phy);
|
||||
|
||||
#endif /* __NET_CFG802154_H */
|
||||
|
||||
@@ -498,4 +498,23 @@ void ieee802154_stop_queue(struct ieee802154_hw *hw);
|
||||
void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb,
|
||||
bool ifs_handling);
|
||||
|
||||
/**
|
||||
* ieee802154_xmit_error - offloaded frame transmission failed
|
||||
*
|
||||
* @hw: pointer as obtained from ieee802154_alloc_hw().
|
||||
* @skb: buffer for transmission
|
||||
* @reason: error code
|
||||
*/
|
||||
void ieee802154_xmit_error(struct ieee802154_hw *hw, struct sk_buff *skb,
|
||||
int reason);
|
||||
|
||||
/**
|
||||
* ieee802154_xmit_hw_error - frame could not be offloaded to the transmitter
|
||||
* because of a hardware error (bus error, timeout, etc)
|
||||
*
|
||||
* @hw: pointer as obtained from ieee802154_alloc_hw().
|
||||
* @skb: buffer for transmission
|
||||
*/
|
||||
void ieee802154_xmit_hw_error(struct ieee802154_hw *hw, struct sk_buff *skb);
|
||||
|
||||
#endif /* NET_MAC802154_H */
|
||||
|
||||
Reference in New Issue
Block a user