05 Feb, 2009
6 commits
-
The MDIO bus drivers for the UCC and gianfar ethernet controllers are
essentially the same. There's no reason to duplicate that much code.Signed-off-by: Andy Fleming
Signed-off-by: David S. Miller -
Many physical NICs let the OS re-program the "hardware" MAC
address. Virtual NICs should allow this too.Signed-off-by: Alex Williamson
Acked-by: Mark McLoughlin
Signed-off-by: David S. Miller -
VLAN filtering allows the hypervisor to drop packets from VLANs
that we're not a part of, further reducing the number of extraneous
packets recieved. This makes use of the VLAN virtqueue command class.
The CTRL_VLAN feature bit tells us whether the backend supports VLAN
filtering.Signed-off-by: Alex Williamson
Acked-by: Rusty Russell
Signed-off-by: David S. Miller -
Make use of the MAC control virtqueue class to support a MAC
filter table. The filter table is managed by the hypervisor.
We consider the table to be available if the CTRL_RX feature
bit is set. We leave it to the hypervisor to manage the table
and enable promiscuous or all-multi mode as necessary depending
on the resources available to it.Signed-off-by: Alex Williamson
Acked-by: Rusty Russell
Signed-off-by: David S. Miller -
Make use of the RX_MODE control virtqueue class to enable the
set_rx_mode netdev interface. This allows us to selectively
enable/disable promiscuous and allmulti mode so we don't see
packets we don't want. For now, we automatically enable these
as needed if additional unicast or multicast addresses are
requested.Signed-off-by: Alex Williamson
Acked-by: Rusty Russell
Signed-off-by: David S. Miller -
This will be used for RX mode, MAC filter table, VLAN filtering, etc...
The control transaction consists of one or more "out" sg entries and
one or more "in" sg entries. The first out entry contains a header
defining the class and command. Additional out entries may provide
data for the command. The last in entry provides a status response
back from the command.Virtqueues typically run asynchronous, running a callback function
when there's data in the channel. We can't readily make use of this
in the command paths where we need to use this. Instead, we kick
the virtqueue and spin. The kick causes an I/O write, triggering an
immediate trap into the hypervisor.Signed-off-by: Alex Williamson
Acked-by: Rusty Russell
Signed-off-by: David S. Miller
04 Feb, 2009
6 commits
-
S2IO driver is printing dev->name before the name being allocated, which
display eth%d instead of eth0, eth1, etc. Example:eth%d: Enabling MSIX failed
eth%d: MSI-X requested but failed to enableThis patch just change eth%d to s2io.
Signed-off-by: Breno Leitao
Signed-off-by: David S. Miller -
Read configuration register during probe and use it to size the
available VPD. Move existing code using same register slightly
earlier in probe handling.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
The VPD stuff has more data and isn't generally that useful, so move
it into the existing debugfs display and use the new PCI VPD
accessor routines.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
On non-x86 platforms it is possible to run out of DMA mapping resources.
The driver was ignoring this and could cause corruptions.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
This workaround is not needed. It was inherited from sk98lin driver but only
applies to an early development version of the chip that is not supported
by sky2. The workaround required an unnecessary pci read which hurts performanceSigned-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
03 Feb, 2009
9 commits
-
Conflicts:
drivers/net/Kconfig -
Michael Tokarev wrote:
[]
> 2, and this is the main one: How about supplementary groups?
>
> Here I have a valid usage case: a group of testers running various
> versions of windows using KVM (kernel virtual machine), 1 at a time,
> to test some software. kvm is set up to use bridge with a tap device
> (there should be a way to connect to the machine). Anyone on that group
> has to be able to start/stop the virtual machines.
>
> My first attempt - pretty obvious when I saw -g option of tunctl - is
> to add group ownership for the tun device and add a supplementary group
> to each user (their primary group should be different). But that fails,
> since kernel only checks for egid, not any other group ids.
>
> What's the reasoning to not allow supplementary groups and to only check
> for egid?Signed-off-by: Michael Tokarev
Signed-off-by: David S. Miller -
while (limit--)
if (test())
break;if (limit
Signed-off-by: David S. Miller -
while (timeout--) { ... }
timeout becomes -1 if the loop isn't ended otherwise, not 0.
Signed-off-by: Roel Kluin
Signed-off-by: David S. Miller -
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
fbdev/atyfb: Fix DSP config on some PowerMacs & PowerBooks
powerpc: Fix oops on some machines due to incorrect pr_debug()
powerpc/ps3: Printing fixups for l64 to ll64 convserion drivers/net
powerpc/5200: update device tree binding documentation
powerpc/5200: Bugfix for PCI mapping of memory and IMMR
powerpc/5200: update defconfigs -
Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller -
Without this the 2nd port gets first ports MAC addr.
Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller -
Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller
02 Feb, 2009
1 commit
-
Signed-off-by: Stephen Rothwell
Acked-by: Geoff Levand
Acked-by: David S. Miller
Signed-off-by: Benjamin Herrenschmidt
01 Feb, 2009
18 commits
-
New year, new copyright date ranges. Also bump the driver version
number to reflect many of the recent changes.Signed-off-by: Peter P Waskiewicz Jr
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Our current MSI-X allocation mechanism does not support new hardware
at all. It also isn't getting the actual number of supported MSI-X vectors
from the device.This patch allows the number of MSI-X vectors to be specific to a device,
plus it gets the number of MSI-X vectors available from PCIe configuration
space.Signed-off-by: Peter P Waskiewicz Jr
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Add the device ID for BX devices using the 82598 MAC.
Signed-off-by: Don Skidmore
Signed-off-by: Peter P Waskiewicz Jr
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This turns the fec driver into a platform device driver for new
platforms. Old platforms are still supported through a FEC_LEGACY define
till they are also ported.Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
flush_dcache_range is not portable across architectures. Use
dma_sync_single instead. Also, the memory must be synchronised in the
receive path aswell.Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
According to the datasheet the ICSR register is at offset 27, not 22.
Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
There are some architecture specific functions which are all
empty. Remove them.Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
The #else branches throughout this driver belong to a PowerPC 8xx for
which this driver is not used.Signed-off-by: Sascha Hauer
Acked-by: Greg Ungerer
Signed-off-by: David S. Miller -
This patch fixes following sparse warnings:
CHECK gianfar_ethtool.c
gianfar_ethtool.c:610:26: warning: symbol 'gfar_ethtool_ops' was not declared. Should it be static?
CHECK gianfar_mii.c
gianfar_mii.c:108:35: warning: cast adds address space to expression ()
gianfar_mii.c:119:35: warning: cast adds address space to expression ()
gianfar_mii.c:128:35: warning: cast adds address space to expression ()
gianfar_mii.c:272:5: warning: cast removes address space of expression
gianfar_mii.c:271:15: warning: cast adds address space to expression ()
gianfar_mii.c:340:11: warning: cast adds address space to expression ()
CHECK gianfar_sysfs.c
gianfar_sysfs.c:84:1: warning: symbol 'dev_attr_bd_stash' was not declared. Should it be static?
gianfar_sysfs.c:133:1: warning: symbol 'dev_attr_rx_stash_size' was not declared. Should it be static?
gianfar_sysfs.c:175:1: warning: symbol 'dev_attr_rx_stash_index' was not declared. Should it be static?
gianfar_sysfs.c:213:1: warning: symbol 'dev_attr_fifo_threshold' was not declared. Should it be static?
gianfar_sysfs.c:250:1: warning: symbol 'dev_attr_fifo_starve' was not declared. Should it be static?
gianfar_sysfs.c:287:1: warning: symbol 'dev_attr_fifo_starve_off' was not declared. Should it be static?Signed-off-by: Anton Vorontsov
Signed-off-by: David S. Miller -
In most cases (e.g. PCI drivers) MDIO and MAC controllers are
represented by the same device. But for SOC ethernets we have
separate devices. So, in SOC case, checking whether MDIO
controller may wakeup is not only makes little sense, but also
prevents us from doing per-netdevice wakeup management.This patch reworks suspend/resume code so that now it checks
for net device's wakeup flags, not MDIO controller's ones.Each netdevice should manage its wakeup flags, and phylib will
decide whether suspend an attached PHY or not.Signed-off-by: Anton Vorontsov
Signed-off-by: David S. Miller -
This patch implements wakeup management for the gianfar driver.
The driver should set wakeup enable if WOL is enabled, so that
phylib won't power off an attached PHY.Signed-off-by: Anton Vorontsov
Signed-off-by: David S. Miller -
Base versions handle constant folding now.
Signed-off-by: Harvey Harrison
Signed-off-by: David S. Miller -
Base versions handle constant folding now.
Signed-off-by: Harvey Harrison
Acked-by: Inaky Perez-Gonzalez
Signed-off-by: David S. Miller -
Some platforms (for example pcm037) do not have an EEPROM fitted,
instead storing their mac address somewhere else. The bootloader
fetches this and configures the ethernet adapter before the kernel is
started.This patch allows a platform to indicate to the driver via the
SMSC911X_SAVE_MAC_ADDRESS flag that the mac address has already been
configured via such a mechanism, and should be saved before resetting
the chip.Signed-off-by: Steve Glendinning
Acked-by: Sascha Hauer
Tested-by: Sascha Hauer
Signed-off-by: David S. Miller