* Question: how can i applay IP/TCP/UDP checksum offload H/W Engine to our softmac driver on mac80211 ?
@ 2013-02-07 6:41 기상원 (SW Ki)
2013-02-07 7:55 ` Krishna Chaitanya
0 siblings, 1 reply; 2+ messages in thread
From: 기상원 (SW Ki) @ 2013-02-07 6:41 UTC (permalink / raw)
To: linux-wireless
hello everyone.
i would like to use our hardware TCP/IP Checksum logic on the mac80211 driver.
but, i can see the IP Checksum in Tx skb_buffer on mac80211 tx handler after "g_ieee80211_hw->netdev_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_HW_CSUM;"
you can find the IP checksum value that is 0x26, 0x42.
[ 40.970000] queue_skb: IP protocol: 0x00000008
0xC042382E: 88 01 00 00 00 50 43 21 22 2B 00 01 02 03 04 05 .....PC!"+......
0xC042392E: 00 19 B9 79 2D 7E 90 00 00 00 AA AA 03 00 00 00 ...y-~..........
0xC0423A2E: 08 00 45 00 00 54 00 00 40 00 40 01 [26 42] 0A 00 ..E..T..@.@.&B..
0xC0423B2E: 00 04 0A 00 00 64 08 00 CB C5 CB 02 00 01 F0 33 .....d.........3
0xC0423C2E: 71 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 q...............
0xC0423D2E: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0xC0423E2E: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0xC0423F2E: 00 00 00 00 00 00
how can I remove the IP checksum field calculation by software generation on mac80211 stack?
thanks & best regards
Sangwon, Ki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question: how can i applay IP/TCP/UDP checksum offload H/W Engine to our softmac driver on mac80211 ?
2013-02-07 6:41 Question: how can i applay IP/TCP/UDP checksum offload H/W Engine to our softmac driver on mac80211 ? 기상원 (SW Ki)
@ 2013-02-07 7:55 ` Krishna Chaitanya
0 siblings, 0 replies; 2+ messages in thread
From: Krishna Chaitanya @ 2013-02-07 7:55 UTC (permalink / raw)
To: 기상원 (SW Ki); +Cc: linux-wireless
On Thu, Feb 7, 2013 at 12:11 PM, 기상원 (SW Ki) <oprsystem@telechips.com> wrote:
> hello everyone.
>
> i would like to use our hardware TCP/IP Checksum logic on the mac80211 driver.
> but, i can see the IP Checksum in Tx skb_buffer on mac80211 tx handler after "g_ieee80211_hw->netdev_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_HW_CSUM;"
>
> you can find the IP checksum value that is 0x26, 0x42.
> [ 40.970000] queue_skb: IP protocol: 0x00000008
> 0xC042382E: 88 01 00 00 00 50 43 21 22 2B 00 01 02 03 04 05 .....PC!"+......
> 0xC042392E: 00 19 B9 79 2D 7E 90 00 00 00 AA AA 03 00 00 00 ...y-~..........
> 0xC0423A2E: 08 00 45 00 00 54 00 00 40 00 40 01 [26 42] 0A 00 ..E..T..@.@.&B..
> 0xC0423B2E: 00 04 0A 00 00 64 08 00 CB C5 CB 02 00 01 F0 33 .....d.........3
> 0xC0423C2E: 71 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 q...............
> 0xC0423D2E: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
> 0xC0423E2E: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
> 0xC0423F2E: 00 00 00 00 00 00
>
> how can I remove the IP checksum field calculation by software generation on mac80211 stack?
>
> thanks & best regards
> Sangwon, Ki
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
The TCP/IP checksum is calcualted by linux network stack. It does the
below check and decides to go for checksum or not.
skb->ip_summed= CHECKSUM_UNNECESSARY will disable the checksum
calculation by linux stack.
Your HW can appends its own checksum. Good detailed info on
http://www.mail-archive.com/netdev@vger.kernel.org/msg17044.html
==============
static inline int skb_csum_unnecessary(const struct sk_buff *skb)
{
return skb->ip_summed & CHECKSUM_UNNECESSARY;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-07 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 6:41 Question: how can i applay IP/TCP/UDP checksum offload H/W Engine to our softmac driver on mac80211 ? 기상원 (SW Ki)
2013-02-07 7:55 ` Krishna Chaitanya
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.