* [PATCH] netdev: add HAVE_NET_DEVICE_OPS
@ 2008-11-24 18:39 Stephen Hemminger
2008-11-25 8:20 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2008-11-24 18:39 UTC (permalink / raw)
To: David Miller; +Cc: netdev
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: Stephen Hemminger <shemminger@vyatta.com>
--- a/include/linux/netdevice.h 2008-11-23 08:49:59.000000000 -0800
+++ b/include/linux/netdevice.h 2008-11-23 08:50:16.000000000 -0800
@@ -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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] netdev: add HAVE_NET_DEVICE_OPS
2008-11-24 18:39 [PATCH] netdev: add HAVE_NET_DEVICE_OPS Stephen Hemminger
@ 2008-11-25 8:20 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-11-25 8:20 UTC (permalink / raw)
To: shemminger; +Cc: netdev
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Mon, 24 Nov 2008 10:39:47 -0800
> 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: Stephen Hemminger <shemminger@vyatta.com>
Makes sense.
Applied, thanks Stephen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-25 8:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 18:39 [PATCH] netdev: add HAVE_NET_DEVICE_OPS Stephen Hemminger
2008-11-25 8:20 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).