]> git.openfabrics.org - ~emulex/tmp/compat-rdma/.git/commitdiff
add support to ipoib_fix_features from kernel >= 2.6.39
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 19 Aug 2013 11:15:49 +0000 (14:15 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 19 Aug 2013 11:15:49 +0000 (14:15 +0300)
bug: 2443

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
patches/0018-IPoIB-Backports-for-RHEL6.2-RHEL6.3-and-SLES11-SP2.patch

index e4fbeb24cfb69b4693bbc4a28ffa0f5794fd52b1..9d84c712a64fd15b3b146f60fa16bb05df7f2738 100644 (file)
@@ -80,7 +80,7 @@ index xxxxxxx..xxxxxxx xxxxxx
        return 0;
  }
  
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
  static netdev_features_t ipoib_fix_features(struct net_device *dev, netdev_features_t features)
  {
        struct ipoib_dev_priv *priv = netdev_priv(dev);
@@ -108,7 +108,7 @@ index xxxxxxx..xxxxxxx xxxxxx
        .ndo_open                = ipoib_open,
        .ndo_stop                = ipoib_stop,
        .ndo_change_mtu          = ipoib_change_mtu,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
        .ndo_fix_features        = ipoib_fix_features,
 +#endif
        .ndo_start_xmit          = ipoib_start_xmit,