Commit 94114a5a authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Remove dead code associated with TCP_CSUM_OFFLOAD_RX

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent bf474281
......@@ -1095,9 +1095,6 @@ struct rtllib_rx_stats {
char cck_adc_pwdb[4];
u16 Seq_Num;
u8 nTotalAggPkt;
#ifdef TCP_CSUM_OFFLOAD_RX
u8 tcp_csum_valid;
#endif
#endif
};
......@@ -1398,9 +1395,6 @@ struct rtllib_rxb {
struct sk_buff *subframes[MAX_SUBFRAME_COUNT];
u8 dst[ETH_ALEN];
u8 src[ETH_ALEN];
#ifdef TCP_CSUM_OFFLOAD_RX
u8 tcp_csum_valid;
#endif
}__attribute__((packed));
typedef union _frameqos {
......
......@@ -846,15 +846,7 @@ void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb** prx
sub_skb->dev = ieee->dev;
sub_skb->dev->stats.rx_packets++;
sub_skb->dev->stats.rx_bytes += sub_skb->len;
#ifdef TCP_CSUM_OFFLOAD_RX
if ( prxb->tcp_csum_valid)
sub_skb->ip_summed = CHECKSUM_UNNECESSARY;
else
sub_skb->ip_summed = CHECKSUM_NONE;
#else
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
#endif
ieee->last_rx_ps_time = jiffies;
netif_rx(sub_skb);
}
......@@ -1581,14 +1573,7 @@ void rtllib_rx_indicate_pkt_legacy(
sub_skb->dev = dev;
sub_skb->dev->stats.rx_packets++;
sub_skb->dev->stats.rx_bytes += sub_skb->len;
#ifdef TCP_CSUM_OFFLOAD_RX
if ( rx_stats->tcp_csum_valid)
sub_skb->ip_summed = CHECKSUM_UNNECESSARY;
else
sub_skb->ip_summed = CHECKSUM_NONE;
#else
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
#endif
netif_rx(sub_skb);
}
}
......@@ -1749,9 +1734,6 @@ int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
if (ieee->pHTInfo->bCurRxReorderEnable == false ||pTS == NULL || bToOtherSTA){
rtllib_rx_indicate_pkt_legacy(ieee, rx_stats, rxb, dst, src);
}else{
#ifdef TCP_CSUM_OFFLOAD_RX
rxb->tcp_csum_valid = rx_stats->tcp_csum_valid;
#endif
RxReorderIndicatePacket(ieee, rxb, pTS, SeqNum);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment