[ofw] [Patch][MLX4_BUS] Fixing a typo bug

Alex Naslednikov xalex at mellanox.co.il
Wed Dec 22 02:04:18 PST 2010


Applied at 3032

From: Alex Naslednikov
Sent: Wednesday, December 01, 2010 10:39 AM
To: ofw at lists.openfabrics.org
Subject: [ofw][Patch][MLX4_BUS] Fixing a typo bug

Fixing a typo bug.
If flag  MLX4_CQE_IPOIB_STATUS_IPV4F is set, we should not check for TCP or UDP checksums
Signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)
Index: hw/mlx4/kernel/bus/ib/cq.c
===================================================================
--- hw/mlx4/kernel/bus/ib/cq.c                (revision 2999)
+++ hw/mlx4/kernel/bus/ib/cq.c             (working copy)
@@ -373,7 +373,7 @@

                // Verify that IP_OK bit is set and the packet is pure IPv4 packet
                if ((status & cpu_to_be32(MLX4_CQE_IPOIB_STATUS_IPV4                        |
-                                                                                                              MLX4_CQE_IPOIB_STATUS_IPV4                             |
+                                                                                                             MLX4_CQE_IPOIB_STATUS_IPV4F                           |
                                                                                                                MLX4_CQE_IPOIB_STATUS_IPV4OPT     |
                                                                                                                MLX4_CQE_IPOIB_STATUS_IPV6                             |
                                                                                                                MLX4_CQE_IPOIB_STATUS_IPOK))         ==

Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20101222/ae5f0780/attachment.html>


More information about the ofw mailing list