android_kernel_xiaomi_sm8350/drivers/net
Peter P Waskiewicz Jr bc97114d3f ixgbe: Refactor set_num_queues() and cache_ring_register()
The current code to determine the number of queues the device will want
on driver initialization is ugly and difficult to maintain.  It also
doesn't allow for easy expansion for future features or future hardware.
This patch refactors these routines, and make them easier to deal with.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-02-05 23:53:59 -08:00
..
appletalk appletalk: convert ipddp to net_device_ops 2009-01-07 17:22:19 -08:00
arcnet net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
arm Merge branch 'master' of /home/davem/src/GIT/linux-2.6/ 2009-02-04 16:51:58 -08:00
atl1e net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
atlx drivers/net/atlx: fix sparse warnings: make symbols static 2008-12-25 23:58:35 -08:00
bonding net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
can
chelsio net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
cris
cxgb3 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-04 16:52:41 -08:00
e1000 Merge branch 'master' of /home/davem/src/GIT/linux-2.6/ 2009-02-04 16:51:58 -08:00
e1000e net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
ehea net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
enic net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
fs_enet net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
hamradio net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
ibm_newemac net: variables reach -1, but 0 tested 2009-02-02 21:39:02 -08:00
igb Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
irda drivers/net/irda/irda-usb.c: fix buffer overflow 2009-01-14 20:55:00 -08:00
ixgb net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
ixgbe ixgbe: Refactor set_num_queues() and cache_ring_register() 2009-02-05 23:53:59 -08:00
ixp2000 net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
mlx4 net: Add skb_record_rx_queue() calls to multiqueue capable drivers. 2009-01-27 16:22:32 -08:00
myri10ge net: Add skb_record_rx_queue() calls to multiqueue capable drivers. 2009-01-27 16:22:32 -08:00
netxen net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
pcmcia pcnet_cs: Fix misuse of the equality operator. 2009-02-03 15:14:05 -08:00
phy phylib: Rework suspend/resume code to check netdev wakeup capability 2009-02-01 00:53:34 -08:00
qlge Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
sfc net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
skfp drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic 2009-01-29 17:32:20 -08:00
tokenring 3c559: convert to net_device_ops 2009-01-21 14:02:31 -08:00
tulip Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
usb Merge branch 'master' of /home/davem/src/GIT/linux-2.6/ 2009-02-04 16:51:58 -08:00
wan net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
wimax wimax: replace uses of __constant_{endian} 2009-02-01 00:43:54 -08:00
wireless Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2009-02-03 12:41:58 -08:00
3c59x.c 3c59x: convert to net_device_ops 2009-01-21 14:02:25 -08:00
3c501.c 3c501: convert to net_device_ops 2009-01-21 14:02:21 -08:00
3c501.h
3c503.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
3c503.h
3c505.c 3c505: convert to net_device_ops 2009-01-21 14:02:22 -08:00
3c505.h
3c507.c 3c507: convert to net_device_ops 2009-01-21 14:02:23 -08:00
3c509.c 3c509: convert to net_device_ops 2009-01-21 14:02:23 -08:00
3c515.c 3c515: convert to net_device_ops 2009-01-21 14:02:24 -08:00
3c523.c 3c523: convert to net_device_ops 2009-01-21 14:02:24 -08:00
3c523.h
3c527.c 3c527: convert to net_device_ops 2009-01-21 14:02:25 -08:00
3c527.h
7990.c
7990.h
8139cp.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
8139too.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
8390.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
8390.h
8390p.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
82596.c dmascc: convert to internal net_device_ops 2009-01-21 14:02:41 -08:00
a2065.c
a2065.h
ac3200.c
acenic.c netdev: missing validate_address hooks 2009-01-11 00:06:42 -08:00
acenic.h firmware: convert acenic driver to request_firmware() 2009-01-04 16:10:02 -08:00
amd8111e.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
amd8111e.h
apne.c
ariadne.c
ariadne.h
at1700.c
atarilance.c
atp.c atp: convert to net_device_ops 2009-01-07 18:10:24 -08:00
atp.h
au1000_eth.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
au1000_eth.h
ax88796.c ax88796: start_xmit fix using net_device_ops 2009-01-14 21:05:55 -08:00
b44.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
b44.h b44: GFP_DMA skb should not escape from driver 2009-01-15 15:29:35 -08:00
bfin_mac.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
bfin_mac.h
bmac.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
bmac.h
bnx2_fw2.h
bnx2_fw.h
bnx2.c net: Add skb_record_rx_queue() calls to multiqueue capable drivers. 2009-01-27 16:22:32 -08:00
bnx2.h
bnx2x_fw_defs.h
bnx2x_hsi.h
bnx2x_init_values.h
bnx2x_init.h
bnx2x_link.c bnx2x: Version update 2009-01-19 16:20:15 -08:00
bnx2x_link.h
bnx2x_main.c net: Add skb_record_rx_queue() calls to multiqueue capable drivers. 2009-01-27 16:22:32 -08:00
bnx2x_reg.h bnx2x: Version update 2009-01-19 16:20:15 -08:00
bnx2x.h bnx2x: Version update 2009-01-19 16:20:15 -08:00
bsd_comp.c
cassini.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
cassini.h
cpmac.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
cs89x0.c Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
cs89x0.h
de600.c de600: update to net_device_ops 2009-01-07 17:34:36 -08:00
de600.h
de620.c de600: update to net_device_ops 2009-01-07 17:34:36 -08:00
de620.h
declance.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
defxx.c
defxx.h
depca.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
depca.h
dl2k.c
dl2k.h
dm9000.c
dm9000.h
dummy.c
e100.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
e2100.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
eepro.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
eexpress.c
eexpress.h EtherExpress16: fix printing timed out status 2008-12-29 18:42:33 -08:00
enc28j60_hw.h
enc28j60.c enc28j60: update to net_device_ops 2009-01-07 17:30:09 -08:00
epic100.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
eql.c
es3210.c
eth16i.c
ewrk3.c
ewrk3.h
fealnx.c fealnx: update to net_device_ops 2009-01-07 17:57:47 -08:00
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
fec.h fec: Add support for Freescale MX27 2009-02-01 00:58:26 -08:00
forcedeth.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
fsl_pq_mdio.c netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
fsl_pq_mdio.h netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
gianfar_ethtool.c gianfar: Implement proper, per netdevice wakeup management 2009-02-01 00:52:34 -08:00
gianfar_mii.c gianfar: Fix sparse warnings 2009-02-01 00:54:16 -08:00
gianfar_sysfs.c gianfar: Fix stashing support 2009-02-04 16:43:44 -08:00
gianfar.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-04 16:52:41 -08:00
gianfar.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-04 16:52:41 -08:00
hamachi.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
hp100.c hp100: update to net_device_ops 2009-01-07 18:13:49 -08:00
hp100.h
hp-plus.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
hp.c
hplance.c
hplance.h
hydra.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
ibmlana.c
ibmlana.h
ibmveth.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
ibmveth.h ibmveth: use consistent types 2009-01-06 10:47:44 -08:00
ifb.c
ioc3-eth.c
ipg.c ipg: update to net_device_ops 2009-01-07 17:26:14 -08:00
ipg.h
isa-skeleton.c
iseries_veth.c powerpc: Cleanup from l64 to ll64 change: drivers/net 2009-01-13 14:48:00 +11:00
jazzsonic.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
jme.c
jme.h net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
Kconfig netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
korina.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
lance.c
lasi_82596.c
lib8390.c
lib82596.c
LICENSE.SRC
lne390.c
loopback.c
lp486e.c
mac89x0.c
mac8390.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
macb.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
macb.h
mace.c
mace.h
macmace.c
macsonic.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
macvlan.c
Makefile netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
meth.c
meth.h
mii.c
mipsnet.c
mv643xx_eth.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
mvme147.c
myri_code.h
myri_sbus.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
myri_sbus.h
natsemi.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
ne2.c
ne2k-pci.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
ne3210.c
ne-h8300.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
ne.c drivers/net: fix sparse warning: use ANSI-style function declaration 2008-12-25 23:52:57 -08:00
netconsole.c
netx-eth.c
ni52.c
ni52.h
ni65.c
ni65.h
ni5010.c
ni5010.h
niu.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
niu.h
ns83820.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
pasemi_mac_ethtool.c
pasemi_mac.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
pasemi_mac.h
pci-skeleton.c
pcnet32.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
plip.c plip: update to net_device_ops 2009-01-07 17:26:48 -08:00
ppp_async.c drivers/net: Remove redundant test 2008-12-25 18:03:28 -08:00
ppp_deflate.c
ppp_generic.c net: ppp_generic - introduce net-namespace functionality v2 2009-01-21 15:55:35 -08:00
ppp_mppe.c
ppp_mppe.h
ppp_synctty.c drivers/net: Remove redundant test 2008-12-25 18:03:28 -08:00
pppoe.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
pppol2tp.c pppol2tp: stop using proc internals 2009-01-26 21:10:08 -08:00
pppox.c net: pppol2tp - introduce net-namespace functionality 2009-01-21 15:55:15 -08:00
ps3_gelic_net.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
ps3_gelic_net.h
ps3_gelic_wireless.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
ps3_gelic_wireless.h
qla3xxx.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
qla3xxx.h
r6040.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-01-30 14:31:07 -08:00
r8169.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
rionet.c
rrunner.c
rrunner.h
s2io-regs.h
s2io.c s2io: Formatting log message 2009-02-03 15:15:15 -08:00
s2io.h
sb1000.c sb1000: update to net_device_ops 2009-01-07 17:56:54 -08:00
sb1250-mac.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
sc92031.c sc92031: add a link to the datasheet 2009-01-21 14:03:42 -08:00
seeq8005.c
seeq8005.h
sgiseeq.c
sgiseeq.h
sh_eth.c
sh_eth.h
sis190.c sis190: update to net_device_ops 2009-01-07 17:35:41 -08:00
sis900.c sis900: generate fake MAC address if the hardware doesn't have one 2009-01-14 20:46:24 -08:00
sis900.h
skge.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
skge.h
sky2.c sky2: set VPD size 2009-02-03 15:08:36 -08:00
sky2.h
slhc.c
slip.c slip: convert to net_device_ops 2009-01-07 18:09:36 -08:00
slip.h trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
smc91x.c smc91x: struct net_device_ops 2009-01-26 21:32:25 -08:00
smc91x.h smc91x: enable ethtool EEPROM interface 2009-01-21 14:34:52 -08:00
smc911x.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
smc911x.h
smc9194.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
smc9194.h
smc-mca.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
smc-ultra32.c
smc-ultra.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
smsc911x.c smsc911x: allow mac address to be saved before device reset 2009-02-01 00:37:22 -08:00
smsc911x.h
smsc9420.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
smsc9420.h
sni_82596.c
sonic.c
sonic.h
Space.c
spider_net_ethtool.c
spider_net.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
spider_net.h
starfire.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
stnic.c
sun3_82586.c
sun3_82586.h
sun3lance.c
sunbmac.c
sunbmac.h
sundance.c sundance: update to net_device_ops 2009-01-07 17:58:43 -08:00
sungem_phy.c cassini/sungem: limit reaches -1, but 0 tested 2009-02-02 23:19:50 -08:00
sungem_phy.h
sungem.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
sungem.h
sunhme.c sunhme: update to net_device_ops 2009-01-07 17:28:35 -08:00
sunhme.h
sunlance.c
sunqe.c net: variables reach -1, but 0 tested 2009-02-02 21:39:02 -08:00
sunqe.h
sunvnet.c sparc64: Fix unsigned long long warnings in drivers. 2009-01-06 13:20:38 -08:00
sunvnet.h
tc35815.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
tehuti_fw.h
tehuti.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
tehuti.h
tg3.c tg3: remove extra casting 2009-01-21 14:34:31 -08:00
tg3.h tg3: Fix firmware loading 2009-01-19 16:57:45 -08:00
tlan.c tlan: update to net_device_ops 2009-01-07 17:27:15 -08:00
tlan.h
tsi108_eth.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-02-03 00:15:35 -08:00
tsi108_eth.h
tun.c tun: Limit amount of queued packets per device 2009-02-05 21:25:32 -08:00
typhoon-firmware.h
typhoon.c typhoon: replace users of __constant_{endian} 2009-01-21 14:34:08 -08:00
typhoon.h typhoon: replace users of __constant_{endian} 2009-01-21 14:34:08 -08:00
ucc_geth_ethtool.c netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
ucc_geth.c netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
ucc_geth.h netdev: Merge UCC and gianfar MDIO bus drivers 2009-02-04 16:42:35 -08:00
veth.c
via-rhine.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
via-velocity.c via-velocity: fix hot spin 2009-01-20 14:44:01 -08:00
via-velocity.h net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
virtio_net.c virtio_net: Allow setting the MAC address of the NIC 2009-02-04 16:36:34 -08:00
wd.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
xen-netfront.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
xtsonic.c net: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-26 21:12:58 -08:00
yellowfin.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00
znet.c znet: convert to net_device_ops 2009-01-21 14:02:31 -08:00
zorro8390.c netdev: add missing set_mac_address hook 2009-01-11 00:06:36 -08:00