linux-netdev mailing list

FromSubjectsort iconDate
denis
Receive Packet Steering patch - help.
hi. this patch seems to be a great ideea, but when trying to apply the patch to kernel 2.6.33.1 it gives the following output: linux-2.6.33.1 # cat ../rps_patch1.diff | patch -p1 patching file include/linux/netdevice.h Hunk #1 succeeded at 844 (offset 86 lines). Hunk #2 succeeded at 1281 (offset 108 lines). Hunk #3 succeeded at 1323 with fuzz 2 (offset 134 lines). Hunk #4 succeeded at 1590 with fuzz 2 (offset 136 lines). patching file net/Kconfig Hunk #1 succeeded at 45 (offset 20 ...
Mar 29, 4:02 pm 2010
Joe Perches
Re: [PATCH 2/2] ath: fix macros coding style issue in regd.c
Hi Luis. Checkpatch isn't always correct. Please make sure to compile test your changes before submitting them. These macros are used as initializers and can not be surrounded by parentheses. .reg_rules = { ATH9K_2GHZ_ALL, cheers, Joe --
Mar 29, 4:33 pm 2010
Luis de Bethencourt
[PATCH 2/2] ath: fix macros coding style issue in regd.c
This is a patch to the ath/regd.c file that fixes up three warnings about macros found by the checkpatch.pl tool, these said that complex values should be enclosed in parenthesis. Signed-off-by: Luis de Bethencourt <luisbg@ubuntu.com> --- drivers/net/wireless/ath/regd.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c index 04abd1f..971edc4 100644 --- a/drivers/net/wireless/ath/regd.c +++ ...
Mar 29, 4:12 pm 2010
Luis de Bethencourt
Re: [PATCH 2/2] ath: fix macros coding style issue in regd.c
Hi Joe, Sorry about this. I compiled test the changes but make didn't complain. My bad, will try to avoid this better in the future. Luis --
Mar 29, 4:39 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 03/12] net-caif: add CAIF core pr ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Add include files for the CAIF Core protocol stack. caif_layer.h - Defines the structure of the CAIF protocol layers cfcnfg.h - CAIF Configuration Module for services and link layers cfctrl.h - CAIF Control Protocol Layer cffrml.h - CAIF Framing Layer cfmuxl.h - CAIF Muxing Layer cfpkt.h - CAIF Packet layer (skb helper functions) cfserl.h - CAIF Serial Layer cfsrvl.h - CAIF Service Layer Signed-off-by: ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 07/12] net-caif: add CAIF device ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Registration and deregistration of CAIF Link Layer. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- net/caif/caif_config_util.c | 88 ++++++++++ net/caif/caif_dev.c | 399 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 487 insertions(+), 0 deletions(-) diff --git a/net/caif/caif_config_util.c b/net/caif/caif_config_util.c new file mode 100644 index 0000000..af7daf8 --- /dev/null +++ ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 06/12] net-caif: add CAIF generic ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Support functions for the caif protocol stack: cfcnfg.c - CAIF Configuration Module used for adding and removing drivers and connection cfpkt_skbuff.c - CAIF Packet layer (SKB helper functions) Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- net/caif/cfcnfg.c | 529 ++++++++++++++++++++++++++++++++++++++++++ net/caif/cfpkt_skbuff.c | 593 ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 08/12] net-caif: add CAIF socket ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Implementation of CAIF sockets for protocol and address family PF_CAIF and AF_CAIF. CAIF socket is connection oriented implementing SOCK_SEQPACKET and SOCK_STREAM interface with supporting blocking and non-blocking mode. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- net/caif/caif_socket.c | 1391 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1391 insertions(+), 0 deletions(-) diff --git ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 11/12] net-caif: add CAIF documentation
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Documentation of the CAIF Protocol. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- Documentation/networking/caif/Linux-CAIF.txt | 212 ++++++++++++++++++++++++++ Documentation/networking/caif/README | 110 +++++++++++++ 2 files changed, 322 insertions(+), 0 deletions(-) diff --git a/Documentation/networking/caif/Linux-CAIF.txt b/Documentation/networking/caif/Linux-CAIF.txt new file mode 100644 index ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 10/12] net-caif: add CAIF Kconfig ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Kconfig and Makefiles with options for: CAIF: Including caif CAIF_DEBUG: CAIF Debug CAIF_NETDEV: CAIF Network Device for GPRS Contexts Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- net/Kconfig | 2 ++ net/Makefile | 1 + net/caif/Kconfig | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ net/caif/Makefile | 27 +++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 0 ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 12/12] net-caif-driver: add CAIF ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Add CAIF Serial driver. This driver is implemented as a line discipline. caif_serial uses the following module parameters: ser_use_stx - specifies if STart of frame eXtension is in use. ser_loop - sets the interface in loopback mode. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- drivers/net/Kconfig | 2 + drivers/net/Makefile | 1 + drivers/net/caif/Kconfig | 15 ++ ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 09/12] net-caif: add CAIF netdevice
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Adding GPRS Net Device for PDP Contexts. The device can be managed by RTNL as defined in if_caif.h. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- net/caif/chnl_net.c | 451 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 451 insertions(+), 0 deletions(-) diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c new file mode 100644 index 0000000..73e639d --- /dev/null +++ ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 05/12] net-caif: add CAIF core pr ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> CAIF generic protocol implementation. This layer is somewhat generic in order to be able to use and test it outside the Linux Kernel. cfctrl.c - CAIF control protocol layer cfdbgl.c - CAIF debug protocol layer cfdgml.c - CAIF datagram protocol layer cffrml.c - CAIF framing protocol layer cfmuxl.c - CAIF mux protocol layer cfrfml.c - CAIF remote file manager protocol layer cfserl.c - CAIF serial ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 04/12] net-caif: add CAIF Link la ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Header files for CAIF Link layer net-device, and link-layer registration. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- include/net/caif/caif_dev.h | 90 ++++++++++++++++++++++++++++++++++++++++ include/net/caif/caif_device.h | 56 +++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 0 deletions(-) diff --git a/include/net/caif/caif_dev.h b/include/net/caif/caif_dev.h new file mode ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 02/12] net-caif: add CAIF socket ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Add CAIF types for Socket Address, Socket Options, and configuration parameters for the GPRS IP network interface. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- include/linux/caif/caif_socket.h | 164 ++++++++++++++++++++++++++++++++++++++ include/linux/caif/if_caif.h | 34 ++++++++ 2 files changed, 198 insertions(+), 0 deletions(-) diff --git a/include/linux/caif/caif_socket.h ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 00/12] net-caif: introducing CAIF ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> This patch-set introduces the CAIF protocol Stack. The "Communication CPU to Application CPU Interface" (CAIF) is a packet based connection-oriented MUX protocol developed by ST-Ericsson for use with its modems. Changes since v6: - Added STREAM socket support and various bug-fixes in caif_socket.c - Bugfixes and cleanup in caif_serial.c - Bugfix handling unsuccessful connect in cfctrl.c - Bugfix in chnl_net.c, run close in work queue ...
Mar 29, 3:11 pm 2010
sjur.brandeland
[PATCH net-next-2.6 v7 01/12] net-caif: add CAIF protoco ...
From: Sjur Braendeland <sjur.brandeland@stericsson.com> Add CAIF definitions to existing header files. Files: if_arp.h, if_ether.h, socket.h. Types: ARPHRD_CAIF, ETH_P_CAIF, AF_CAIF, PF_CAIF, SOL_CAIF, N_CAIF Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> --- include/linux/if_arp.h | 1 + include/linux/if_ether.h | 1 + include/linux/socket.h | 5 ++++- 3 files changed, 6 insertions(+), 1 deletions(-) diff --git a/include/linux/if_arp.h ...
Mar 29, 3:11 pm 2010
Stephen Hemminger
Re [RFC PATCH 1/2] iproute2: Add libnl support.
No. I don't want to make iproute2 dependent on libnl. It doesn't make sense to have dependency without major need for new functionality. There are already netlink library routines in iproute2 --
Mar 29, 2:06 pm 2010
David Miller
[GIT] Networking
1) Intel drivers change tx_queue_len on link speed change and this can very seriously screw configs up on people, particularly wrt. packet scheduler setups. From Emil Tantilov. 2) In IXGBE, if FIP negotatiation frames don't get steered to the FCoE queues, drops can happen because FCoE frames going through the switches can send packets larger than the standard MTU and we must accept them. Fix from Chris Leech. 3) The long overdue fix for the r8169 CVE length check issue. ...
Mar 29, 1:45 pm 2010
chavey
[PATCH 1/1] fix net/core/dst.c coding style error and warnings
Fix coding style errors and warnings output while running checkpatch.pl on the file net/core/dst.c. Signed-off-by: chavey <chavey@google.com> --- net/core/dst.c | 41 ++++++++++++++++++++--------------------- 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/net/core/dst.c b/net/core/dst.c index cb1b348..2076d84 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -43,7 +43,7 @@ static atomic_t dst_total = ATOMIC_INIT(0); */ static struct { ...
Mar 29, 1:41 pm 2010
Luis R. Rodriguez
Re: [PATCH] Net: wireless: ath: fix macros coding style ...
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com> Luis --
Mar 29, 3:24 pm 2010
Luis de Bethencourt
[PATCH] Net: wireless: ath: fix macros coding style issu ...
From: Luis de Bethencourt <luisbg@openshine.com> This is a patch to the ath/hw.c file that fixes up a warning about macros found by the checkpatch.pl tool, that said that complex values should be enclosed in parenthesis. Signed-off-by: Luis de Bethencourt <luisbg@ubuntu.com> --- drivers/net/wireless/ath/hw.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/hw.c b/drivers/net/wireless/ath/hw.c index ecc9eb0..a8f81ea 100644 --- ...
Mar 29, 1:34 pm 2010
David Miller
Re: pull request: wireless-next-2.6 2010-03-29
From: "John W. Linville" <linville@tuxdriver.com> Pulled, thanks John! --
Mar 29, 2:00 pm 2010
John W. Linville
pull request: wireless-next-2.6 2010-03-29
Dave, Another dump of stuff intended for 2.6.35...nothing too unusual, mostly driver updates and some random cleanups. Please let me know if there are problems! Thanks, John --- The following changes since commit 30bde1f5076a9b6bd4b6a168523930ce242c7449: Stephen Rothwell (1): rps: fix net-sysfs build for !CONFIG_RPS are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6.git master Amitkumar Karwar (1): ...
Mar 29, 1:13 pm 2010
Elina Pasheva
re-submit2 [ANNOUNCEMENT] NET: usb: sierra_net.c driver
Subject: re-submit2 [ANNOUNCEMENT] NET: usb: sierra_net.c driver From: Elina Pasheva <epasheva@sierrawireless.com> re-submit2: Consolidated diffstat output. Re-submitting based on comments from netdev community. Summary of the changes: 1. Replaced flag FLAG_ETHER with FLAG_WWAN. 2. Fixed the e-mail address for Rory Filer. The following is a new Linux driver which exposes certain models of Sierra Wireless modems to the operating system as Network Interface Cards (NICs). This driver ...
Mar 29, 1:13 pm 2010
Dominik Brodowski Mar 29, 12:32 pm 2010
Stephen Rothwell
Re: [PATCH 09/17] pcmcia: update gfp/slab.h includes
Hi Dominik, The plan here is for you to put this in your tree now. It is safe to do so and Tejun can't carry it because this does not apply to mainline. Thanks. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/
Mar 29, 4:31 pm 2010
Marc Zyngier
[PATCH] Add hotplug support to mcp251x driver
Chip model can now be selected directly by matching the modalias name (instead of filling the .model field in platform_data), and allows the module to be auto-loaded. Previous behaviour is of course still supported. Convert the two in-tree users to this feature (icontrol & zeus). Tested on an Zeus platform (mcp2515). Signed-off-by: Marc Zyngier <maz@misterjones.org> Acked-by: Christian Pellegrin <chripell@fsfe.org> Cc: Edwin Peer <epeer@tmtservices.co.za> --- arch/arm/mach-pxa/icontrol.c ...
Mar 29, 11:57 am 2010
Elina Pasheva
re-submit [ANNOUNCEMENT] NET: usb: sierra_net.c driver
Subject: re-submit [ANNOUNCEMENT] NET: usb: sierra_net.c driver From: Elina Pasheva <epasheva@sierrawireless.com> Re-submitting based on comments from netdev community. Summary of the changes: 1. Replaced flag FLAG_ETHER with FLAG_WWAN. 2. Fixed the e-mail address for Rory Filer. The following is a new Linux driver which exposes certain models of Sierra Wireless modems to the operating system as Network Interface Cards (NICs). This driver requires a version of the sierra.c driver which ...
Mar 29, 11:41 am 2010
Greg KH
Re: re-submit [ANNOUNCEMENT] NET: usb: sierra_net.c driver
Um, what did you use to generate this diff? You modified more than just one file, all of them should show up in the diffstat. wierd, greg k-h --
Mar 29, 11:50 am 2010
Shirley Ma
[PATCH next-next-2.6] virtio_net: missing sg_init_table
Add missing sg_init_table for sg_set_buf in virtio_net. Reported-by: Thomas Müller <thomas@mathtm.de> Signed-off-by: Shirley Ma <xma@us.ibm.com> --- drivers/net/virtio_net.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 25dc77c..3f5be35 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -326,6 +326,7 @@ static int add_recvbuf_small(struct virtnet_info *vi, gfp_t gfp) struct ...
Mar 29, 11:31 am 2010
=?UTF-8?B?VGhvbWFzIE ...
Re: [PATCH next-next-2.6] virtio_net: missing sg_init_table
I've just tested the patch and it works fine, so I guess you can add a Tested-by: Thomas Müller <thomas@mathtm.de> line, if you like. Thanks, --
Mar 29, 12:31 pm 2010
Sebastien Jan
[RFC PATCH 0/2] ks8851: support for read/write MAC addre ...
Hello, I needed to program a mac address to the companion eeprom of our ks8851, and wrote the following patches, which use debug-fs as interface. I then realized that this seemed not the usual way to access net controller eeproms (ethtool seems the more standard way). I am very interesed in getting your feedbacks on the following: 1) Does it make any sense to you to use this debug-fs interface to read/write the mac address (advantage: no need for user to know how ks8851 manages the eeprom ...
Mar 29, 11:17 am 2010
Sebastien Jan
[RFC PATCH 2/2] ks8851: Support MAC address read from co ...
The patch adds the capability to read the MAC address stored in the ks8851 companion EEPROM (if any) through debugfs. cat <debugfs path>/ks8851/mac_eeprom => will output the MAC address stored in EEPROM Note that this feature is supported from ks8851 controller revisions greater than 0. Signed-off-by: Sebastien Jan <s-jan@ti.com> --- drivers/net/ks8851.c | 167 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 165 insertions(+), 2 deletions(-) diff --git ...
Mar 29, 11:17 am 2010
Sebastien Jan
[RFC PATCH 1/2] ks8851: Support MAC address write to com ...
The ks8851_write_mac_addr() function upates the MAC address stored in the ks8851 controler and used for ethernet traffic, but does not store the MAC address to the companion EEPROM. This patch implements a debugfs entry for writing the MAC address to the ks8851 companion EEPROM (if there is any): ks8851/mac_eeprom echo "01:23:45:67:89:AB" > <debugfs path>/ks8851/mac_eeprom => writes the MAC address. The companion EEPROM size can be configured through another debug-fs entry: ...
Mar 29, 11:17 am 2010
Stephen Hemminger
[PATCH 0/3] sky2 minor driver updates
These are minor changes related to chip versions as described in current Marvell driver. -- --
Mar 29, 10:36 am 2010
Stephen Hemminger
[PATCH 1/3] sky2: support Yukon EC_U rev B1 and later
Need to change logic to support later versions of Yukon 2 EC_U chip. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> --- a/drivers/net/sky2.c 2010-03-29 08:48:16.490429444 -0700 +++ b/drivers/net/sky2.c 2010-03-29 09:27:36.485594685 -0700 @@ -876,6 +876,10 @@ static void sky2_mac_init(struct sky2_hw if (hw->dev[port]->mtu > ETH_DATA_LEN) reg |= GM_SMOD_JUMBO_ENA; + + if (hw->chip_id == CHIP_ID_YUKON_EC_U && + hw->chip_rev == CHIP_REV_YU_EC_U_B1) + reg |= ...
Mar 29, 10:36 am 2010
Stephen Hemminger
[PATCH 2/3] sky2: add XL revisions
Add definitions for Yukon XL revisions. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> --- a/drivers/net/sky2.h 2010-03-29 09:25:32.122900699 -0700 +++ b/drivers/net/sky2.h 2010-03-29 09:27:47.582049092 -0700 @@ -548,6 +548,14 @@ enum { CHIP_ID_YUKON_UL_2 = 0xba, /* YUKON-2 Ultra 2 */ CHIP_ID_YUKON_OPT = 0xbc, /* YUKON-2 Optima */ }; + +enum yukon_xl_rev { + CHIP_REV_YU_XL_A0 = 0, + CHIP_REV_YU_XL_A1 = 1, + CHIP_REV_YU_XL_A2 = 2, + CHIP_REV_YU_XL_A3 = 3, +}; + ...
Mar 29, 10:36 am 2010
Stephen Hemminger
[PATCH 3/3] sky2: avoid duplicate link up on Optima chip
The Optima version has feature to detect link quickly without PHY interrupt, but it causes duplicate link up events. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> --- a/drivers/net/sky2.c 2010-03-29 10:29:17.530956219 -0700 +++ b/drivers/net/sky2.c 2010-03-29 10:29:18.261894374 -0700 @@ -2146,7 +2146,8 @@ static void sky2_phy_intr(struct sky2_hw istatus, phystat); if (istatus & PHY_M_IS_AN_COMPL) { - if (sky2_autoneg_done(sky2, phystat) == 0) + if ...
Mar 29, 10:36 am 2010
Ira W. Snyder
[PATCH 2/3] can: add support for Janz VMOD-ICAN3 Intelli ...
The Janz VMOD-ICAN3 is a MODULbus daughterboard which fits onto any MODULbus carrier board. It is an intelligent CAN controller with a microcontroller and associated firmware. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> --- drivers/net/can/Kconfig | 10 + drivers/net/can/Makefile | 1 + drivers/net/can/janz-ican3.c | 1830 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1841 insertions(+), 0 deletions(-) create mode 100644 ...
Mar 29, 9:58 am 2010
Ira W. Snyder
[PATCH 3/3] gpio: add support for Janz VMOD-TTL Digital ...
The Janz VMOD-TTL is a MODULbus daughterboard which fits onto any MODULbus carrier board. It essentially consists of some various logic and a Zilog Z8536 CIO Counter/Timer and Parallel IO Unit. The board must be physically configured with jumpers to enable a user to drive output signals. I am only interested in outputs, so I have made this driver as simple as possible. It only supports a very minimal subset of the features provided by the Z8536 chip. Signed-off-by: Ira W. Snyder ...
Mar 29, 9:58 am 2010
Ira W. Snyder
[PATCH 1/3] mfd: add support for Janz CMOD-IO PCI MODULb ...
The Janz CMOD-IO PCI MODULbus carrier board is a PCI to MODULbus bridge, which may host many different types of MODULbus daughterboards, including CAN and GPIO controllers. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Reviewed-by: Wolfgang Grandegger <wg@grandegger.com> --- drivers/mfd/Kconfig | 10 ++ drivers/mfd/Makefile | 1 + drivers/mfd/janz-cmodio.c | 302 +++++++++++++++++++++++++++++++++++++++++++++ include/linux/mfd/janz.h | 54 ++++++++ ...
Mar 29, 9:58 am 2010
Ira W. Snyder
[PATCH 0/3] add support for Janz MODULbus devices
This patch series adds support for the Janz CMOD-IO carrier board, as well as the Janz VMOD-ICAN3 Intelligent CAN controller and the Janz VMOD-TTL Digital IO controller. The CMOD-IO carrier board is a PCI to MODULbus bridge, into which plug MODULbus daughterboards. I only have access to two types of daughtercards, the VMOD-ICAN3 and VMOD-TTL boards mentioned above. The CAN driver has been tested under high loads. I am able to generate ~60% bus utilization. With two VMOD-ICAN3 boards looped back ...
Mar 29, 9:58 am 2010
David Miller
Re: [PATCH] r8169: offical fix for CVE-2009-4537 (overle ...
From: Ben Hutchings <ben@decadent.org.uk> As far as we know all chip variants seem to have the problem. Furthermore, this issue has been known about and investigated for about 3 months. In that time no better options for handling this issue reliably have been discovered and implemented. Feel free to code up (and test) something better yourself if you don't like the fix as it exists currently. :-) --
Mar 29, 3:09 pm 2010
Ben Hutchings
Re: [PATCH] r8169: offical fix for CVE-2009-4537 (overle ...
[...] I have to say that this compromise behaviour is highly non-obvious. Further, there is now no way to set a non-standard MTU without enabling the insecure behaviour. (This is in part a flaw in the driver interface, of course. We should have an interface to get and set MRU rather than making drivers decide an MRU based on the MTU, inconsistently and without any visibility to the administrator.) It also sucks that the secure but low-performance behaviour is enabled for all variants, ...
Mar 29, 3:01 pm 2010
Ben Hutchings
Re: [PATCH] r8169: offical fix for CVE-2009-4537 (overle ...
That's not what I understood from the discussion of the early I would have had a go already, if I actually had some of this hardware to hand. Luckily I have managed to avoid buying any so far. But if anyone is prepared to loan me a NIC then I promise to have a go at it. Ben. -- Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse.
Mar 29, 3:21 pm 2010
Neil Horman
[PATCH] r8169: offical fix for CVE-2009-4537 (overlength ...
Official patch to fix the r8169 frame length check error. Based on this initial thread: http://marc.info/?l=linux-netdev&m=126202972828626&w=1 This is the official patch to fix the frame length problems in the r8169 driver. As noted in the previous thread, while this patch incurs a performance hit on the driver, its possible to improve performance dynamically by updating the mtu and rx_copybreak values at runtime to return performance to what it was for those NICS which are unaffected by the ...
Mar 29, 9:03 am 2010
David Miller
Re: [PATCH] r8169: offical fix for CVE-2009-4537 (overle ...
From: Neil Horman <nhorman@tuxdriver.com> Applied, thanks a lot Neil. --
Mar 29, 1:17 pm 2010
Neil Horman
Re: [PATCH] r8169: offical fix for CVE-2009-4537 (overle ...
As dave mentioned, we have no conclusive evidence that only certain chip variants show the behavior. realtek hasn't said anything about it one way or the other. AFAIK, all you need to do to test given chip is try to receive a frame thats longer than configured receive filter. I only had one NIC variant I only had the one variant that failed. My hope was to make them all safe, and, should any variants be found in the field that didn't exhibit the behavior, we could whitelist them as they got ...
Mar 29, 4:44 pm 2010
YOSHIFUJI Hideaki
[PATCH net-next-2.6 (TAKE 2)] ipv6: Use __fls() instead ...
Because we have ensured that the argument is non-zero, it is better to use __fls() and generate better code. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> --- include/net/ipv6.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/ipv6.h b/include/net/ipv6.h index e72fb10..033ddd4 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -422,7 +422,7 @@ static inline int __ipv6_addr_diff(const void *token1, const void *token2, int a for ...
Mar 29, 9:00 am 2010
=?UTF-8?B?UGF3ZcWCIF ...
eth1: Detected Hardware Unit Hang
After update to kernel from 2.6.29.1 to 2.6.33.1 i have this info in dmesg: 0000:05:00.0: eth1: Detected Hardware Unit Hang: TDH <1e> TDT <a> next_to_use <a> next_to_clean <1d> buffer_info[next_to_clean]: time_stamp <33bae15> next_to_watch <20> jiffies <33bafaf> next_to_watch.status <0> MAC Status <80080783> PHY Status <796d> PHY 1000BASE-T Status <3800> PHY Extended Status <3000> PCI Status <10> 0000:05:00.0: eth1: Detected Hardware Unit Hang: TDH <1e> ...
Mar 29, 8:33 am 2010
Allan, Bruce W
RE: eth1: Detected Hardware Unit Hang
[adding e1000-devel] Please provide more information: * what NIC/LOM is this on (preferably send full output from lspci -vvv) * what type of networking workload is running at the time the hang occurred * a dump of the NIC/LOM statistics might also help (ethtool -S eth1) Have you tried the latest standalone e1000e driver on e1000.sf.net? Does it reproduce the issue? If we cannot reproduce the hang in-house, would you be able/willing to run a debug driver to gather more ...
Mar 29, 9:41 am 2010
=?ISO-8859-2?Q?Pawe= ...
Re: eth1: Detected Hardware Unit Hang
lspci -vvv + ethtool -S in attached files. Network traffic when i get this info: eth1: RX: 157.22 Mb/s TX: 379.27 Mb/s ethtool -i eth1 driver: e1000e version: 1.0.2-k2 firmware-version: 0.5-7 bus-info: 0000:05:00.0 This is: Intel Corporation 82573L Gigabit Ethernet Controller But in this server i have another gigabit interface: Intel Corporation 82573E Gigabit Ethernet Controller this interface has two times more traffic than eth0 (82573L) ethtool -i eth0 driver: ...
Mar 29, 10:29 am 2010
=?ISO-8859-2?Q?Pawe= ... Mar 29, 10:36 am 2010
Daniel Mack
[PATCH] net/wireless/libertas: do not call wiphy_unregis ...
The libertas driver calls wiphy_unregister() without a prior wiphy_register() when a devices fails initialization. Fix this by introducing a private flag. [ 9.310000] Unable to handle kernel NULL pointer dereference at virtual address 00000000 [...] [ 9.330000] [<c0311310>] (wiphy_unregister+0xfc/0x19c) from [<bf00c9ec>] (lbs_cfg_free+0x70/0x9c [libertas]) [ 9.330000] [<bf00c9ec>] (lbs_cfg_free+0x70/0x9c [libertas]) from [<bf014fdc>] (lbs_remove_card+0x180/0x210 [libertas]) [ ...
Mar 29, 8:14 am 2010
Marco
Re: Question for iproute
Can you help please? ---fine del testo--- -- Messaggio da Marco -------------------------------------------------------------------- Meglio coltivare GNU/Linux...... tanto Windows si pianta da solo!!!! --
Mar 29, 7:37 am 2010
UBS International Ho ...
(No subject)
UBS International Holdings BV Herengracht 600 NL-1017 CJ Amsterdam, Netherlands. www.ubs.com/investmentbank Greetings, I am an investment consultant working with UBS International Holdings BV in the Netherlands. I will be happy to work a transaction of $8.5million out with you if you have a corporate or personal bank Account. If you are interested, get back to me via my private email for further informations; hhbeuker@live.nl I look forward to hearing from you as soon as possible and ...
Mar 29, 6:47 am 2010
Timo Teras
[PATCH 0/7] caching bundles, iteration 2
This is the current dump of my working tree. The first three patches should be good already. The patches 4-7 are more of experimental. And patch 6 has currently a "bundle leak". If we have per-socket policy that results in requiring a bundle, it's never freed. I'm not yet exactly sure how to deal with that. Probably should keep the bundles not associated with a flow cache entry in their own global list, which should get garbage collected periodically. Timo Teras (7): xfrm: remove policy ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 3/7] flow: allocate hash table for online cpus only
Instead of unconditionally allocating hash table for all possible cpu's, allocate it only for online cpu's and release related memory if cpu goes down. Signed-off-by: Timo Teras <timo.teras@iki.fi> --- net/core/flow.c | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/net/core/flow.c b/net/core/flow.c index 1d27ca6..104078d 100644 --- a/net/core/flow.c +++ b/net/core/flow.c @@ -309,36 +309,49 @@ void ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 6/7] xfrm: cache bundles instead of policies for ...
__xfrm_lookup() is called for each packet transmitted out of system. The xfrm_find_bundle() does a linear search which can kill system performance depending on how many bundles are required per policy. This modifies __xfrm_lookup() to store bundles directly in the flow cache. If we did not get a hit, we just create a new bundle instead of doing slow search. This means that we can now get multiple xfrm_dst's for same flow (on per-cpu basis). BUGGY: Currently leaks bundles if a per-socket ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 7/7] xfrm: remove policy garbage collection
Policies are now properly reference counted and destroyed from all code paths. The delayed gc is just an overhead now and can be removed. Signed-off-by: Timo Teras <timo.teras@iki.fi> --- net/xfrm/xfrm_policy.c | 39 +++++---------------------------------- 1 files changed, 5 insertions(+), 34 deletions(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 11fb48d..0ae5768 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -44,9 +44,6 @@ static struct ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 4/7] flow: delayed deletion of flow cache entries
Speed up lookups by freeing flow cache entries later. This is also in preparation to have virtual entry destructor that might do more work. As gc_list is more effective with double linked list, the flow cache is converted to use common hlist and list macroes where appropriate. Signed-off-by: Timo Teras <timo.teras@iki.fi> --- net/core/flow.c | 112 ++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 79 insertions(+), 33 deletions(-) diff --git a/net/core/flow.c ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 5/7] flow: virtualize get and entry deletion methods
This allows to validate the cached object before returning it. It also allows to destruct object properly, if the last reference was held in flow cache. This is also a prepartion for caching bundles in the flow cache. In return for virtualizing the methods, we save on: - not having to regenerate the whole flow cache on policy removal: each flow matching a killed policy gets refreshed as the getter function notices it smartly. - we do not have to call flow_cache_flush from policy gc, since ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 2/7] flow: structurize flow cache
Group all per-cpu data to one structure instead of having many globals. Also prepare the internals so that we can have multiple instances of the flow cache if needed. Only the kmem_cache is left as a global as all flow caches share the same element size, and benefit from using a common cache. Signed-off-by: Timo Teras <timo.teras@iki.fi> --- net/core/flow.c | 223 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 119 insertions(+), 104 deletions(-) diff --git ...
Mar 29, 7:12 am 2010
Timo Teras
[PATCH 1/7] xfrm: remove policy lock when accessing poli ...
All of the code considers ->dead as a hint that the cached policy needs to get refreshed. The read side can just drop the read lock without any side effects. The write side needs to make sure that it's written only exactly once. Only possible race is at xfrm_policy_kill(). This is fixed by checking result of __xfrm_policy_unlink() when needed. It will always succeed if the policy object is looked up from the hash list (so some checks are removed), but it needs to be checked if we are trying to ...
Mar 29, 7:12 am 2010
Herbert Xu
Re: [PATCH 1/7] xfrm: remove policy lock when accessing ...
So when can this actually fail? Otherwise this patch looks good to me. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 7:43 am 2010
Markus Feldmann
which stable PCI DSL Modem card
Hi All, i am searching for a stable PCI DSL Modem card for Linux (Debian Lenny). It should be exist a driver in the Kernel not extra software driver. I have a 6000MBit/s DSL wire. Does anybody know some interesting device for me? Any further information? Regards Markus --
Mar 29, 6:55 am 2010
Amit Kumar Salecha
[PATCH NEXT 0/5]netxen: fw file validation and fixes
Hi Series of 5 patches to validate unified rom image and bug fixes. Please apply them on net-next-2.6 branch. -Amit --
Mar 29, 5:43 am 2010
Amit Kumar Salecha
[PATCH NEXT 4/5] netxen: fix fw load from file
Rarely: Fw file size can be unaligned to 8. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> --- drivers/net/netxen/netxen_nic_init.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index 141bc43..439f3e8 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -1019,6 +1019,16 @@ netxen_load_firmware(struct netxen_adapter ...
Mar 29, 5:43 am 2010
Amit Kumar Salecha
[PATCH NEXT 2/5] netxen: fix corner cases of firmware recovery
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> o DEV_NEED_RESET state was not handled during fw intialization phase. o nx_decr_dev_ref_cnt() can return error, if fail to grab pcie seamphore. --- drivers/net/netxen/netxen_nic_main.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 08780ef..68903bf 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ ...
Mar 29, 5:43 am 2010
Amit Kumar Salecha
[PATCH NEXT 3/5] netxen: validate unified romimage
From: Rajesh K Borundia <rajesh.borundia@qlogic.com> Signed-off-by: Rajesh K Borundia <rajesh.borundia@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Validate all sections of unified romimage, before accessing them, to avoid seg fault. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> --- drivers/net/netxen/netxen_nic.h | 1 - drivers/net/netxen/netxen_nic_init.c | 154 ++++++++++++++++++++++++++++++--- 2 files changed, 140 insertions(+), 15 ...
Mar 29, 5:43 am 2010
Amit Kumar Salecha
[PATCH NEXT 5/5] netxen: fix interrupt for NX2031
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> For NX2031, msix is supported from fw version > 3.4.336. This fw version check should take flash fw in consider instead of running fw or fw from file. --- drivers/net/netxen/netxen_nic_main.c | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 68903bf..f1daa9a 100644 --- ...
Mar 29, 5:43 am 2010
Amit Kumar Salecha
[PATCH NEXT 1/5] netxen: fix tx csum status
From: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Kernel default tx csum function (ethtool_op_get_tx_csum) doesn't show correct csum status. It takes various FLAGS (NETIF_F_ALL_CSUM) in account to show tx csum status, which driver doesn't set while disabling tx csum. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> --- drivers/net/netxen/netxen_nic_ethtool.c | 6 ++++++ 1 files changed, 6 ...
Mar 29, 5:43 am 2010
David Miller
Re: [PATCH NEXT 0/5]netxen: fw file validation and fixes
From: Amit Kumar Salecha <amit.salecha@qlogic.com> All applied, thank you. --
Mar 29, 1:18 pm 2010
Michal Simek
Network performance - iperf
Hi All, I am doing several network benchmarks on Microblaze cpu with MMU. I am seeing one issue which is weird and I would like know where the problem is. I am using the same hw design and the same Linux kernel. I have done only change in memory size (in DTS). 32MB: 18.3Mb/s 64MB: 15.2Mb/s 128MB: 10.6Mb/s 256MB: 3.8Mb/s There is huge difference between systems with 32MB and 256MB ram. I am running iperf TCP tests with these commands. On x86: iperf -c 192.168.0.105 -i 5 -t 50 On ...
Mar 29, 4:33 am 2010
Eric Dumazet
Re: Network performance - iperf
Could you post "netstat -s" on your receiver, after fresh boot and your iperf session, for 32 MB and 256 MB ram case ? --
Mar 29, 5:16 am 2010
Michal Simek
Re: Network performance - iperf
I am not sure if is helpful but look below. Thanks, Michal ~ # ./netstat -s Ip: 0 total packets received 0 forwarded 0 incoming packets discarded 0 incoming packets delivered 0 requests sent out Icmp: 0 ICMP messages received 0 input ICMP message failed. ICMP input histogram: 0 ICMP messages sent 0 ICMP messages failed ICMP output histogram: Tcp: 0 active connections openings 0 passive connection openings 0 ...
Mar 29, 7:54 am 2010
Michal Simek
Re: Network performance - iperf
Sorry I forget to c&p that second part. :-( Look below. Michal 32MB ~ # cat /proc/meminfo | head -n 1 MemTotal: 30024 kB ~ # iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 6] local 192.168.0.10 port 5001 connected with 192.168.0.101 port 43577 [ ID] Interval Transfer Bandwidth [ 6] 0.0-50.0 sec 78.0 MBytes ...
Mar 29, 8:27 am 2010
Rick Jones
Re: Network performance - iperf
I don't know how to set fixed socket buffer sizes in iperf, if you were running netperf though I would suggest fixing the socket buffer sizes with the test-specific -s (affects local) and -S (affects remote) options: netperf -t TCP_STREAM -H <remote> -l 30 -- -s 32K -S 32K -m 32K to test the hypothesis that the autotuning of the socket buffers/window size is allowing the windows to grow in the larger memory cases beyond what the TLB in your processor is comfortable with. Particularly if ...
Mar 29, 9:47 am 2010
Rick Jones
Re: Network performance - iperf
BTW, by default, netperf will allocate a "ring" of send buffers - the number allocated will be one more than the socket buffer size divided by the send size - so in the example above, there will be two 32KB buffers allocated in netperf's send ring. A similar calculation may happen on the receive side. That can be controlled via the global (before the "--") -W option. -W send,recv Set the number of send,recv buffers So, you might make the netperf command: netperf -t ...
Mar 29, 9:57 am 2010
Eric Dumazet
Re: Network performance - iperf
Sorry, your netstat is not up2date. If you cannot correct it to last version [ net-tools 1.60 , netstat 1.42 ], please send cat /proc/net/snmp cat /proc/net/netstat --
Mar 29, 10:45 am 2010
Eric Dumazet
Re: Network performance - iperf
This probably has nothing to do with tcp stack, but trashing tlb on some pathological cases (you have 62 entries, thats good for working size up to 248 Kbytes, all included (program stack, program static & dynamic data), given microblaze 4Kbytes page size. You could try : echo "4096 8192 32768" >/proc/sys/net/ipv4/tcp_rmem to reduce memory footprint of iperf (or use iperf parameters) Of course, I suppose kernel memory is 32 MB max, if you use only two tlbs (16 Mbytes each) for ...
Mar 29, 1:07 pm 2010
YOSHIFUJI Hideaki
[PATCH net-next-2.6 3/3] bridge br_multicast: IPv6 MLD s ...
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> --- net/bridge/Kconfig | 6 +- net/bridge/br_multicast.c | 401 +++++++++++++++++++++++++++++++++++++++++++++ net/bridge/br_private.h | 3 + 3 files changed, 407 insertions(+), 3 deletions(-) diff --git a/net/bridge/Kconfig b/net/bridge/Kconfig index d115d5c..9190ae4 100644 --- a/net/bridge/Kconfig +++ b/net/bridge/Kconfig @@ -33,14 +33,14 @@ config BRIDGE If unsure, say N. config ...
Mar 29, 4:01 am 2010
YOSHIFUJI Hideaki
[PATCH net-next-2.6 2/3] bridge br_multicast: Make funct ...
Introduce struct br_ip{} to store ip address and protocol and make functions more generic so that we can support both IPv4 and IPv6 with less pain. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> --- net/bridge/br_multicast.c | 181 +++++++++++++++++++++++++++++++-------------- net/bridge/br_private.h | 12 +++- 2 files changed, 135 insertions(+), 58 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 9f0c4f0..5338574 100644 --- ...
Mar 29, 4:01 am 2010
Stephen Hemminger
Re: [PATCH net-next-2.6 2/3] bridge br_multicast: Make f ...
On Mon, 29 Mar 2010 20:01:27 +0900 Too messy with macros, I will fix. -- --
Mar 29, 9:12 am 2010
YOSHIFUJI Hideaki
[PATCH net-next-2.6 1/3] ipv6 mcast: Introduce include/n ...
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> --- include/net/mld.h | 75 +++++++++++++++++++++++++++++ net/ipv6/mcast.c | 135 ++++++++++++++++------------------------------------- 2 files changed, 115 insertions(+), 95 deletions(-) create mode 100644 include/net/mld.h diff --git a/include/net/mld.h b/include/net/mld.h new file mode 100644 index 0000000..ecc7553 --- /dev/null +++ b/include/net/mld.h @@ -0,0 +1,75 @@ +#ifndef LINUX_MLD_H +#define ...
Mar 29, 4:01 am 2010
James Chapman
[PATCH v2 00/12] l2tp: Introduce L2TPv3 support
This patch series adds L2TPv3 support. It splits the existing pppol2tp driver to separate its L2TP and PPP parts, then adds new L2TPv3 functionality. The patches implement a new socket family for L2TPv3 IP encapsulation, expose virtual netdevices for each L2TPv3 ethernet pseudowire and add a netlink interface. The following drivers are provided:- l2tp_core - L2TP driver core. Always required. l2tp_ppp - L2TP PPP (PPPoL2TP). L2TPv2 and L2TPv3. l2tp_eth - L2TPv3 ethernet ...
Mar 29, 2:56 am 2010
James Chapman
[PATCH v2 03/12] ppp: Add ppp_dev_name() exported function
ppp_dev_name() gives PPP users visibility of a ppp channel's device name. This can be used by L2TP drivers to dump the assigned PPP interface name. Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> --- drivers/net/ppp_generic.c | 19 +++++++++++++++++++ include/linux/ppp_channel.h | 3 +++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 6d61602..8a0dd8a ...
Mar 29, 2:56 am 2010
James Chapman
[PATCH v2 01/12] l2tp: Relocate pppol2tp driver to new n ...
This patch moves the existing pppol2tp driver from drivers/net into a new net/l2tp directory, which is where the upcoming L2TPv3 code will live. The existing CONFIG_PPPOL2TP config option is left in its current place to avoid "make oldconfig" issues when an existing pppol2tp user takes this change. (This is the same approach used for the pppoatm driver, which moved to net/atm.) There are no code changes. The existing drivers/net/pppol2tp.c is simply moved to net/l2tp. Signed-off-by: James ...
Mar 29, 2:56 am 2010
James Chapman
[PATCH v2 02/12] l2tp: Split pppol2tp patch into separat ...
This patch splits the pppol2tp driver into separate L2TP and PPP parts to prepare for L2TPv3 support. In L2TPv3, protocols other than PPP can be carried, so this split creates a common L2TP core that will handle the common L2TP bits which protocol support modules such as PPP will use. Note that the existing pppol2tp module is split into l2tp_core and l2tp_ppp by this change. There are no feature changes here. Internally, however, there are significant changes, mostly to handle the separation ...
Mar 29, 2:56 am 2010
James Chapman
[PATCH v2 04/12] l2tp: Add ppp device name to L2TP ppp s ...
When dumping L2TP PPP sessions using /proc/net/l2tp, get the assigned PPP device name from PPP using ppp_dev_name(). Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> --- net/l2tp/l2tp_ppp.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index 03195ab..8f78c27 100644 --- a/net/l2tp/l2tp_ppp.c +++ b/net/l2tp/l2tp_ppp.c @@ -608,6 +608,20 @@ out: ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 05/12] l2tp: Add L2TPv3 protocol support
The L2TPv3 protocol changes the layout of the L2TP packet header. Tunnel and session ids change from 16-bit to 32-bit values, data sequence numbers change from 16-bit to 24-bit values and PPP-specific fields are moved into protocol-specific subheaders. Although this patch introduces L2TPv3 protocol support, there are no userspace interfaces to create L2TPv3 sessions yet. Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> --- ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 06/12] l2tp: Update PPP-over-L2TP driver to wo ...
This patch makes changes to the L2TP PPP code for L2TPv3. The existing code has some assumptions about the L2TP header which are broken by L2TPv3. Also the sockaddr_pppol2tp structure of the original code is too small to support the increased size of the L2TPv3 tunnel and session id, so a new sockaddr_pppol2tpv3 structure is needed. In the socket calls, the size of this structure is used to tell if the operation is for L2TPv2 or L2TPv3. Signed-off-by: James Chapman ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 08/12] netlink: Export genl_lock() API for use ...
This lets kernel modules which use genl netlink APIs serialize netlink processing. Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> --- include/linux/genetlink.h | 8 ++++++++ net/netlink/genetlink.c | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h index b834ef6..61549b2 100644 --- a/include/linux/genetlink.h +++ b/include/linux/genetlink.h @@ ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 07/12] l2tp: Add L2TPv3 IP encapsulation (no U ...
This patch adds a new L2TPIP socket family and modifies the core to handle the case where there is no UDP header in the L2TP packet. L2TP/IP uses IP protocol 115. Since L2TP/UDP and L2TP/IP packets differ in layout, the datapath packet handling code needs changes too. Userspace uses an L2TPIP socket instead of a UDP socket when IP encapsulation is required. We can't use raw sockets for this because the semantics of raw sockets don't lend themselves to the socket-per-tunnel model - we need ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 10/12] l2tp: Add L2TP ethernet pseudowire support
This driver presents a regular net_device for each L2TP ethernet pseudowire instance. These interfaces are named l2tpethN by default, though userspace can specify an alternative name when the L2TP session is created, if preferred. When the pseudowire is established, regular Linux networking utilities may be used to configure the interface, i.e. give it IP address info or add it to a bridge. Any data passed over the interface is carried over an L2TP tunnel. Signed-off-by: James Chapman ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 09/12] l2tp: Add netlink control API for L2TP
In L2TPv3, we need to create/delete/modify/query L2TP tunnel and session contexts. The number of parameters is significant. So let's use netlink. Userspace uses this API to control L2TP tunnel/session contexts in the kernel. The previous pppol2tp driver was managed using [gs]etsockopt(). This API is retained for backwards compatibility. Unlike L2TPv2 which carries only PPP frames, L2TPv3 can carry raw ethernet frames or other frame types and these do not always have an associated ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 11/12] l2tp: Add support for static unmanaged ...
This patch adds support for static (unmanaged) L2TPv3 tunnels, where the tunnel socket is created by the kernel rather than being created by userspace. This means L2TP tunnels and sessions can be created manually, without needing an L2TP control protocol implemented in userspace. This might be useful where the user wants a simple ethernet over IP tunnel. A patch to iproute2 adds a new command set under "ip l2tp" to make use of this feature. This will be submitted separately. Signed-off-by: ...
Mar 29, 2:57 am 2010
James Chapman
[PATCH v2 12/12] l2tp: Update documentation
This patch adds documentation about the L2TPv3 functionality. Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> --- Documentation/networking/l2tp.txt | 233 ++++++++++++++++++++++++++++++++----- 1 files changed, 199 insertions(+), 34 deletions(-) diff --git a/Documentation/networking/l2tp.txt b/Documentation/networking/l2tp.txt index 63214b2..8b5a7b7 100644 --- a/Documentation/networking/l2tp.txt +++ ...
Mar 29, 2:57 am 2010
Eric Dumazet
Re: [PATCH v2 02/12] l2tp: Split pppol2tp patch into sep ...
Please use hash_32() here, its better in this case on 64 bit arches (32 bits in session_id) return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; --
Mar 29, 3:18 am 2010
Eric Dumazet
Re: [PATCH v2 11/12] l2tp: Add support for static unmana ...
I cant see how you use cfg->use_udp_checksums, something like : ? if (!cfg->use_udp_checksums) --
Mar 29, 3:40 am 2010
James Chapman
Re: [PATCH v2 11/12] l2tp: Add support for static unmana ...
Good point. I forgot to add control of UDP checksums for the kernel -- James Chapman Katalix Systems Ltd http://www.katalix.com Catalysts for your Embedded Linux software development --
Mar 29, 3:52 am 2010
Eric Dumazet
Re: [PATCH v2 10/12] l2tp: Add L2TP ethernet pseudowire ...
Not clear to me if caller of l2tp_eth_session_find_by_ifname() is able to do dev_put(dev); --
Mar 29, 4:05 am 2010
James Chapman
Re: [PATCH v2 10/12] l2tp: Add L2TP ethernet pseudowire ...
Good catch. If a device name were specified by the caller when creating the new session (usually the default name is used), a dev_put() is needed, since the dev_get_by_name() call is only used to test if a device with that name already exists. I'll roll a fix into the next -- James Chapman Katalix Systems Ltd http://www.katalix.com Catalysts for your Embedded Linux software development --
Mar 29, 5:10 am 2010
Hello
..Test Drew 2010.....
Your Email has won the South Africa 2010 W/Cup BONUS Promo held This Week, With a prize Amount of (US$1,Million) Send Your Name:Add: Tel: Age & Occp to Congratulation.ADV GEORGE NEGOTA --
Mar 29, 12:47 am 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 1/8] vxge: Fix a receive stall due t ...
- Fix a receive stall due to driver being out of synch with chip. In a corner case scenario the adapter's ring controller may return a RxD with transfer code of 0xC, while the host ownership bit is still set to the adapter. The driver needs to assume that this case where (host_ownership == 1 or adapter) and (transfer_code == 0xC) is valid, that is, this RxD has been returned by the receive ring controller but no frame data is associated with the rxd. - Restore the transfer code field of each ...
Mar 29, 1:07 am 2010
David Miller
Re: [net-next-2.6 PATCH 1/8] vxge: Fix a receive stall d ...
From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> Applied. --
Mar 29, 4:57 pm 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 2/8] vxge: Fix starvation of receive ...
- Fix starvation of receive ring controller when blasted by short packets. This was because the driver was posting 64 rxds initially while the ring controller was expecting to read 256 replenished rxds. While the driver was coming up, the internal rxd memory filled up the 64 buffers provided and the ring controller was left waiting for the remaining 192 rxds to complete the write back of completed rxds to the host and generation of an interrupt. Signed-off-by: Sreenivasa Honnur ...
Mar 29, 1:08 am 2010
David Miller
Re: [net-next-2.6 PATCH 2/8] vxge: Fix starvation of rec ...
From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> Applied. --
Mar 29, 4:57 pm 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 3/8] vxge: Align the memory only if ...
- Align the memory only if it is misaligned. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> --- diff -urpN patch2/drivers/net/vxge/vxge-config.h patch3/drivers/net/vxge/vxge-config.h --- patch2/drivers/net/vxge/vxge-config.h 2010-03-19 16:08:43.000000000 +0530 +++ patch3/drivers/net/vxge/vxge-config.h 2010-03-22 12:15:04.000000000 +0530 @@ -1914,20 +1914,32 @@ static inline void *vxge_os_dma_malloc(s gfp_t flags; ...
Mar 29, 1:09 am 2010
David Miller
Re: [net-next-2.6 PATCH 3/8] vxge: Align the memory only ...
From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> Applied, but this vxge_os_dma_malloc code is completely unnecessary. If you want to allocate 4K chunks and make sure they are at least 128 byte aligned, you can allocated pages (which are always PAGE_SIZE aligned) and chop them up into the appropriate block size as needed. This is exactly how drivers/net/niu.c handles this situation. See drivers/net/niu.c:niu_rbr_add_page() --
Mar 29, 4:59 pm 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 6/8] vxge: Set function-0 as the pri ...
- For Normal function (MR-IOV disabled, SR-IOV disabled) Function-0 is the privilaged function. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> --- diff -urpN patch5/drivers/net/vxge/vxge-config.c patch6/drivers/net/vxge/vxge-config.c --- patch5/drivers/net/vxge/vxge-config.c 2010-03-19 16:23:57.000000000 +0530 +++ patch6/drivers/net/vxge/vxge-config.c 2010-03-22 14:42:04.000000000 +0530 @@ -356,8 +356,10 @@ ...
Mar 29, 1:12 am 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 4/8] vxge: Fixed "ethtool -d" prints.
- Fixed "ethtool -d" prints - reg_space pointer was getting over written, updating it correctly. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> --- diff -urpN patch3/drivers/net/vxge/vxge-ethtool.c patch4/drivers/net/vxge/vxge-ethtool.c --- patch3/drivers/net/vxge/vxge-ethtool.c 2010-03-19 16:17:46.000000000 +0530 +++ patch4/drivers/net/vxge/vxge-ethtool.c 2010-03-19 16:22:15.000000000 +0530 @@ -108,7 +108,7 @@ static ...
Mar 29, 1:10 am 2010
David Miller
Re: [net-next-2.6 PATCH 4/8] vxge: Fixed "ethtool -d" prints.
From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> Applied. --
Mar 29, 4:59 pm 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 5/8] vxge: Fixed MSIX interrupt conf ...
- Fixed MSIX interrupt configuration to support non contiguous vpaths in functions. Four msi-x vectors are reserved per vpath internal to the chip. In all, there are 68 msi-x vectors for the 17 vpaths in the chip. In the multi function configurations, non-contiguous vpaths are configured to represent a function. For instance vpaths 0 and 8 can be configured to represent function zero. - If pci_enable_msix fails for the requested vectors, try with a lesser number vectors by reducing ...
Mar 29, 1:11 am 2010
David Miller
Re: [net-next-2.6 PATCH 5/8] vxge: Fixed MSIX interrupt ...
From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> Applied. --
Mar 29, 4:59 pm 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 8/8] vxge: Updating Maintainer list ...
- updating Maintainer list of S2IO 10GbE drivers (xframe / vxge). Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> --- diff -urpN orig/MAINTAINERS patch1/MAINTAINERS --- orig/MAINTAINERS 2010-03-22 15:03:44.000000000 +0530 +++ patch1/MAINTAINERS 2010-03-22 15:04:35.000000000 +0530 @@ -3767,7 +3767,6 @@ M: Ramkrishna Vepa <ram.vepa@neterion.co M: Rastapur Santosh <santosh.rastapur@neterion.com> M: Sivakumar Subramani ...
Mar 29, 1:13 am 2010
Sreenivasa Honnur
[net-next-2.6 PATCH 7/8] vxge: Version update.
- Version update Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> --- diff -urpN patch6/drivers/net/vxge/vxge-version.h patch7/drivers/net/vxge/vxge-version.h --- patch6/drivers/net/vxge/vxge-version.h 2010-03-22 14:40:32.000000000 +0530 +++ patch7/drivers/net/vxge/vxge-version.h 2010-03-26 15:56:29.000000000 +0530 @@ -17,7 +17,7 @@ #define VXGE_VERSION_MAJOR "2" #define VXGE_VERSION_MINOR "0" -#define ...
Mar 29, 1:13 am 2010
Stephen Rothwell
linux-next: build failure after merge of the final tree ...
Hi Dave, After merging the final tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: net/core/net-sysfs.c:476: warning: 'struct netdev_rx_queue' declared inside parameter list net/core/net-sysfs.c:476: warning: its scope is only this definition or declaration, which is probably not what you want net/core/net-sysfs.c:478: warning: 'struct netdev_rx_queue' declared inside parameter list net/core/net-sysfs.c: In function 'rx_queue_attr_show': net/core/net-sysfs.c:489: ...
Mar 28, 11:43 pm 2010
Eric Dumazet
Re: linux-next: build failure after merge of the final t ...
Thats right, this was on my first submission, but I forgot to add net/core/net-sysfs.c in my second commit, sorry. Acked-by: Eric Dumazet <eric.dumazet@gmail.com> --
Mar 28, 11:52 pm 2010
Eric Dumazet
Re: linux-next: build failure after merge of the final t ...
From: Stephen Rothwell <sfr@canb.auug.org.au> Oops, a cleaner patch would be : [PATCH] rps: fix net-sysfs build for !CONFIG_RPS Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index f6b6bfe..2144a7f 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -466,6 +466,7 @@ static struct attribute_group wireless_group = { }; #endif +#ifdef CONFIG_RPS ...
Mar 28, 11:59 pm 2010
Stephen Rothwell Mar 29, 12:01 am 2010
David Miller
Re: linux-next: build failure after merge of the final t ...
From: Eric Dumazet <eric.dumazet@gmail.com> Applied, thanks guys! --
Mar 29, 1:01 am 2010
Stephen Rothwell Mar 29, 1:04 am 2010
Eric Dumazet
[PATCH net-next-2.6] net: __netif_receive_skb should be static
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- diff --git a/net/core/dev.c b/net/core/dev.c index bcb3ed2..887aa84 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2621,7 +2621,7 @@ void netif_nit_deliver(struct sk_buff *skb) rcu_read_unlock(); } -int __netif_receive_skb(struct sk_buff *skb) +static int __netif_receive_skb(struct sk_buff *skb) { struct packet_type *ptype, *pt_prev; struct net_device *orig_dev; --
Mar 28, 10:24 pm 2010
David Miller
Re: [PATCH net-next-2.6] net: __netif_receive_skb should ...
From: Eric Dumazet <eric.dumazet@gmail.com> Applied, thanks Eric. --
Mar 28, 11:07 pm 2010
Ben Hoyt
Minimizing TCP latency
Oops, very sorry, I replied to an existing message but forgot to edit the subject line to start a new thread. Try again: Hi netdev, We're working on some TCP networking stuff where the key is low latency -- in other words, we don't really care about data throughput, but rather getting the end-to-end TCP packet transfer time down. I know there's quite a few networking folks and kernel hackers on this list, so I thought I'd see if anyone was interested (or knows someone who might be ...
Mar 28, 6:29 pm 2010
Ben Hoyt
Re: Minimizing TCP latency
Fair enough. Though another netdev reader advised me that this would be a good place to ask. I know brevity is the soul of wit, but it's not the most encouraging for a list newbie to be told, "You're doing it wrong, and you're in the wrong place." You never know, I may have something to contribute after all is said and done. :-) So, if this isn't the place to ask, do you have any pointers in the right direction? -Ben --
Mar 28, 7:43 pm 2010
Ben Hoyt
Re: Minimizing TCP latency
> I'm happy to receive some pointers via this list [...] Sorry, I should also have posted more about what I've done in terms of reducing latency so far: * We've already got TCP_NODELAY activated. * We've also turned off interrupt coalescing on the network card (for example, see http://www.29west.com/docs/THPM/latency-interrupt-coalescing.html). * We've modified our process's CPU affinity so it runs on a core by itself, reducing interrupt-handling latency slightly further. * Our code is ...
Mar 28, 8:24 pm 2010
Eric Dumazet
Re: Minimizing TCP latency
One machine sends messages, and messages are not aknowledged by other What are the targets ? (time constraints) Mono threaded application handling one tcp flow ? Are you handling a very light load on few flows, or many flows ? Are machines all in the same LAN ? --
Mar 28, 10:34 pm 2010
Neil Horman
Re: Minimizing TCP latency
Careful, this might wind up hurting you. It decreases latency from the card, but might result in flooding one or more cores with additional interrupts that --
Mar 29, 5:40 am 2010
Ben Hutchings
Re: Minimizing TCP latency
Choose low-latency NICs. Read the tuning guide, but run your own You're not going to get much help here in working on that kernel. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. --
Mar 29, 8:23 am 2010
fetish
Lists, lists and more lists we have lots of good ones at ...
I have alot of good quality American Databases at decent prices. Contact me here: Jerome.Moore@discountdatamarket.tk for a complete catalog of what we have. to terminate please send a blank message to rembox@discountdatamarket.tk --
Mar 28, 5:47 pm 2010
Stephen Rothwell Mar 28, 5:15 pm 2010
David Miller
Re: linux-next: build warning after merge of the tree
From: Stephen Rothwell <sfr@canb.auug.org.au> Strange, it didn't warn here. I just committed the following, let me know if it fixes this. Thanks! tulip: Add missing parens. As reported by Stephen Rothwell. drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet': drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast Signed-off-by: David S. Miller <davem@davemloft.net> --- drivers/net/tulip/uli526x.c | 2 +- 1 files changed, 1 ...
Mar 28, 6:57 pm 2010
Joe Perches
Re: linux-next: build warning after merge of the tree
You've an extra () there. A close paren could have been moved from after the NULL to after the "+ 2" I think it's more readable as: (new_skb = dev_alloc_skb(rxlen + 2))) { cheers, Joe --
Mar 28, 7:15 pm 2010
David Miller
Re: [PATCH net-2.6] ipv6: Don't drop cache route entry u ...
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Applied, thanks a lot! --
Mar 28, 7:34 pm 2010
Herbert Xu
Re: [PATCH RFC] inetpeer: Support ipv6 addresses.
I think the bigger question is are we now ready for a per-cpu route cache? The route cache is one of the few remaining global structures that is standing in the way of full multicore scalability. Or is there another way of solving this? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 8:08 am 2010
David Miller
Re: [PATCH RFC] inetpeer: Support ipv6 addresses.
From: Herbert Xu <herbert@gondor.apana.org.au> Interesting idea, but there is the issue of how to fill in new metrics cache entries when these requests come in later. We'd have to retain a pointer to the routing table fib entry. This is because the fib entry states what the initial metric values need to be for cached routes. So we'd need a pointer to the fib_info in the routing cache entry, and this pointer would need to grab a reference to the fib_info. And this subsequently leads to the ...
Mar 29, 3:15 pm 2010
David Miller
Re: [PATCH RFC] inetpeer: Support ipv6 addresses.
From: Herbert Xu <herbert@gondor.apana.org.au> It does make a difference, I think. When we use IPSEC rules on ports and crazy stuff like that, we end up with cases such as: 1) We're going over a VPN so RTT, RTTVAR, SSTHRESH, CWND, and other TCP metrics which are based upon aspects of the path can end up being wildly different. 2) even the end host can be different in some convoluted setups the metrics which we arguably can't move into something like the inetpeer ...
Mar 29, 3:21 pm 2010
Neil Horman
Re: CVE-2009-4537
Absolutley, I'll review the CVE text and my origional patch tomorrow morning, and submit the official patch tomorrow afternoon. Thanks! Neil --
Mar 28, 5:50 pm 2010
Ben Hoyt
Re: CVE-2009-4537
Hi netdev, We're working on some TCP networking stuff where the key is low latency -- in other words, we don't really care about data throughput, but rather getting the end-to-end TCP packet transfer time down. I know there's quite a few networking folks and kernel hackers on this list, so I thought I'd see if anyone was interested (or knows someone who might be interested) in doing a few hours of consultancy work to give us some pointers on this. I'm a competent programmer, but kernel-level ...
Mar 28, 6:27 pm 2010
David Miller
Re: CVE-2009-4537
First, please don't hijack an unrelated thread to start talking about something different. Second, the mailing lists at vger.kernel.org are not for making employment of consultancy offers. Thanks. --
Mar 28, 6:54 pm 2010
Shirley Ma
Re: Regression in virtio_net causing kernel BUG when run ...
Hello Thomas, Good catch! The problem was sg_init_table was missing for small buffer size. When CONFIG_DEBUG_SG is off, you won't hit this, but your test has DEBUG_SG on so SG_MAGIC check failed. You can turn DEBUG_SG off to avoid this. I thought you should hit the same problem before since I didn't remember sg_init_table was used for small message size. I will submit a patch for fix this issue soon. Thanks Shirley --
Mar 29, 11:12 am 2010
Al Viro
Re: [PATCH] r8169: fix broken register writes
As the matter of fact, ifconfig eth0 hw ether .... ends up zeroing upper 32 bits on old kernels once in a while. What orders accesses as seen by PCI bus in RTL_W8(Cfg9346, Cfg9346_Unlock); RTL_W32(MAC0, low); RTL_W32(MAC4, high); RTL_W8(Cfg9346, Cfg9346_Lock); anyway, and don't we need mmiowb() or two in there? --
Mar 28, 6:03 pm 2010
Al Viro
Re: [PATCH] r8169: fix broken register writes
BTW, patch from upthread doesn't help on that box, and neither does simple reordering of MAC0 and MAC4 writes. Adding reads of MAC0 and MAC4 after corresponding writes seems to work. --
Mar 28, 7:17 pm 2010
=?iso-8859-1?Q?Fran= ...
Re: [PATCH] r8169: fix broken register writes
Al Viro <viro@ZenIV.linux.org.uk> : Remove rtl8169scd_hw_phy_config ? No, keep it. At first sight it looks like rtl8169_open::rtl8169_check_link_status and a LinkChg interrupt (order eventually reversed) while 2.6.26 did not notice the interrupt. -- Ueimor --
Mar 29, 2:11 pm 2010
Ben Hutchings
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
[...] This information is important for management interfaces. The user doesn't care what your device looks like at the kernel level - they know it's a wireless broadband device and they expect to see a device labelled as such in Network Manager or whatever they use. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. --
Mar 28, 5:44 pm 2010
Stephen Clark
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
You sound like a windows guy! Whats with everything having to use NetworkManager!? Are people so dumb they can't figure things out from the command line. If it acts like a NIC it should be a NIC. I am so tired of eveyone trying to make Linux look and act like WINBLOWS. -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas ...
Mar 29, 5:30 am 2010
Ben Hutchings
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
Guess again - I've been using Linux on my own desktops and laptops for Yes, people are so 'dumb' they actually want to use their computers without having to learn and remember every detail about them, and there's nothing wrong with that. Today I work on network drivers but I'll admit my ignorance of the details of WPA configuration and I'm Written like a true fanboy. If you don't mind, some of us have work to do. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare ...
Mar 29, 6:07 am 2010
Marcel Holtmann
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
because they are not NIC cards. They just use Ethernet emulation. And they also require a management interface to setup APN and activate them first. It is important that we tell userspace about the type of a network interface. We do the same for WiMAX and WiFi btw. Regards Marcel --
Mar 29, 1:29 pm 2010
David Miller
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
From: Marcel Holtmann <marcel@holtmann.org> I completely agree with Marcel on this, please fix the device type. --
Mar 29, 1:41 pm 2010
Elina Pasheva
Re: [ANNOUNCEMENT] NET: usb: sierra_net.c driver
Thank you all for reviewing the sierra_net driver and for your comments. We fixed the device type, re-tested and re-submitted the driver patch. Regards, Elina --
Mar 29, 2:18 pm 2010
Bryan Wu
Re: [PATCH] netdev/fec.c: add phylib supporting to enabl ...
Firstly, I working on our Ubuntu Lucid 2.6.31 based kernel. This patch works fine on our system. Then I forward port it to 2.6.34-rc2 Linus mainline kernel. It also works fine on my hardware. --- # dmesg Linux version 2.6.34-rc2 (roc@roc-desktop) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #7 Mon Mar 29 15:37:54 CST 2010 CPU: ARMv7 Processor [412fc081] revision 1 (ARMv7), cr=10c53c7f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: Freescale MX51 Babbage ...
Mar 29, 1:40 am 2010
YOSHIFUJI Hideaki
Re: [PATCH net-next-2.6] ipv6: Use __fls() instead of fl ...
Sorry, I withdraw this because this is incorrect; __fls() returns fls() - 1. --yoshfuji --
Mar 29, 8:49 am 2010
David Miller
Re: [PATCH net-next-2.6] ipv6: Use __fls() instead of fl ...
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Ok. --
Mar 29, 11:33 am 2010
Rick Jones
Re: UDP path MTU discovery
But which of the last N datagrams sent by the application should be retained for retransmission? It could be scores if not hundreds of datagrams depending on the behaviour of the application and the latency to the narrow part of the network. That the IPv6 specification was heavily "influenced" by "the router guys" seems increasingly clear... rick jones --
Mar 29, 10:01 am 2010
Andi Kleen
Re: UDP path MTU discovery
Yes, if there's a large window you lose. I guess it would make protocols like DHCP work at least ("transactional UDP" as the original poster called it) I don't know if it would fix enough applications to be worth implementing. The only way to find out would be to try I guess. Yes it sounds like the IETF didn't completely think that through. -Andi -- ak@linux.intel.com -- Speaking for myself only. --
Mar 29, 1:14 pm 2010
Rick Jones
Re: UDP path MTU discovery
I don't think there are any good solutions that do not require either application involvement, or a modification to IPv6. How about allowing an application to request that (copies of) ICMP(v6) messages be made available through the socket? In that way, the application, which ostensibly already has to be keeping track of its sends for its own nefarious retransmission porpoises can receive the "signal" just like TCP does and perhaps there will be enough in the ICMPv6 message for the ...
Mar 29, 1:25 pm 2010
Edgar E. Iglesias
Re: UDP path MTU discovery
Are things really that bad? These "transactional" IPv6 apps all have the option to stick to 1280 sized datagrams to avoid the problem. If throughput is an issue these apps will surely benefit from proper PMTUD anyway or? Cheers --
Mar 29, 1:50 pm 2010
Rick Jones
Re: UDP path MTU discovery
I would get the alphabet soup completely garbled, but the DNS folks are talking about EDNS (?) message sizes upwards of 4096 bytes - encryption/authentication and other angels being asked to dance on the head of the DNS pin are asking for more and more space in the messages. So, someone will have to blink somewhere - either DNS will have to go TCP and *possibly* take RTT hits there depending on various patch streams, or the IEEE will have to sanction jumbo frames and people deploy them ...
Mar 29, 2:01 pm 2010
Eric Dumazet
Re: UDP path MTU discovery
1) 4096 bytes UDP messages... well... 2) Using regular TCP for DNS servers... well... I believe some guys were pushing TCPCT (Cookie Transactions) for this case ( http://tools.ietf.org/html/draft-simpson-tcpct-00.html ) (That is, using an enhanced TCP for long DNS queries... but not only for DNS...) --
Mar 29, 2:29 pm 2010
Templin, Fred L
RE: UDP path MTU discovery
IPv4 gets by this by setting DF=0 in the IP header, and lets the network fragment the packet if necessary. IPv6 can similarly get by this by having the sending host fragment the large UDP packet into IPv6 fragments no longer than 1280 bytes each. But wait! IPv4 hosts are only required to reassemble 576 bytes at a minimum, and IPv6 hosts are only required to reassemble 1500 bytes at a minimum. Indeed, RFC2460 says: "An upper-layer protocol or application that depends on IPv6 ...
Mar 29, 4:38 pm 2010
Paul E. McKenney
Re: [PATCH] NETLABEL: Fix an RCU warning
So we need the rcu_dereference() in netlbl_unlhsh_search_iface() to become someething like the following? bkt_list = &rcu_dereference_check(netlbl_unlhsh, rcu_read_lock_held() || lockdep_is_held(&netlbl_unlhsh_lock))->tbl[bkt]; Or is this the wrong lock? Thanx, Paul --
Mar 29, 8:24 am 2010
Paul Moore
Re: [PATCH] NETLABEL: Fix an RCU warning
As Eric pointed out in response to the message above, I believe the solution is to simply remove the rcu_dereference() call in the netlbl_unlhsh_hash() function. -- paul moore linux @ hp --
Mar 29, 8:30 am 2010
Paul E. McKenney
Re: [PATCH] NETLABEL: Fix an RCU warning
It would be at the moment, but this will break once Arnd Bergmann gets his sparse-based checks done. With these checks, we decorate RCU-protected pointers, and then sparse yells if you access such a pointer without the proper rcu_dereference() invocation. Thanx, Paul --
Mar 29, 8:58 am 2010
Paul Moore
Re: [PATCH] NETLABEL: Fix an RCU warning
Okay, is there a recommended approach towards accessing RCU-protected pointers both under a RCU read lock and under only a spinlock (or similar lock construct)? I know I could do something based on querying the state of the RCU/etc. locks but that seems like a hack and could interfere with some of the logic used to detect coding problems. -- paul moore linux @ hp --
Mar 29, 1:05 pm 2010
Eric Dumazet
Re: [PATCH] NETLABEL: Fix an RCU warning
Say you use a common function func1(), that use RCU protection, from a pure reader, and from a pure writer. pure_reader() { rcu_read_lock(); res = func1(); rcu_read_unlock(); } pure_writer() { spin_lock(&some_lock); res = func1(); spin_unlock(&some_lock); } then, func1 could use func1() { ..... ptr = rcu_dereference_check(xxx->ptr, rcu_read_lock_held() || lockdep_is_held(&some_lock)); ... } They are numerous examples in tree. If some iterators ...
Mar 29, 1:19 pm 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
In fact, now that I read this again, we don't even need to grab the lock to perform the deadness check. This is because the existing never did it anyway. The liveliness is guaranteed by the policy destruction code doing a synchronous cache flush. Timo, what was the reason for getting rid of the synchronous flush again? Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP ...
Mar 29, 1:40 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
No, just having the flush call is not enough to guarantee liveliness. The flushing happens in delayed work, and the flows might be in use before the flush has been finished or even started. I was also hoping to move the "delayed" deletion part to flow cache core so the code would be shared with policies and bundles. As stated before, we don't really need lock for the 'dead' check. It's only written once, and actually read without lock in some other places too. And all the other places ...
Mar 29, 2:00 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
No that's not the point. The lock is not there to protect reading ->dead, which is atomic anyway. It's there to guarantee that you don't increment the ref count on a dead policy. For the flow cache we didn't need this because the policy code would flush the cache synchronously so we can always grab a ref count safely as long as BH is still off. So if you leave the flow cache flushing as is, then we should still be able to do the it without holding the lock, or checking I wouldn't ...
Mar 29, 2:09 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
No it's pretty much for reading ->dead what I can tell. That's how ->dead is accessed in multiple other places too. That's the only reason I added the locking in my new code. But yes, it's pointless. ->dead access is atomic, except where it's read/written to in xfrm_policy_kill. It's trivially Previous code did not do any locking before adding a The old code could return policy object that was killed. It relies solely on the fact that policy gc will flush the flow cache. Between the time ...
Mar 29, 3:07 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Which is fine. I'd rather have that than this new behaviour which adds a lock. We don't delete policies all the time, so Let's step back one second. It's best to not accumulate unrelated changes in one patch. So is there a reason why you must remove the synchronous flow cache flushing from the policy destruction I really see no point to optimising for such an unlikely case Please do one change at a time. Let's just focus on the original issue of the bundle linked list for ...
Mar 29, 3:26 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Yes, I'm splitting up the patch to more fine grained pieces. The synchronous flow cache flushing does not have to be removed, The only reason why it needs to be atomic is because of xfrm_policy_kill() which writes '1' and checks if it was zero previously. Since the idea is to get rid of the policy lock, we can turn ->dead flag to atomic_t and use atomic_xchg for that. Agreed. But as the lockless check is cheap, why not to have it. And some system do get policy changes quite a bit. IKE ...
Mar 29, 3:36 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
I don't see the point. As long as the data paths do not take the lock changing this doesn't buy us much. You're still making that cacheline exclusive. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 4:10 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
To my understanding declaring an atomic_t, or reading it with atomic_read does not make cache line exclusive. Only the atomic_* writing to it take the cache line. And since this is done exactly once for policy (or it's a bug/warn thingy) it does not impose significant performance issue. But looking at the code more. The check should not be needed. xfrm_policy_kill() is only called if the entry is removed from the hash list, which can happen only once. Do you think we can just change it to ...
Mar 29, 4:23 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
I was talking about the lock vs. atomic_xchg in xfrm_policy_kill. There is practically no difference for that case. Yes, on the read side the lock is a completely different beast compared to atomic_read, but I don't see how you can safely replace lock if (!dead) take ref unlock See above. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: ...
Mar 29, 4:32 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Because the lock is not needed to take ref. You can take ref as long as someone else is also holding a valid reference. The flow cache keeps a reference to each object it is holding, thus we can always take a reference if we find an object there. This is what is being done in the current code, and can be still done in the new code. The only reason my patch had the lock, was for the dead check. Since it can be checked without locks, the locking can be just removed. The dead check is ...
Mar 29, 4:39 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
I'm not talking about the flow cache. The current flow cache code doesn't even take the lock. I'm talking about the other places that you have to convert in order to make this into an atomic_t. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 4:57 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Did you check the other places? All other places do: fox x policies: lock(x) pol_dead |= x->walk.dead; unlock(x) if pol_dead abort or similar. And some cases don't even bother to lock the policy currently when reading walk.dead. All of the code treats the walk.dead as a hint. It does not need strong synchronization with a lock. --
Mar 29, 5:03 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Well then converting it to an atomic_t is completely pointless. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 5:11 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Yes, I came to same conclusion. The only thing I thought justifying it, was the xfrm_policy_kill() doing the check of the old value. But as noted few mails ago, it's not necessary. So I'll just go ahead and remove all locking from the read side, and move the xfrm_policy_kill to use plain write. --
Mar 29, 5:20 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
No you can't make it a plain write in xfrm_policy_kill. The same policy may be killed simultaneously, by the timer and user action. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 5:25 am 2010
=?ISO-8859-1?Q?Timo_ ...
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
So we fix up all the callers of xfrm_policy_kill to check properly result of __xfrm_policy_unlink(). Since the policy can be only once deleted from the hashes (it's protected by xfrm_policy_lock) return value of __xfrm_policy_unlink() can be used to give responsibility of calling xfrm_policy_kill() exactly once. I thought this was already being done, but apparently it's not the case. --
Mar 29, 5:33 am 2010
Herbert Xu
Re: [PATCH RFC 1/2] flow: virtualize get and entry delet ...
Actually you're right. This should be the case as otherwise we'd be triggering that WARN_ON. Since it hasn't triggered in the five years that it's been around, I suppose we can now remove it along with the lock. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --
Mar 29, 5:45 am 2010
Chris Friesen
Re: behavior of recvmmsg() on blocking sockets
I'd probably do something like this: prev = current time loop forever cur = current time timeout = max_latency - (cur - prev) recvmmsg(timeout) process all received messages prev = cur Basically you determine the max latency you're willing to wait for a packet to be handled, then subtract the amount of time you spent processing messages from that and pass it into the recvmmsg() call as the timeout. That way no messages will be delayed for longer than the max latency. (Not ...
Mar 29, 9:18 am 2010
Brandon Black
Re: behavior of recvmmsg() on blocking sockets
With a blocking socket, you'd also need to set SO_RCVTIMEO on the underlying socket to some value that makes sense and is below your max latency, because recvmmsg()'s timeout argument only applies in-between underlying recvmsg() calls, not during them. You're going to spend a lot of time spinning if max_latency is low and there are any gaps in the input stream though. I guess for some uses this must makes sense. The other potential usage is with non-blocking sockets, in which case the ...
Mar 29, 10:24 am 2010
Chris Friesen
Re: behavior of recvmmsg() on blocking sockets
Hmm...that's a good point. For some reason I had been under the impression that the timeout affected the underlying recvmsg() calls as well. It think it would make more sense for the kernel to abort a blocking recvmsg() call once the timeout expires. As for spending a lot of time spinning if there are gaps in the input stream...in the cases where the time-based usage makes sense the normal situation is that there are a lot of packets coming in. A 10gig ethernet pipe can theoretically ...
Mar 29, 10:48 am 2010
Jan Ceuleers
Re: Does Realtek RTL8110S and RTL8100C work ?
Markus, As it happens there is a lot of discussion about stability issues with this NIC in recent[1] kernel versions right here on this list at the moment. Participants in those discussions include Francois Romieu, Timo Teräs and others. See threads "r8169 mac reading/writing broken", "r8169: fix broken register writes", "r8169: enable 64-bit DMA by default for PCI Express devices". [1]: more recent than I am using on that machine, which is 2.6.27 (Ubuntu 9.04). Jan --
Mar 29, 1:43 am 2010
Markus Feldmann
Re: Does Realtek RTL8110S and RTL8100C work ?
Thanks Jan, do you knonw who is the maintainer for this network device? Or in where can i get more information? regards Markus --
Mar 29, 1:22 am 2010
Christoph Lameter
Re: Add PGM protocol support to the IP stack
Interesting. Which files in that directory contain the most current code? Looks like the tcpdump patch has been merged. Here is another tcpdump patch that implements decoding PGM via UDP. Anyone know how to submit something like that? (Need to specify -Tpgm option to use pgm decoder on UDP traffic) Index: tcpdump/interface.h =================================================================== --- tcpdump.orig/interface.h 2010-02-26 18:50:39.411609391 -0600 +++ ...
Mar 29, 7:50 am 2010
Christoph Lameter
Re: Add PGM protocol support to the IP stack
Thanks. I will then proceed to get a patch out that implements the The socket API will be completely different. The basic handling of the sockets is the same (binding, listening, connecting). There is no way of mapping M$ socket options to Linux socket options with the approach that I proposed in the manpage. The stats structure is different too since some key elements were missing. What users are there of the M$ api? I have seen vendors supplying their own pgm implementation (guess due to ...
Mar 29, 8:00 am 2010
Andi Kleen
Re: Add PGM protocol support to the IP stack
I don't know, it was just a general consideration. -Andi -- ak@linux.intel.com -- Speaking for myself only. --
Mar 29, 2:43 pm 2010
H. Peter Anvin
Re: Add PGM protocol support to the IP stack
In 2.6.34 there is (although some arches which could support it natively don't as of yet... but that's fixable.) See lib/atomic64.c. -hpa --
Mar 29, 4:01 pm 2010
previous daytodaynext day
March 28, 2010March 29, 2010March 30, 2010