Skip to contentSkip to conversation

netdev: add HAVE_NET_DEVICE_OPS

PATCH Applied Stephen Hemminger 2 participants 2 messages Nov 24, 2008 – Nov 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netdev: add HAVE_NET_DEVICE_OPS

As a concession to vendors who have to deal with one source for different kernel versions, add a HAVE_NET_DEVICE_OPS so they don't end up hard coding ifdef against kernel version.

include/linux/netdevice.h +1 -0
@@ -545,6 +545,7 @@ struct netdev_queue {
  *
  * void (*ndo_poll_controller)(struct net_device *dev);
  */
+#define HAVE_NET_DEVICE_OPS
 struct net_device_ops {
 	int			(*ndo_init)(struct net_device *dev);
 	void			(*ndo_uninit)(struct net_device *dev);
maintainer Applied
#1 lore raw

From: Stephen Hemminger <[email protected]>
Date: Mon, 24 Nov 2008 10:39:47 -0800

Quoted 5 lines

As a concession to vendors who have to deal with one source for different kernel versions, add a HAVE_NET_DEVICE_OPS so they don't end up hard coding ifdef against kernel version.

Makes sense.

Applied, thanks Stephen.