[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1376414784.1949.39.camel@joe-AO722>
Date: Tue, 13 Aug 2013 10:26:24 -0700
From: Joe Perches <joe@...ches.com>
To: Julia Lawall <julia.lawall@...6.fr>
Cc: cooldavid@...ldavid.org, netdev@...r.kernel.org
Subject: Re: question about drivers/net/ethernet/jme.{c,h}
On Tue, 2013-08-13 at 18:33 +0200, Julia Lawall wrote:
> I wonder what is the point of the macro NETIF_NAPI_SET?
Today it seems pretty clear it's useless indirection.
It might have been useful sometime before the jme.c
file was first submitted, but now it should be removed.
In the jme.h file on JMicron's website, the driver
still supports linux versions less than 2.6.23 and
uses a form like this:
ftp://driver.jmicron.com.tw/Ethernet/Linux/jmebp-1.0.8.5.tar.bz
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23)
#define NETIF_NAPI_SET(dev, napis, pollfn, q) \
dev->poll = pollfn; \
dev->weight = q;
#else
#define NETIF_NAPI_SET(dev, napis, pollfn, q) \
netif_napi_add(dev, napis, pollfn, q);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists