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

Alex Naslednikov xalex at mellanox.co.il
Wed Dec 1 00:38:56 PST 2010


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/20101201/1cf16298/attachment.html>


More information about the ofw mailing list