]> git.openfabrics.org - ~emulex/for-vlad/compat-rdma.git/commitdiff
ib/core: Fixed backport
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 5 Jan 2015 17:49:25 +0000 (19:49 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 5 Jan 2015 17:49:25 +0000 (19:49 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
patches/0011-BACKPORT-ib-core-for-kernels-under-3.10.patch

index c6a2faaca758fce51b7407138f93964235b7e508..a24295e5f1831e8b9fa77afd03aa1d24533ccbcf 100644 (file)
@@ -419,12 +419,12 @@ index xxxxxxx..xxxxxxx xxxxxx
                                };
 +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) */
 +
-+#ifndef HAVE_NETLINK_DUMP_START_6P
-                               return netlink_dump_start(nls, skb, nlh, &c);
-+#else
++#if defined(HAVE_NETLINK_DUMP_START_6P) || defined(HAVE_NETLINK_DUMP_START_5P)
 +                              return netlink_dump_start(nls, skb, nlh,
 +                                                        client->cb_table[op].dump,
 +                                                        NULL, 0);
++#else
+                               return netlink_dump_start(nls, skb, nlh, &c);
 +#endif
                        }
                }