From: Vladimir Sokolovsky Date: Mon, 19 Aug 2013 11:15:49 +0000 (+0300) Subject: add support to ipoib_fix_features from kernel >= 2.6.39 X-Git-Tag: vofed-3.5-x~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9490048651b41246d113e4c8b1cad42f49a73820;p=compat-rdma%2Fcompat-rdma.git add support to ipoib_fix_features from kernel >= 2.6.39 bug: 2443 Signed-off-by: Vladimir Sokolovsky --- diff --git a/patches/0018-IPoIB-Backports-for-RHEL6.2-RHEL6.3-and-SLES11-SP2.patch b/patches/0018-IPoIB-Backports-for-RHEL6.2-RHEL6.3-and-SLES11-SP2.patch index e4fbeb2..9d84c71 100644 --- a/patches/0018-IPoIB-Backports-for-RHEL6.2-RHEL6.3-and-SLES11-SP2.patch +++ b/patches/0018-IPoIB-Backports-for-RHEL6.2-RHEL6.3-and-SLES11-SP2.patch @@ -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,