提交 47fd5b83 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

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.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0ace2856
...@@ -545,6 +545,7 @@ struct netdev_queue { ...@@ -545,6 +545,7 @@ struct netdev_queue {
* *
* void (*ndo_poll_controller)(struct net_device *dev); * void (*ndo_poll_controller)(struct net_device *dev);
*/ */
#define HAVE_NET_DEVICE_OPS
struct net_device_ops { struct net_device_ops {
int (*ndo_init)(struct net_device *dev); int (*ndo_init)(struct net_device *dev);
void (*ndo_uninit)(struct net_device *dev); void (*ndo_uninit)(struct net_device *dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册