ath11k: add HW checksum offload support
PATCH 1/1 ath11k: add HW checksum offload support
- advertise HW checksum offload capabilities to netdev
Signed-off-by Sathishkumar Muruganandam <[email protected]>
--- drivers/net/wireless/ath/ath11k/dp_tx.c | 4 ++++ drivers/net/wireless/ath/ath11k/mac.c | 3 +++ 2 files changed, 7 insertions(+)
drivers/net/wireless/ath/ath11k/dp_tx.c +4 -0
@@ -142,6 +142,10 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,ath11k_dp_encap_nwifi (skb);break ;case HAL_TCL_ENCAP_TYPE_RAW : +/* TODO: for CHECKSUM_PARTIAL case in raw mode, HW checksum offload +* is not applicable, hence manual checksum calculation using +* skb_checksum_help() is needed +*/ case HAL_TCL_ENCAP_TYPE_ETHERNET :case HAL_TCL_ENCAP_TYPE_802_3 :/* TODO: Take care of other encap modes as well */
drivers/net/wireless/ath/ath11k/mac.c +3 -0
@@ -4927,6 +4927,9 @@ static int ath11k_mac_register(struct ath11k *ar)ath11k_reg_init (ar); +/* advertise HW checksum offload capabilities */ + ar->hw->netdev_features =NETIF_F_HW_CSUM ; + ret =ieee80211_register_hw (ar->hw);if (ret) {ath11k_err (ar->ab,"ieee80211 registration failed: %d\n" , ret);
Signature · 7 lines
1.9.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k