File rhel75.diff of Package ixgbevf216

Index: ixgbevf-2.16.4/src/ixgbevf_main.c
===================================================================
--- ixgbevf-2.16.4.orig/src/ixgbevf_main.c
+++ ixgbevf-2.16.4/src/ixgbevf_main.c
@@ -4191,10 +4191,15 @@ static void ixgbevf_shutdown(struct pci_
 }
 #endif /* USE_REBOOT_NOTIFIER */
 
 #ifdef HAVE_NDO_GET_STATS64
-static struct rtnl_link_stats64 *ixgbevf_get_stats64(struct net_device *netdev,
-						struct rtnl_link_stats64 *stats)
+#if defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,5)
+void
+#else
+static struct rtnl_link_stats64 *
+#endif
+ixgbevf_get_stats64(struct net_device *netdev,
+		    struct rtnl_link_stats64 *stats)
 {
 	struct ixgbevf_adapter *adapter = netdev_priv(netdev);
 	unsigned int start;
 	u64 bytes, packets;
@@ -4225,10 +4230,11 @@ static struct rtnl_link_stats64 *ixgbevf
 		stats->tx_bytes += bytes;
 		stats->tx_packets += packets;
 	}
 	rcu_read_unlock();
-
+#if !defined(RHEL_RELEASE_CODE) || RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,5)
 	return stats;
+#endif
 }
 #else /* HAVE_NDO_GET_STATS64 */
 /**
  * ixgbevf_get_stats - Get System Network Statistics
@@ -4286,9 +4292,13 @@ static const struct net_device_ops ixgbe
 	.ndo_get_stats		= ixgbevf_get_stats,
 #endif
 	.ndo_validate_addr	= eth_validate_addr,
 	.ndo_set_mac_address	= ixgbevf_set_mac,
+#if defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,5)
+	.ndo_change_mtu_rh74	= ixgbevf_change_mtu,
+#else
 	.ndo_change_mtu		= ixgbevf_change_mtu,
+#endif
 #ifdef ETHTOOL_OPS_COMPAT
 	.ndo_do_ioctl		= ixgbevf_ioctl,
 #endif
 	.ndo_tx_timeout		= ixgbevf_tx_timeout,
openSUSE Build Service is sponsored by