Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102709
b: refs/heads/master
c: 5a6e599
h: refs/heads/master
i:
  102707: 950a215
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed May 22, 2008
1 parent ed3134f commit 77f6ed1
Show file tree
Hide file tree
Showing 219 changed files with 3,507 additions and 6,316 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e64bda89b8fe81cce9b4a20885d2c204c2d52532
refs/heads/master: 5a6e59991b82580c3ca00115603b85762ec76104
96 changes: 29 additions & 67 deletions trunk/Documentation/networking/bonding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,73 +289,35 @@ downdelay
fail_over_mac

Specifies whether active-backup mode should set all slaves to
the same MAC address at enslavement (the traditional
behavior), or, when enabled, perform special handling of the
bond's MAC address in accordance with the selected policy.

Possible values are:

none or 0

This setting disables fail_over_mac, and causes
bonding to set all slaves of an active-backup bond to
the same MAC address at enslavement time. This is the
default.

active or 1

The "active" fail_over_mac policy indicates that the
MAC address of the bond should always be the MAC
address of the currently active slave. The MAC
address of the slaves is not changed; instead, the MAC
address of the bond changes during a failover.

This policy is useful for devices that cannot ever
alter their MAC address, or for devices that refuse
incoming broadcasts with their own source MAC (which
interferes with the ARP monitor).

The down side of this policy is that every device on
the network must be updated via gratuitous ARP,
vs. just updating a switch or set of switches (which
often takes place for any traffic, not just ARP
traffic, if the switch snoops incoming traffic to
update its tables) for the traditional method. If the
gratuitous ARP is lost, communication may be
disrupted.

When this policy is used in conjuction with the mii
monitor, devices which assert link up prior to being
able to actually transmit and receive are particularly
susecptible to loss of the gratuitous ARP, and an
appropriate updelay setting may be required.

follow or 2

The "follow" fail_over_mac policy causes the MAC
address of the bond to be selected normally (normally
the MAC address of the first slave added to the bond).
However, the second and subsequent slaves are not set
to this MAC address while they are in a backup role; a
slave is programmed with the bond's MAC address at
failover time (and the formerly active slave receives
the newly active slave's MAC address).

This policy is useful for multiport devices that
either become confused or incur a performance penalty
when multiple ports are programmed with the same MAC
address.


The default policy is none, unless the first slave cannot
change its MAC address, in which case the active policy is
selected by default.

This option may be modified via sysfs only when no slaves are
present in the bond.

This option was added in bonding version 3.2.0. The "follow"
policy was added in bonding version 3.3.0.
the same MAC address (the traditional behavior), or, when
enabled, change the bond's MAC address when changing the
active interface (i.e., fail over the MAC address itself).

Fail over MAC is useful for devices that cannot ever alter
their MAC address, or for devices that refuse incoming
broadcasts with their own source MAC (which interferes with
the ARP monitor).

The down side of fail over MAC is that every device on the
network must be updated via gratuitous ARP, vs. just updating
a switch or set of switches (which often takes place for any
traffic, not just ARP traffic, if the switch snoops incoming
traffic to update its tables) for the traditional method. If
the gratuitous ARP is lost, communication may be disrupted.

When fail over MAC is used in conjuction with the mii monitor,
devices which assert link up prior to being able to actually
transmit and receive are particularly susecptible to loss of
the gratuitous ARP, and an appropriate updelay setting may be
required.

A value of 0 disables fail over MAC, and is the default. A
value of 1 enables fail over MAC. This option is enabled
automatically if the first slave added cannot change its MAC
address. This option may be modified via sysfs only when no
slaves are present in the bond.

This option was added in bonding version 3.2.0.

lacp_rate

Expand Down
21 changes: 0 additions & 21 deletions trunk/Documentation/powerpc/booting-without-of.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Table of Contents
o) Xilinx IP cores
p) Freescale Synchronous Serial Interface
q) USB EHCI controllers
r) MDIO on GPIOs

VII - Marvell Discovery mv64[345]6x System Controller chips
1) The /system-controller node
Expand Down Expand Up @@ -2871,26 +2870,6 @@ platforms are moved over to use the flattened-device-tree model.
reg = <0xe8000000 32>;
};

r) MDIO on GPIOs

Currently defined compatibles:
- virtual,gpio-mdio

MDC and MDIO lines connected to GPIO controllers are listed in the
gpios property as described in section VIII.1 in the following order:

MDC, MDIO.

Example:

mdio {
compatible = "virtual,mdio-gpio";
#address-cells = <1>;
#size-cells = <0>;
gpios = <&qe_pio_a 11
&qe_pio_c 6>;
};

VII - Marvell Discovery mv64[345]6x System Controller chips
===========================================================

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/atm/fore200e.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* $Id: fore200e.h,v 1.4 2000/04/14 10:10:34 davem Exp $ */
#ifndef _FORE200E_H
#define _FORE200E_H

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/atm/fore200e_mkfirm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
$Id: fore200e_mkfirm.c,v 1.1 2000/02/21 16:04:32 davem Exp $
mkfirm.c: generates a C readable file from a binary firmware image
Christophe Lizzi (lizzi@{csti.fr, cnam.fr}), June 1999.
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/atm/he.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* $Id: he.h,v 1.4 2003/05/06 22:48:00 chas Exp $ */

/*
he.h
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/atm/idt77252.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/*******************************************************************
* ident "$Id: idt77252.c,v 1.2 2001/11/11 08:13:54 ecd Exp $"
*
* $Author: ecd $
* $Date: 2001/11/11 08:13:54 $
*
* Copyright (c) 2000 ATecoM GmbH
*
Expand All @@ -25,6 +29,9 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*
*******************************************************************/
static char const rcsid[] =
"$Id: idt77252.c,v 1.2 2001/11/11 08:13:54 ecd Exp $";


#include <linux/module.h>
#include <linux/pci.h>
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/atm/idt77252.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/*******************************************************************
* ident "$Id: idt77252.h,v 1.2 2001/11/11 08:13:54 ecd Exp $"
*
* $Author: ecd $
* $Date: 2001/11/11 08:13:54 $
*
* Copyright (c) 2000 ATecoM GmbH
*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/atm/nicstarmac.copyright
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* Modified to work with the IDT7721 nicstar -- AAL5 (tested) only.
*
* R. D. Rechenmacher <ron@fnal.gov>, Aug. 6, 1997
* R. D. Rechenmacher <ron@fnal.gov>, Aug. 6, 1997 $Revision: 1.1 $ $Date: 1999/08/20 11:00:11 $
*
* Linux driver for the IDT77201 NICStAR PCI ATM controller.
* PHY component is expected to be 155 Mbps S/UNI-Lite or IDT 77155;
Expand Down
17 changes: 9 additions & 8 deletions trunk/drivers/net/3c509.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static int __devinit el3_pnp_probe(struct pnp_dev *pdev,
{
short i;
int ioaddr, irq, if_port;
__be16 phys_addr[3];
u16 phys_addr[3];
struct net_device *dev = NULL;
int err;

Expand Down Expand Up @@ -605,7 +605,7 @@ static int __init el3_mca_probe(struct device *device)

short i;
int ioaddr, irq, if_port;
__be16 phys_addr[3];
u16 phys_addr[3];
struct net_device *dev = NULL;
u_char pos4, pos5;
struct mca_device *mdev = to_mca_device(device);
Expand Down Expand Up @@ -635,13 +635,14 @@ static int __init el3_mca_probe(struct device *device)
printk(KERN_DEBUG "3c529: irq %d ioaddr 0x%x ifport %d\n", irq, ioaddr, if_port);
}
EL3WINDOW(0);
for (i = 0; i < 3; i++)
phys_addr[i] = htons(read_eeprom(ioaddr, i));
for (i = 0; i < 3; i++) {
phys_addr[i] = htons(read_eeprom(ioaddr, i));
}

dev = alloc_etherdev(sizeof (struct el3_private));
if (dev == NULL) {
release_region(ioaddr, EL3_IO_EXTENT);
return -ENOMEM;
release_region(ioaddr, EL3_IO_EXTENT);
return -ENOMEM;
}

netdev_boot_setup_check(dev);
Expand All @@ -667,7 +668,7 @@ static int __init el3_eisa_probe (struct device *device)
{
short i;
int ioaddr, irq, if_port;
__be16 phys_addr[3];
u16 phys_addr[3];
struct net_device *dev = NULL;
struct eisa_device *edev;
int err;
Expand Down Expand Up @@ -1062,6 +1063,7 @@ el3_rx(struct net_device *dev)
struct sk_buff *skb;

skb = dev_alloc_skb(pkt_len+5);
dev->stats.rx_bytes += pkt_len;
if (el3_debug > 4)
printk("Receiving packet size %d status %4.4x.\n",
pkt_len, rx_status);
Expand All @@ -1076,7 +1078,6 @@ el3_rx(struct net_device *dev)
skb->protocol = eth_type_trans(skb,dev);
netif_rx(skb);
dev->last_rx = jiffies;
dev->stats.rx_bytes += pkt_len;
dev->stats.rx_packets++;
continue;
}
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/net/3c515.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,16 +572,12 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
int irq;
DECLARE_MAC_BUF(mac);

#ifdef __ISAPNP__
if (idev) {
irq = pnp_irq(idev, 0);
vp->dev = &idev->dev;
} else {
irq = inw(ioaddr + 0x2002) & 15;
}
#else
irq = inw(ioaddr + 0x2002) & 15;
#endif

dev->base_addr = ioaddr;
dev->irq = irq;
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ config SUNDANCE_MMIO

config TLAN
tristate "TI ThunderLAN support"
depends on NET_PCI && (PCI || EISA)
depends on NET_PCI && (PCI || EISA) && !64BIT
---help---
If you have a PCI Ethernet network card based on the ThunderLAN chip
which is supported by this driver, say Y and read the
Expand Down Expand Up @@ -2228,7 +2228,6 @@ config VIA_VELOCITY
config TIGON3
tristate "Broadcom Tigon3 support"
depends on PCI
select PHYLIB
help
This driver supports Broadcom Tigon3 based gigabit Ethernet cards.

Expand Down Expand Up @@ -2408,9 +2407,8 @@ config CHELSIO_T1_NAPI

config CHELSIO_T3
tristate "Chelsio Communications T3 10Gb Ethernet support"
depends on PCI && INET
depends on PCI
select FW_LOADER
select INET_LRO
help
This driver supports Chelsio T3-based gigabit and 10Gb Ethernet
adapters.
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/net/atlx/atl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1876,8 +1876,7 @@ static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter)

rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);

skb = netdev_alloc_skb(adapter->netdev,
adapter->rx_buffer_len + NET_IP_ALIGN);
skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN);
if (unlikely(!skb)) {
/* Better luck next round */
adapter->net_stats.rx_dropped++;
Expand Down Expand Up @@ -2136,7 +2135,7 @@ static int atl1_tso(struct atl1_adapter *adapter, struct sk_buff *skb,
return -1;
}

if (skb->protocol == htons(ETH_P_IP)) {
if (skb->protocol == ntohs(ETH_P_IP)) {
struct iphdr *iph = ip_hdr(skb);

real_len = (((unsigned char *)iph - skb->data) +
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/net/au1000_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,12 @@ static int au1000_rx(struct net_device *dev)
*/
static irqreturn_t au1000_interrupt(int irq, void *dev_id)
{
struct net_device *dev = dev_id;
struct net_device *dev = (struct net_device *) dev_id;

if (dev == NULL) {
printk(KERN_ERR "%s: isr: null dev ptr\n", dev->name);
return IRQ_RETVAL(1);
}

/* Handle RX interrupts first to minimize chance of overrun */

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/crc32.h>
#include <linux/device.h>
#include <linux/spinlock.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/netdevice.h>
Expand Down
Loading

0 comments on commit 77f6ed1

Please sign in to comment.