Wi6210: Added TSO support
PATCH 3/3 Wi6210: Added TSO support
From: Erez Kirshenbaum <erezk@wilocitycom>
Added TCP offloading support in TX. The 1st descriptor holds the TCP/IP header used as a pattern for all packets. Large send data is assigned to descriptors, each chain has MPDU size. The header descriptor does not have a valid DU value so we ignore it in tx_complete. Due to hardware design the first data descriptor has increased number of descriptors which compensates the header descriptor.
Signed-off-by Erez Kirshenbaum <erezk@wilocitycom>
Signed-off-by Wilocity Git <[email protected]>
--- drivers/net/wireless/ath/wil6210/netdev.c | 3 +- drivers/net/wireless/ath/wil6210/txrx.c | 248 +++++++++++++++++++++++++++-- drivers/net/wireless/ath/wil6210/wil6210.h | 2 +- 3 files changed, 241 insertions(+), 12 deletions(-)
drivers/net/wireless/ath/wil6210/netdev.c +2 -1
@@ -100,7 +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 |NETIF_F_SG ; + ndev->hw_features =NETIF_F_HW_CSUM |NETIF_F_RXCSUM | +NETIF_F_SG |NETIF_F_TSO ; 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 +238 -10
294 lines not on this page · raw message
drivers/net/wireless/ath/wil6210/wil6210.h +1 -1
@@ -35,7 +35,7 @@ static inline u32 WIL_GET_BITS(u32 x, int b0, int b1)#define WIL6210_MEM_SIZE (2*1024*1024UL)#define WIL6210_RX_RING_SIZE (128) -#define WIL6210_TX_RING_SIZE (128) +#define WIL6210_TX_RING_SIZE (512)#define WIL6210_MAX_TX_RINGS (24)/* Hardware definitions begin */
Signature · 1 line
1.7.11.7