Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7ccf420 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Francois Romieu
Browse files

[PATCH] r8169: identify the napi version



To tell if driver is configured for NAPI or not, put -NAPI on driver
version. Remove the NAPI printk since the complete version information
is displayed once in the pci probe routine or returned via ethtool.

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
parent 53456f60
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -69,7 +69,13 @@ VERSION 2.2LK <2005/01/25>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/irq.h>


#define RTL8169_VERSION "2.2LK"
#ifdef CONFIG_R8169_NAPI
#define NAPI_SUFFIX	"-NAPI"
#else
#define NAPI_SUFFIX	""
#endif

#define RTL8169_VERSION "2.2LK" NAPI_SUFFIX
#define MODULENAME "r8169"
#define MODULENAME "r8169"
#define PFX MODULENAME ": "
#define PFX MODULENAME ": "


@@ -1367,7 +1373,6 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
#ifdef CONFIG_R8169_NAPI
#ifdef CONFIG_R8169_NAPI
	dev->poll = rtl8169_poll;
	dev->poll = rtl8169_poll;
	dev->weight = R8169_NAPI_WEIGHT;
	dev->weight = R8169_NAPI_WEIGHT;
	printk(KERN_INFO PFX "NAPI enabled\n");
#endif
#endif


#ifdef CONFIG_R8169_VLAN
#ifdef CONFIG_R8169_VLAN