Skip to contentSkip to conversation

wil6210: Add scatter gather support

PATCH In review [email protected] 1 participant 1 message May 8, 2013 Wilocity WIL6210 wireless driver

lore
Share & tools
lore
#0 lore raw

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).

---
 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
index 4f2a61f..b294729 100644
@@ -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