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

Commit 72056497 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (43 commits)
  bnx2: Eliminate AER error messages on systems not supporting it
  cnic: Fix big endian bug
  xfrm6: Don't forget to propagate peer into ipsec route.
  tg3: Use new VLAN code
  bonding: update documentation - alternate configuration.
  TCP: fix a bug that triggers large number of TCP RST by mistake
  MAINTAINERS: remove Reinette Chatre as iwlwifi maintainer
  rt2x00: add device id for windy31 usb device
  mac80211: fix a crash in ieee80211_beacon_get_tim on change_interface
  ipv6: Revert 'administrative down' address handling changes.
  textsearch: doc - fix spelling in lib/textsearch.c.
  USB NET KL5KUSB101: Fix mem leak in error path of kaweth_download_firmware()
  pch_gbe: don't use flush_scheduled_work()
  bnx2: Always set ETH_FLAG_TXVLAN
  net: clear heap allocation for ethtool_get_regs()
  ipv6: Always clone offlink routes.
  dcbnl: make get_app handling symmetric for IEEE and CEE DCBx
  tcp: fix bug in listening_get_next()
  inetpeer: Use correct AVL tree base pointer in inet_getpeer().
  GRO: fix merging a paged skb after non-paged skbs
  ...
parents 0b711cac 4bb9ebc7
Loading
Loading
Loading
Loading
+25 −0
Original line number Original line Diff line number Diff line
What:		/sys/devices/platform/at91_can/net/<iface>/mb0_id
Date:		January 2011
KernelVersion:	2.6.38
Contact:	Marc Kleine-Budde <kernel@pengutronix.de>
Description:
		Value representing the can_id of mailbox 0.

		Default: 0x7ff (standard frame)

		Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in
		"AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the
		contents of mailbox 0 may be send under certain
		conditions (even if disabled or in rx mode).

		The workaround in the errata suggests not to use the
		mailbox and load it with an unused identifier.

		In order to use an extended can_id add the
		CAN_EFF_FLAG (0x80000000U) to the can_id. Example:

		- standard id 0x7ff:
		echo 0x7ff      > /sys/class/net/can0/mb0_id

		- extended id 0x1fffffff:
		echo 0x9fffffff > /sys/class/net/can0/mb0_id
+71 −12
Original line number Original line Diff line number Diff line
@@ -49,7 +49,8 @@ Table of Contents
3.3	Configuring Bonding Manually with Ifenslave
3.3	Configuring Bonding Manually with Ifenslave
3.3.1		Configuring Multiple Bonds Manually
3.3.1		Configuring Multiple Bonds Manually
3.4	Configuring Bonding Manually via Sysfs
3.4	Configuring Bonding Manually via Sysfs
3.5	Overriding Configuration for Special Cases
3.5	Configuration with Interfaces Support
3.6	Overriding Configuration for Special Cases


4. Querying Bonding Configuration
4. Querying Bonding Configuration
4.1	Bonding Configuration
4.1	Bonding Configuration
@@ -161,8 +162,8 @@ onwards) do not have /usr/include/linux symbolically linked to the
default kernel source include directory.
default kernel source include directory.


SECOND IMPORTANT NOTE:
SECOND IMPORTANT NOTE:
	If you plan to configure bonding using sysfs, you do not need
	If you plan to configure bonding using sysfs or using the
to use ifenslave.
/etc/network/interfaces file, you do not need to use ifenslave.


2. Bonding Driver Options
2. Bonding Driver Options
=========================
=========================
@@ -779,22 +780,26 @@ resend_igmp


	You can configure bonding using either your distro's network
	You can configure bonding using either your distro's network
initialization scripts, or manually using either ifenslave or the
initialization scripts, or manually using either ifenslave or the
sysfs interface.  Distros generally use one of two packages for the
sysfs interface.  Distros generally use one of three packages for the
network initialization scripts: initscripts or sysconfig.  Recent
network initialization scripts: initscripts, sysconfig or interfaces.
versions of these packages have support for bonding, while older
Recent versions of these packages have support for bonding, while older
versions do not.
versions do not.


	We will first describe the options for configuring bonding for
	We will first describe the options for configuring bonding for
distros using versions of initscripts and sysconfig with full or
distros using versions of initscripts, sysconfig and interfaces with full
partial support for bonding, then provide information on enabling
or partial support for bonding, then provide information on enabling
bonding without support from the network initialization scripts (i.e.,
bonding without support from the network initialization scripts (i.e.,
older versions of initscripts or sysconfig).
older versions of initscripts or sysconfig).


	If you're unsure whether your distro uses sysconfig or
	If you're unsure whether your distro uses sysconfig,
initscripts, or don't know if it's new enough, have no fear.
initscripts or interfaces, or don't know if it's new enough, have no fear.
Determining this is fairly straightforward.
Determining this is fairly straightforward.


	First, issue the command:
	First, look for a file called interfaces in /etc/network directory.
If this file is present in your system, then your system use interfaces. See
Configuration with Interfaces Support.

	Else, issue the command:


$ rpm -qf /sbin/ifup
$ rpm -qf /sbin/ifup


@@ -1327,8 +1332,62 @@ echo 2000 > /sys/class/net/bond1/bonding/arp_interval
echo +eth2 > /sys/class/net/bond1/bonding/slaves
echo +eth2 > /sys/class/net/bond1/bonding/slaves
echo +eth3 > /sys/class/net/bond1/bonding/slaves
echo +eth3 > /sys/class/net/bond1/bonding/slaves


3.5 Overriding Configuration for Special Cases
3.5 Configuration with Interfaces Support
-----------------------------------------

        This section applies to distros which use /etc/network/interfaces file
to describe network interface configuration, most notably Debian and it's
derivatives.

	The ifup and ifdown commands on Debian don't support bonding out of
the box. The ifenslave-2.6 package should be installed to provide bonding
support.  Once installed, this package will provide bond-* options to be used
into /etc/network/interfaces.

	Note that ifenslave-2.6 package will load the bonding module and use
the ifenslave command when appropriate.

Example Configurations
----------------------

In /etc/network/interfaces, the following stanza will configure bond0, in
active-backup mode, with eth0 and eth1 as slaves.

auto bond0
iface bond0 inet dhcp
	bond-slaves eth0 eth1
	bond-mode active-backup
	bond-miimon 100
	bond-primary eth0 eth1

If the above configuration doesn't work, you might have a system using
upstart for system startup. This is most notably true for recent
Ubuntu versions. The following stanza in /etc/network/interfaces will
produce the same result on those systems.

auto bond0
iface bond0 inet dhcp
	bond-slaves none
	bond-mode active-backup
	bond-miimon 100

auto eth0
iface eth0 inet manual
	bond-master bond0
	bond-primary eth0 eth1

auto eth1
iface eth1 inet manual
	bond-master bond0
	bond-primary eth0 eth1

For a full list of bond-* supported options in /etc/network/interfaces and some
more advanced examples tailored to you particular distros, see the files in
/usr/share/doc/ifenslave-2.6.

3.6 Overriding Configuration for Special Cases
----------------------------------------------
----------------------------------------------

When using the bonding driver, the physical port which transmits a frame is
When using the bonding driver, the physical port which transmits a frame is
typically selected by the bonding driver, and is not relevant to the user or
typically selected by the bonding driver, and is not relevant to the user or
system administrator.  The output port is simply selected using the policies of
system administrator.  The output port is simply selected using the policies of
+0 −1
Original line number Original line Diff line number Diff line
@@ -3327,7 +3327,6 @@ F: drivers/net/wimax/i2400m/
F:	include/linux/wimax/i2400m.h
F:	include/linux/wimax/i2400m.h


INTEL WIRELESS WIFI LINK (iwlwifi)
INTEL WIRELESS WIFI LINK (iwlwifi)
M:	Reinette Chatre <reinette.chatre@intel.com>
M:	Wey-Yi Guy <wey-yi.w.guy@intel.com>
M:	Wey-Yi Guy <wey-yi.w.guy@intel.com>
M:	Intel Linux Wireless <ilw@linux.intel.com>
M:	Intel Linux Wireless <ilw@linux.intel.com>
L:	linux-wireless@vger.kernel.org
L:	linux-wireless@vger.kernel.org
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ static int fetch_stats(struct atm_dev *dev,struct idt77105_stats __user *arg,int
	spin_unlock_irqrestore(&idt77105_priv_lock, flags);
	spin_unlock_irqrestore(&idt77105_priv_lock, flags);
	if (arg == NULL)
	if (arg == NULL)
		return 0;
		return 0;
	return copy_to_user(arg, &PRIV(dev)->stats,
	return copy_to_user(arg, &stats,
		    sizeof(struct idt77105_stats)) ? -EFAULT : 0;
		    sizeof(struct idt77105_stats)) ? -EFAULT : 0;
}
}


+20 −55
Original line number Original line Diff line number Diff line
@@ -47,46 +47,40 @@ MODULE_DEVICE_TABLE(usb, ath3k_table);
#define USB_REQ_DFU_DNLOAD	1
#define USB_REQ_DFU_DNLOAD	1
#define BULK_SIZE		4096
#define BULK_SIZE		4096


struct ath3k_data {
static int ath3k_load_firmware(struct usb_device *udev,
	struct usb_device *udev;
				const struct firmware *firmware)
	u8 *fw_data;
	u32 fw_size;
	u32 fw_sent;
};

static int ath3k_load_firmware(struct ath3k_data *data,
				unsigned char *firmware,
				int count)
{
{
	u8 *send_buf;
	u8 *send_buf;
	int err, pipe, len, size, sent = 0;
	int err, pipe, len, size, sent = 0;
	int count = firmware->size;


	BT_DBG("ath3k %p udev %p", data, data->udev);
	BT_DBG("udev %p", udev);


	pipe = usb_sndctrlpipe(data->udev, 0);
	pipe = usb_sndctrlpipe(udev, 0);


	if ((usb_control_msg(data->udev, pipe,
	send_buf = kmalloc(BULK_SIZE, GFP_ATOMIC);
	if (!send_buf) {
		BT_ERR("Can't allocate memory chunk for firmware");
		return -ENOMEM;
	}

	memcpy(send_buf, firmware->data, 20);
	if ((err = usb_control_msg(udev, pipe,
				USB_REQ_DFU_DNLOAD,
				USB_REQ_DFU_DNLOAD,
				USB_TYPE_VENDOR, 0, 0,
				USB_TYPE_VENDOR, 0, 0,
				firmware, 20, USB_CTRL_SET_TIMEOUT)) < 0) {
				send_buf, 20, USB_CTRL_SET_TIMEOUT)) < 0) {
		BT_ERR("Can't change to loading configuration err");
		BT_ERR("Can't change to loading configuration err");
		return -EBUSY;
		goto error;
	}
	}
	sent += 20;
	sent += 20;
	count -= 20;
	count -= 20;


	send_buf = kmalloc(BULK_SIZE, GFP_ATOMIC);
	if (!send_buf) {
		BT_ERR("Can't allocate memory chunk for firmware");
		return -ENOMEM;
	}

	while (count) {
	while (count) {
		size = min_t(uint, count, BULK_SIZE);
		size = min_t(uint, count, BULK_SIZE);
		pipe = usb_sndbulkpipe(data->udev, 0x02);
		pipe = usb_sndbulkpipe(udev, 0x02);
		memcpy(send_buf, firmware + sent, size);
		memcpy(send_buf, firmware->data + sent, size);


		err = usb_bulk_msg(data->udev, pipe, send_buf, size,
		err = usb_bulk_msg(udev, pipe, send_buf, size,
					&len, 3000);
					&len, 3000);


		if (err || (len != size)) {
		if (err || (len != size)) {
@@ -112,57 +106,28 @@ static int ath3k_probe(struct usb_interface *intf,
{
{
	const struct firmware *firmware;
	const struct firmware *firmware;
	struct usb_device *udev = interface_to_usbdev(intf);
	struct usb_device *udev = interface_to_usbdev(intf);
	struct ath3k_data *data;
	int size;


	BT_DBG("intf %p id %p", intf, id);
	BT_DBG("intf %p id %p", intf, id);


	if (intf->cur_altsetting->desc.bInterfaceNumber != 0)
	if (intf->cur_altsetting->desc.bInterfaceNumber != 0)
		return -ENODEV;
		return -ENODEV;


	data = kzalloc(sizeof(*data), GFP_KERNEL);
	if (!data)
		return -ENOMEM;

	data->udev = udev;

	if (request_firmware(&firmware, "ath3k-1.fw", &udev->dev) < 0) {
	if (request_firmware(&firmware, "ath3k-1.fw", &udev->dev) < 0) {
		kfree(data);
		return -EIO;
		return -EIO;
	}
	}


	size = max_t(uint, firmware->size, 4096);
	if (ath3k_load_firmware(udev, firmware)) {
	data->fw_data = kmalloc(size, GFP_KERNEL);
	if (!data->fw_data) {
		release_firmware(firmware);
		release_firmware(firmware);
		kfree(data);
		return -ENOMEM;
	}

	memcpy(data->fw_data, firmware->data, firmware->size);
	data->fw_size = firmware->size;
	data->fw_sent = 0;
	release_firmware(firmware);

	usb_set_intfdata(intf, data);
	if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) {
		usb_set_intfdata(intf, NULL);
		kfree(data->fw_data);
		kfree(data);
		return -EIO;
		return -EIO;
	}
	}
	release_firmware(firmware);


	return 0;
	return 0;
}
}


static void ath3k_disconnect(struct usb_interface *intf)
static void ath3k_disconnect(struct usb_interface *intf)
{
{
	struct ath3k_data *data = usb_get_intfdata(intf);

	BT_DBG("ath3k_disconnect intf %p", intf);
	BT_DBG("ath3k_disconnect intf %p", intf);

	kfree(data->fw_data);
	kfree(data);
}
}


static struct usb_driver ath3k_driver = {
static struct usb_driver ath3k_driver = {
Loading