wil6210: Add scatter gather support
PATCH 2/3 wil6210: Add scatter gather support
From: Erez Kirshenbaum <erezk@wilocitycom>
Add scatter gather support in TX flow, each SKB may provide multiple fragments to be handled by more then one DMA descriptor. tx_complete is able to release multiple descriptors by checking the DU bit of the sent descriptors till the last descriptor "done" (with DU bit set).
Signed-off-by Erez Kirshenbaum <erezk@wilocitycom>
Signed-off-by Wilocity Git <[email protected]>
--- drivers/net/wireless/ath/wil6210/netdev.c | 4 +- drivers/net/wireless/ath/wil6210/txrx.c | 206 ++++++++++++++++++------------ 2 files changed, 129 insertions(+), 81 deletions(-)
drivers/net/wireless/ath/wil6210/netdev.c +2 -2
@@ -100,8 +100,8 @@ void *wil_if_alloc(struct device *dev, void __iomem *csr) ndev->netdev_ops = &wil_netdev_ops; ndev->ieee80211_ptr = wdev; - ndev->hw_features =NETIF_F_HW_CSUM |NETIF_F_RXCSUM ; - ndev->features |=NETIF_F_HW_CSUM |NETIF_F_RXCSUM ; + ndev->hw_features =NETIF_F_HW_CSUM |NETIF_F_RXCSUM |NETIF_F_SG ; + ndev->features |=NETIF_F_HW_CSUM |NETIF_F_RXCSUM |NETIF_F_SG ;SET_NETDEV_DEV (ndev,wiphy_dev (wdev->wiphy)); wdev->netdev = ndev;
drivers/net/wireless/ath/wil6210/txrx.c +127 -79
318 lines not on this page · raw message
Signature · 1 line
1.7.11.7