mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-28 23:23:40 +00:00
rtl8188eu: Remove CONFIG_TCP_CSUM_OFFLOAD_TX
This configuration option is not selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
fd62ad44a9
commit
6b313fba49
5 changed files with 1 additions and 60 deletions
|
@ -343,18 +343,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag
|
||||||
|
|
||||||
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
|
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
|
||||||
}
|
}
|
||||||
|
} else if ((pxmitframe->frame_tag&0x0f)== MGNT_FRAMETAG) {
|
||||||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
|
|
||||||
/* offset 24 */
|
|
||||||
if ( pattrib->hw_tcp_csum == 1 ) {
|
|
||||||
u8 ip_hdr_offset = 32 + pattrib->hdrlen + pattrib->iv_len + 8;
|
|
||||||
ptxdesc->txdw7 = (1 << 31) | (ip_hdr_offset << 16);
|
|
||||||
DBG_88E("ptxdesc->txdw7 = %08x\n", ptxdesc->txdw7);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else if ((pxmitframe->frame_tag&0x0f)== MGNT_FRAMETAG)
|
|
||||||
{
|
|
||||||
|
|
||||||
/* offset 4 */
|
/* offset 4 */
|
||||||
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x3f);
|
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x3f);
|
||||||
|
|
|
@ -68,11 +68,6 @@
|
||||||
#include <net/cfg80211.h>
|
#include <net/cfg80211.h>
|
||||||
#endif //CONFIG_IOCTL_CFG80211
|
#endif //CONFIG_IOCTL_CFG80211
|
||||||
|
|
||||||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
|
|
||||||
#include <linux/in.h>
|
|
||||||
#include <linux/udp.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <linux/usb.h>
|
#include <linux/usb.h>
|
||||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21))
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21))
|
||||||
#include <linux/usb_ch9.h>
|
#include <linux/usb_ch9.h>
|
||||||
|
|
|
@ -176,9 +176,6 @@ struct pkt_attrib
|
||||||
u8 intel_proxim;
|
u8 intel_proxim;
|
||||||
u8 retry_ctrl;
|
u8 retry_ctrl;
|
||||||
struct sta_info * psta;
|
struct sta_info * psta;
|
||||||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
|
|
||||||
u8 hw_tcp_csum;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WLANHDR_OFFSET 64
|
#define WLANHDR_OFFSET 64
|
||||||
|
|
|
@ -942,11 +942,6 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
||||||
pnetdev->get_stats = rtw_net_get_stats;
|
pnetdev->get_stats = rtw_net_get_stats;
|
||||||
pnetdev->do_ioctl = rtw_ioctl;
|
pnetdev->do_ioctl = rtw_ioctl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
|
|
||||||
pnetdev->features |= NETIF_F_IP_CSUM;
|
|
||||||
#endif
|
|
||||||
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
|
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
|
||||||
#ifdef CONFIG_WIRELESS_EXT
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
|
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
|
||||||
|
|
|
@ -86,41 +86,6 @@ _func_exit_;
|
||||||
|
|
||||||
void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
|
|
||||||
struct sk_buff *skb = (struct sk_buff *)pkt;
|
|
||||||
pattrib->hw_tcp_csum = 0;
|
|
||||||
|
|
||||||
if (skb->ip_summed == CHECKSUM_PARTIAL) {
|
|
||||||
if (skb_shinfo(skb)->nr_frags == 0)
|
|
||||||
{
|
|
||||||
const struct iphdr *ip = ip_hdr(skb);
|
|
||||||
if (ip->protocol == IPPROTO_TCP) {
|
|
||||||
// TCP checksum offload by HW
|
|
||||||
DBG_88E("CHECKSUM_PARTIAL TCP\n");
|
|
||||||
pattrib->hw_tcp_csum = 1;
|
|
||||||
//skb_checksum_help(skb);
|
|
||||||
} else if (ip->protocol == IPPROTO_UDP) {
|
|
||||||
//DBG_88E("CHECKSUM_PARTIAL UDP\n");
|
|
||||||
#if 1
|
|
||||||
skb_checksum_help(skb);
|
|
||||||
#else
|
|
||||||
// Set UDP checksum = 0 to skip checksum check
|
|
||||||
struct udphdr *udp = skb_transport_header(skb);
|
|
||||||
udp->check = 0;
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
DBG_88E("%s-%d TCP CSUM offload Error!!\n", __func__, __LINE__);
|
|
||||||
WARN_ON(1); /* we need a WARN() */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { // IP fragmentation case
|
|
||||||
DBG_88E("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __func__, __LINE__);
|
|
||||||
skb_checksum_help(skb);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32 alloc_sz)
|
int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32 alloc_sz)
|
||||||
|
|
Loading…
Reference in a new issue