* [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL
@ 2015-01-28 10:31 Helmut Schaa
2015-01-28 11:07 ` Kalle Valo
2015-02-04 7:19 ` Kalle Valo
0 siblings, 2 replies; 4+ messages in thread
From: Helmut Schaa @ 2015-01-28 10:31 UTC (permalink / raw)
To: ath10k; +Cc: Kalle Valo, Michal Kazior, Helmut Schaa
Otherwise ath10k will just checksum everything even if it did not
go through the TCP/IP stack (for example bridged frames). In the worst
case this could mean recreating the checksum for incorrect data.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---
drivers/net/wireless/ath/ath10k/htt_tx.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c
index a1bda41..e142502 100644
--- a/drivers/net/wireless/ath/ath10k/htt_tx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_tx.c
@@ -534,8 +534,10 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)
flags1 |= SM((u16)vdev_id, HTT_DATA_TX_DESC_FLAGS1_VDEV_ID);
flags1 |= SM((u16)tid, HTT_DATA_TX_DESC_FLAGS1_EXT_TID);
- flags1 |= HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD;
- flags1 |= HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD;
+ if (msdu->ip_summed == CHECKSUM_PARTIAL) {
+ flags1 |= HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD;
+ flags1 |= HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD;
+ }
/* Prevent firmware from sending up tx inspection requests. There's
* nothing ath10k can do with frames requested for inspection so force
--
1.8.4.5
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL
2015-01-28 10:31 [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL Helmut Schaa
@ 2015-01-28 11:07 ` Kalle Valo
2015-01-28 11:52 ` Helmut Schaa
2015-02-04 7:19 ` Kalle Valo
1 sibling, 1 reply; 4+ messages in thread
From: Kalle Valo @ 2015-01-28 11:07 UTC (permalink / raw)
To: Helmut Schaa; +Cc: Michal Kazior, ath10k
Helmut Schaa <helmut.schaa@googlemail.com> writes:
> Otherwise ath10k will just checksum everything even if it did not
> go through the TCP/IP stack (for example bridged frames). In the worst
> case this could mean recreating the checksum for incorrect data.
>
> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
In the future, please also CC linux-wireless. We get good review
comments that way.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL
2015-01-28 11:07 ` Kalle Valo
@ 2015-01-28 11:52 ` Helmut Schaa
0 siblings, 0 replies; 4+ messages in thread
From: Helmut Schaa @ 2015-01-28 11:52 UTC (permalink / raw)
To: Kalle Valo; +Cc: Michal Kazior, ath10k
On Wed, Jan 28, 2015 at 12:07 PM, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
> Helmut Schaa <helmut.schaa@googlemail.com> writes:
>
>> Otherwise ath10k will just checksum everything even if it did not
>> go through the TCP/IP stack (for example bridged frames). In the worst
>> case this could mean recreating the checksum for incorrect data.
>>
>> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
>
> In the future, please also CC linux-wireless. We get good review
> comments that way.
Ok, will do next time :)
Helmut
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL
2015-01-28 10:31 [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL Helmut Schaa
2015-01-28 11:07 ` Kalle Valo
@ 2015-02-04 7:19 ` Kalle Valo
1 sibling, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2015-02-04 7:19 UTC (permalink / raw)
To: Helmut Schaa; +Cc: linux-wireless, Michal Kazior, ath10k
Helmut Schaa <helmut.schaa@googlemail.com> writes:
> Otherwise ath10k will just checksum everything even if it did not
> go through the TCP/IP stack (for example bridged frames). In the worst
> case this could mean recreating the checksum for incorrect data.
>
> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Thanks, applied to ath.git.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-04 7:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 10:31 [PATCH] ath10k: Use TX cksum offload only for CHECKSUM_PARTIAL Helmut Schaa
2015-01-28 11:07 ` Kalle Valo
2015-01-28 11:52 ` Helmut Schaa
2015-02-04 7:19 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox