On 09/25/2011 06:08 PM, email@example.com wrote:
Icmp packets with wrong checksum are never dropped since
skb->ip_summed is set to CHECKSUM_UNNECESSARY.
When icmp packets with wrong checksum pass through the octeon
net driver, the not_IP, IP_exc, L4_error hardware indicators
show no error. so the driver sets CHECKSUM_UNNECESSARY on
L4_error only works for TCP/UDP, not for ICMP.
We found the same problem, but have not yet sent the patch to fix it.
This looks fine to me,
Acked-by: David Daney <firstname.lastname@example.org>
I would let davem, Ralf and Greg KH fight over who gets to merge it.
drivers/staging/octeon/ethernet-rx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/octeon/ethernet-rx.c
index 1a7c19a..1747024 100644
@@ -411,7 +411,8 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int
skb->protocol = eth_type_trans(skb, dev);
skb->dev = dev;
- if (unlikely(work->word2.s.not_IP ||
work->word2.s.IP_exc || work->word2.s.L4_error))
+ if (unlikely(work->word2.s.not_IP ||
+ work->word2.s.L4_error ||
skb->ip_summed = CHECKSUM_NONE;
skb->ip_summed = CHECKSUM_UNNECESSARY;