linux-netdev mailing list

FromSubjectsort iconDate
Benedikt Gollatz
Minor bug in "ip addr" output
There is a minor problem in iproute2 regarding the output of "ip -6 addr". Preferred lifetimes of IPv6 prefixes are printed as unsigned integers even though they may become negative (for deprecated prefixes). As I've argued in <http://bugzilla.kernel.org/show_bug.cgi?id=10880>, I think this is partly because of an inconsistency in the kernel APIs, but since nobody seemed interested, I guess it has to be dealt with by application developers. The following patch fixes the problem. --- ...
Dec 9, 4:33 pm 2008
Andrew Morton
Re: BUG: bad unlock balance detected! e1000e
On Wed, 10 Dec 2008 00:43:46 +0100 Yes, something like that. Or something like --- a/drivers/net/e1000e/ich8lan.c~a +++ a/drivers/net/e1000e/ich8lan.c @@ -1940,12 +1940,14 @@ static s32 e1000_reset_hw_ich8lan(struct ctrl |= E1000_CTRL_PHY_RST; } ret_val = e1000_acquire_swflag_ich8lan(hw); - hw_dbg(hw, "Issuing a global reset to ich8lan\n"); - ew32(CTRL, (ctrl | E1000_CTRL_RST)); - msleep(20); + if (!ret_val) { + hw_dbg(hw, "Issuing a global reset to ich8lan\n"); + ew32(CTRL, ...
Dec 9, 4:56 pm 2008
Andrew Morton
Re: BUG: bad unlock balance detected! e1000e
On Tue, 9 Dec 2008 12:03:37 +0100 yup. 2.6.27 needs fixing also. Like this? From: Andrew Morton <akpm@linux-foundation.org> ===================================== [ BUG: bad unlock balance detected! ] ------------------------------------- A regression added by 717d438d1fde94decef874b9808379d1f4523453 ("e1000e: debug contention on NVM SWFLAG"). Reported-by: "Zdenek Kabelac" <zdenek.kabelac@gmail.com> Cc: Frederik Deweerdt <frederik.deweerdt@xprog.eu> Cc: Thomas Gleixner ...
Dec 9, 4:08 pm 2008
Frederik Deweerdt
Re: BUG: bad unlock balance detected! e1000e
I don't think so, e1000_acquire_swflag_ich8lan() locks and e1000_release_swflag_ich8lan() unlocks. I think it is more along the lines of: diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 523b971..f971b83 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c @@ -1892,7 +1892,13 @@ static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw) */ ctrl |= E1000_CTRL_PHY_RST; } + ret_val = e1000_acquire_swflag_ich8lan(hw); + if ...
Dec 9, 4:43 pm 2008
Roel Kluin
[PATCH 28/31] net: Make static
Sparse asked whether these could be static. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- net/decnet/dn_dev.c | 2 +- net/decnet/dn_route.c | 4 ++-- net/dsa/mv88e6060.c | 4 ++-- net/dsa/mv88e6123_61_65.c | 4 ++-- net/dsa/mv88e6131.c | 4 ++-- net/irda/irttp.c | 14 +++++++------- net/irda/timer.c | 2 +- ...
Dec 9, 3:20 pm 2008
Neil Horman
[PATCH] netpoll: fix race on poll_list resulting in garb ...
Hey all- A few months back a race was discused between the netpoll napi service path, and the fast path through net_rx_action: http://kerneltrap.org/mailarchive/linux-netdev/2007/10/16/345470 A patch was submitted for that bug, but I think we missed a case. Consider the following scenario: INITIAL STATE CPU0 has one napi_struct A on its poll_list CPU1 is calling netpoll_send_skb and needs to call poll_napi on the same napi_struct A that CPU0 has on its ...
Dec 9, 2:06 pm 2008
holger
[patch 4/7] bonding: use pr_debug instead of own macros
Use pr_debug() instead of own macros. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: bonding-2.6/drivers/net/bonding/bonding.h =================================================================== --- bonding-2.6.orig/drivers/net/bonding/bonding.h 2008-12-08 22:59:59.000000000 +0100 +++ bonding-2.6/drivers/net/bonding/bonding.h 2008-12-08 23:02:38.000000000 +0100 @@ -32,14 +32,6 @@ extern struct list_head bond_dev_list; -#ifdef BONDING_DEBUG -#define dprintk(fmt, ...
Dec 9, 1:07 pm 2008
holger
[patch 6/7] bonding: make tbl argument to bond_parse_par ...
bond_parse_parm() parses a parameter table for a particular value and is therefore not modifying the table at all. Therefore make the 2nd argument const, thus allowing to make the tables const later. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: bonding-2.6-out/drivers/net/bonding/bond_main.c =================================================================== --- bonding-2.6-out.orig/drivers/net/bonding/bond_main.c 2008-12-08 22:52:57.000000000 +0100 +++ ...
Dec 9, 1:07 pm 2008
holger
[patch 5/7] bonding: remove duplicate declarations
Remove some declarations from bonding.c as they are declared in bonding.h already. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: bonding-2.6/drivers/net/bonding/bond_sysfs.c =================================================================== --- bonding-2.6.orig/drivers/net/bonding/bond_sysfs.c 2008-12-05 23:21:10.000000000 +0100 +++ bonding-2.6/drivers/net/bonding/bond_sysfs.c 2008-12-05 23:23:12.000000000 +0100 @@ -43,15 +43,8 @@ /*---------------------------- ...
Dec 9, 1:07 pm 2008
holger
[patch 7/7] bonding: turn all bond_parm_tbls const
Turn all bond_parm_tbls const. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: bonding-2.6-out/drivers/net/bonding/bond_main.c =================================================================== --- bonding-2.6-out.orig/drivers/net/bonding/bond_main.c 2008-12-09 20:56:11.000000000 +0100 +++ bonding-2.6-out/drivers/net/bonding/bond_main.c 2008-12-09 20:57:14.000000000 +0100 @@ -162,13 +162,13 @@ static int lacp_fast = 0; -struct bond_parm_tbl bond_lacp_tbl[] = ...
Dec 9, 1:07 pm 2008
holger
[patch 2/7] bonding: use table for mode names
Use a small array in bond_mode_name() for the names, thus saving some space: before text data bss dec hex filename 57736 9372 344 67452 1077c drivers/net/bonding/bonding.ko after text data bss dec hex filename 57441 9372 344 67157 10655 drivers/net/bonding/bonding.ko Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: ...
Dec 9, 1:07 pm 2008
holger
[patch 0/7] [RFC] bonding updates to net-next-2.6
Hi Jay, these are some patches against the bonding code in net-next-2.6. I hope you find them usefull. As you requested previously I tried to make bond_start_xmit() use a function table instead of the switch statement, but with some unexpected results which I'm currently analyzing. I therefore leave it as-is. Thanks for your previous feedback. /holger --
Dec 9, 1:07 pm 2008
holger
[patch 3/7] bonding: fix compile error if debug enabled
This is what I get if debug is enabled: drivers/net/bonding/bond_ipv6.c: In function 'bond_na_send': drivers/net/bonding/bond_ipv6.c:75: error: 'slave' undeclared (first use in this function) drivers/net/bonding/bond_ipv6.c:75: error: (Each undeclared identifier is reported only once drivers/net/bonding/bond_ipv6.c:75: error: for each function it appears in.) This patch fixes that. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: ...
Dec 9, 1:07 pm 2008
holger
[patch 1/7] bonding: add and use bond_is_lb()
Introduce and use bond_is_lb(), it is usefull to shorten the repetitive check for either ALB or TLB mode. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Index: bonding-2.6-out/drivers/net/bonding/bond_main.c =================================================================== --- bonding-2.6-out.orig/drivers/net/bonding/bond_main.c 2008-12-09 20:42:55.000000000 +0100 +++ bonding-2.6-out/drivers/net/bonding/bond_main.c 2008-12-09 20:44:21.000000000 +0100 @@ -294,10 +294,8 @@ ...
Dec 9, 1:07 pm 2008
Colin Alston
Re: [Shorewall-devel] Fwd: iproute weight balancing prob ...
Should not be a problem. YouTube uses a single stream for buffering and there should not be any conflict between a change in source address with the request for the flash applet and the stream. HTTP does not work that way... There are some protocols that do, in which case there is contrac to solve that problem, if there were a bug it would be in contrac so you should raise the issue on the Netfilter lists. I have personally used Shorewall in such a configuration (we are designing a ...
Dec 9, 11:30 am 2008
Bjorn Helgaas
bnx2x machine check in bnx2x_ack_int()
Hi Eilon, I'm using bnx2x 1.45.23 from RHEL5.3s4 on a prototype ia64 platform, and I see intermittent machine checks at bnx2x_ack_int+176, which is just after __ia64_readl() returns. This is a proto with incomplete firmware, and the driver correctly complains about that, but it seems like there's still a hole where things blow up. The machine check happens intermittently on boot, but I can reproduce it instantly with a loop like this: # while /bin/true; do ifup eth6; date; ...
Dec 9, 12:04 pm 2008
Daniel Silverstone
Re: [Patch] Micrel KS8695 integrated ethernet driver
Ben pointed out that he had sent this to me but not CCed the list, and that I'd missed it. I've worked through it now. That's just a spello on the mailing list subject line, the subject line I was replacing Andrew Victor's ks8695_ether driver, so the platform data is for ks8695_ether, but for a while I had both drivers in-tree in order to check behaviour. I am happy for it to be merged either as ks8695_ether or ks8695net and if necessary I can change the platform data for the boards. ...
Dec 9, 10:30 am 2008
Ben Hutchings
Re: [Patch] Micrel KS8695 integrated ethernet driver
On Tue, 2008-12-09 at 17:30 +0000, Daniel Silverstone wrote: [...] -- 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. --
Dec 9, 11:10 am 2008
Atsushi Nemoto
[PATCH] tc35815: Enable StripCRC feature
The chip can strip CRC automatically on receiving. Enable it. Also fix potential RX_BUF_SIZE calculation bug which was obscured by alignment. And use proper symbols (NET_IP_ALIGN, ETH_FCS_LEN, etc.) instead of magic numbers. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> --- drivers/net/tc35815.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 385b174..34a599d 100644 --- ...
Dec 9, 8:15 am 2008
Steve Glendinning
[PATCH] smsc9420: SMSC LAN9420 10/100 PCI ethernet adapter
This patch adds a driver for the LAN9240 PCI ethernet adapter. For review, I'll re-submit later for inclusion (incorporating any feedback as necessary). Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> --- MAINTAINERS | 6 + drivers/net/Kconfig | 16 + drivers/net/Makefile | 1 + drivers/net/smsc9420.c | 1588 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/net/smsc9420.h | 304 +++++++++ 5 files changed, 1915 insertions(+), 0 deletions(-) ...
Dec 9, 7:57 am 2008
Sathya Perla
[PATCH 09/11] benet: hardware host interface header files
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/fwcmd_common_bmap.h | 717 +++++++++++++++++++++++++++++++++ drivers/net/benet/fwcmd_eth_bmap.h | 280 +++++++++++++ drivers/net/benet/fwcmd_opcodes.h | 244 +++++++++++ 3 files changed, 1241 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/fwcmd_common_bmap.h create mode 100644 drivers/net/benet/fwcmd_eth_bmap.h create mode 100644 drivers/net/benet/fwcmd_opcodes.h diff --git ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 10/11] benet: hardware host interface header files
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/pcicfg.h | 825 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 825 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/pcicfg.h diff --git a/drivers/net/benet/pcicfg.h b/drivers/net/benet/pcicfg.h new file mode 100644 index 0000000..7c15684 --- /dev/null +++ b/drivers/net/benet/pcicfg.h @@ -0,0 +1,825 @@ +/* + * Copyright (C) 2005 - 2008 ServerEngines + * All rights ...
Dec 9, 7:21 am 2008
Sathya Perla
[PATCH 11/11] benet: Kconfig, MAINTAINETS, drivers/net M ...
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/Kconfig | 2 ++ drivers/net/Makefile | 1 + drivers/net/benet/Kconfig | 7 +++++++ drivers/net/benet/MAINTAINERS | 8 ++++++++ 4 files changed, 18 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/Kconfig create mode 100644 drivers/net/benet/MAINTAINERS diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 231eeaf..85992af 100644 --- ...
Dec 9, 7:21 am 2008
Sathya Perla
[PATCH 07/11] benet: hardware host interface header files
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/asyncmesg.h | 82 +++++++++++++++++++++ drivers/net/benet/be_cm.h | 134 ++++++++++++++++++++++++++++++++++ drivers/net/benet/be_common.h | 53 +++++++++++++ drivers/net/benet/descriptors.h | 71 ++++++++++++++++++ drivers/net/benet/ep.h | 66 +++++++++++++++++ drivers/net/benet/etx_context.h | 55 ++++++++++++++ drivers/net/benet/fwcmd_hdr_bmap.h | 54 ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 06/11] benet: hwlib ethernet queue create/destroy ...
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/eth.c | 1273 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1273 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/eth.c diff --git a/drivers/net/benet/eth.c b/drivers/net/benet/eth.c new file mode 100644 index 0000000..f641b62 --- /dev/null +++ b/drivers/net/benet/eth.c @@ -0,0 +1,1273 @@ +/* + * Copyright (C) 2005 - 2008 ServerEngines + * All rights reserved. + * + * ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 08/11] benet: hardware host interface header files
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/cev.h | 243 ++++++++++++++++++++++++++++++++++++++ drivers/net/benet/doorbells.h | 179 ++++++++++++++++++++++++++++ drivers/net/benet/fwcmd_common.h | 222 ++++++++++++++++++++++++++++++++++ drivers/net/benet/host_struct.h | 182 ++++++++++++++++++++++++++++ drivers/net/benet/post_codes.h | 111 +++++++++++++++++ 5 files changed, 937 insertions(+), 0 deletions(-) create mode 100644 ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 02/11] benet: interrupt/i/o handling, network lay ...
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/Makefile | 14 + drivers/net/benet/be_ethtool.c | 348 ++++++++++++++++ drivers/net/benet/be_int.c | 863 ++++++++++++++++++++++++++++++++++++++++ drivers/net/benet/be_netif.c | 707 ++++++++++++++++++++++++++++++++ 4 files changed, 1932 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/Makefile create mode 100644 drivers/net/benet/be_ethtool.c create mode 100644 ...
Dec 9, 7:19 am 2008
Patrick McHardy
Re: [PATCH 02/11] benet: interrupt/i/o handling, network ...
I'd suggest to either make ->vlan_add_vid() return an error code or disable VLAN hardware filtering completely when you exceed the number of supported VLANs. The later is probably the better choice since people expect to be able to add any number of VLANs. --
Dec 9, 7:34 am 2008
Sathya Perla
[PATCH 01/11] benet: header and init functions
Hi, the BladeEngine 10g NIC driver (benet) has undergone a few rounds of review on this list. Later, some more issues have been fixed as a part of the drivers/staging tree maintained by Greg KH. It is being re-submitted for a final round of review. The patches are against the torvalds git tree. Thanks, -Sathya P.S: Pls ignore the "company confidential" warning at the end of the patch emails. Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/be_init.c | 1382 ...
Dec 9, 7:19 am 2008
Sathya Perla
[PATCH 04/11] benet: hwlib mailbox processing functions
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/mpu.c | 1364 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1364 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/mpu.c diff --git a/drivers/net/benet/mpu.c b/drivers/net/benet/mpu.c new file mode 100644 index 0000000..269cc11 --- /dev/null +++ b/drivers/net/benet/mpu.c @@ -0,0 +1,1364 @@ +/* + * Copyright (C) 2005 - 2008 ServerEngines + * All rights reserved. + * + * ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 03/11] benet: hwlib (hardware access lib) header files
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/bestatus.h | 103 ++++++ drivers/net/benet/hwlib.h | 830 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 933 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/bestatus.h create mode 100644 drivers/net/benet/hwlib.h diff --git a/drivers/net/benet/bestatus.h b/drivers/net/benet/bestatus.h new file mode 100644 index 0000000..59c7a4b --- /dev/null +++ ...
Dec 9, 7:20 am 2008
Sathya Perla
[PATCH 05/11] benet: hwlib event, completion queue and f ...
Signed-off-by: Sathya Perla <sathyap@serverengines.com> --- drivers/net/benet/cq.c | 211 ++++++++++++++++ drivers/net/benet/eq.c | 299 +++++++++++++++++++++++ drivers/net/benet/funcobj.c | 565 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1075 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/cq.c create mode 100644 drivers/net/benet/eq.c create mode 100644 drivers/net/benet/funcobj.c diff --git a/drivers/net/benet/cq.c ...
Dec 9, 7:20 am 2008
Alexey Dobriyan
[PATCH] simnet: convert to net_device_ops
[PATCH] simeth: convert to net_device_ops Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- arch/ia64/hp/sim/simeth.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) --- a/arch/ia64/hp/sim/simeth.c +++ b/arch/ia64/hp/sim/simeth.c @@ -167,6 +167,15 @@ netdev_read(int fd, unsigned char *buf, unsigned int len) return ia64_ssc(fd, __pa(buf), len, 0, SSC_NETDEV_RECV); } +static const struct net_device_ops simeth_netdev_ops = { + .ndo_open = ...
Dec 9, 8:08 am 2008
Alexander Beregalov
next-20081209: build problem at arch/ia64/hp/sim/simeth.c
CC arch/ia64/hp/sim/simeth.o arch/ia64/hp/sim/simeth.c: In function 'simeth_probe1': arch/ia64/hp/sim/simeth.c:212: error: 'struct net_device' has no member named 'open' arch/ia64/hp/sim/simeth.c:213: error: 'struct net_device' has no member named 'stop' arch/ia64/hp/sim/simeth.c:214: error: 'struct net_device' has no member named 'hard_start_xmit' arch/ia64/hp/sim/simeth.c:215: error: 'struct net_device' has no member named 'get_stats' arch/ia64/hp/sim/simeth.c:216: error: 'struct ...
Dec 9, 7:11 am 2008
Ursula Braun
Re: [PATCH next] s390_net: Kill directly reference of ne ...
From: Wang Chen <wangchen@cn.fujitsu.com> Acked-by: Ursula Braun <ursula.braun@de.ibm.com> We run an additional test on our s390 box. Thanks! --
Dec 9, 5:57 am 2008
chaithrika
[PATCH] phy: Add LSI ET1011C PHY driver
From: Chaithrika U S <chaithrika@ti.com> Adds LSI ET1011C PHY driver. This driver is used by TI DM646x EVM. Signed-off-by: Chaithrika U S <chaithrika@ti.com> --- drivers/net/phy/Kconfig | 5 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/et1011c.c | 113 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 0 deletions(-) create mode 100644 drivers/net/phy/et1011c.c diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index ...
Dec 9, 2:59 am 2008
Jarek Poplawski
[PATCH 6/6] pkt_sched: sch_htb: Optimize WARN_ONs in htb ...
We can skip WARN_ON() in htb_dequeue_tree() because there should be always a similar warning from htb_lookup_leaf() earlier. The first WARN_ON() in in htb_lookup_leaf() is changed to BUG_ON() because most likly this should end with oops anyway. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index f44a4be..9de3682 100644 --- ...
Dec 9, 3:21 am 2008
Jarek Poplawski
[PATCH 5/6] pkt_sched: sch_htb: Optimize htb_find_next_upper()
htb_id_find_next_upper() is usually called to find a class with next id after some previously removed class, so let's move a check for equality to the end: it's the least likely here. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 2e0a74c..f44a4be 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -702,14 +702,14 @@ static ...
Dec 9, 3:21 am 2008
Jarek Poplawski
[PATCH 4/6] pkt_sched: sch_htb: Change if () check in ht ...
Skip "event" in if () in htb_dequeue(): it's always > 0 at this place. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index b241ac6..2e0a74c 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -879,7 +879,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch) } else event = q->near_ev_cache[level]; - if (event && ...
Dec 9, 3:21 am 2008
Patrick McHardy
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
This (including the last patch) is really confusing - q->now doesn't contain HZ values but psched ticks. Could you describe the overall algorithm you're trying to implement please? --
Dec 9, 3:28 am 2008
Jarek Poplawski
[PATCH 3/6] pkt_sched: sch_htb: Break all htb_do_events( ...
Currently htb_do_events() breaks events recounting for a level after 2 jiffies, but there is no reason to repeat this for next levels and increase delays even more (with softirqs disabled). htb_dequeue_tree() can add to this too, btw. In such a case q->now time is invalid anyway. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index ...
Dec 9, 3:21 am 2008
Jarek Poplawski
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
To David Miller: David don't apply yet - this patch needs change. Patrick, read below: I'm not sure I get ot right: for precise scheduling hrtimers look In this case it's probably self-courtesy too: this ksoftirqd takes Yes, you are right with this. I can try too fix this tomorrow, unless you prefer to send your version of this patch. Thanks, Jarek P. --
Dec 9, 7:45 am 2008
Patrick McHardy
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
Sure. But it also won't be in the past if we simply add .. lets say the current uptime in ms. My point was that there's absolutely no relationship between those two times and combining them just to get a value thats not in the past is wrong. Especially considering *why* we want a value in the future and what we'll get from that htb_do_events() exceeding two jiffies is fortunately not a common case. You (incorrectly) made the calculation somewhat of a common case by also adding to the delay ...
Dec 9, 6:20 am 2008
Patrick McHardy
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
I meant "at all" for the wakeup after we've decided HTB has too much work to do at once. A work queue seems better suited since that makes sure we allow other processes to run, but don't wait unnecessarily Well, it calls back to HTB, which continues to do real work. But leaving HTB, scheduling a timer just to be called immediately again I don't have a version of my own, so please go ahead :) --
Dec 9, 7:56 am 2008
Patrick McHardy
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
This might as well return q->now, no? The elapsed time is added on top later anyways. But anyways, I think both the approach and the patch are wrong. /* charge used jiffies */ start_at = jiffies - start_at; if (start_at > 0) next_event += start_at * PSCHED_TICKS_PER_SEC / HZ; What relationship does the duration it ran for has to the time it should run at again? The focus on jiffies is wrong IMO, the reason why we get high load is because the CPU can't keep up, delaying things ...
Dec 9, 5:25 am 2008
Jarek Poplawski
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
Yes, but IMHO it looks worse, considering the problem here (we want to The scheduling times won't be in the past mostly and hrtimers won't trigger too soon, but approximately around we really need and can This needs additional psched_get_time(), and as I've written before there is no apparent advantage in problematic cases, but this would But in another similar cases there could be no change in jiffies, but almost a jiffie used for counting, so wrong schedule time as well. Approximatly ...
Dec 9, 6:08 am 2008
Jarek Poplawski
Re: [PATCH 2/6] pkt_sched: sch_htb: Consider used jiffie ...
The algorithm is we want to "continue on the next jiffie". We know we've lost here a lot of time (~2 jiffies), and this will be added later. Since these jiffies are not precise enough wrt. psched ticks or ktime, and we will add around 2000 (for HZ 1000) psched ticks anyway this +1 here simply doesn't matter and can mean "a bit after q->now". We can try to do this more precisely with additional psched_get_time(), instead of jiffies, but my "tests" didn't show any advantage. What matters is to ...
Dec 9, 4:32 am 2008
Jarek Poplawski
[PATCH 2/6] pkt_sched: sch_htb: Consider used jiffies in ...
Next event time should consider jiffies used for recounting. Otherwise qdisc_watchdog_schedule() triggers hrtimer immediately with the event in the past, and may cause very high ksoftirqd cpu usage (if highres is on). This patch charges jiffies globally, so we can skip this in htb_do_events(). Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net/sched/sch_htb.c ...
Dec 9, 3:21 am 2008
Rusty Russell
Re: [PATCH] virtio_net: add link status handling
How about of every status change event? ie. a generic virtio_pci solution? Rusty. --
Dec 9, 4:53 pm 2008
Mark McLoughlin
[PATCH] virtio_net: add link status handling
Allow the host to inform us that the link is down by adding a VIRTIO_NET_F_STATUS which indicates that device status is available in virtio_net config. This is currently useful for simulating link down conditions (e.g. using proposed qemu 'set_link' monitor command) but would also be needed if we were to support device assignment via virtio. Signed-off-by: Mark McLoughlin <markmc@redhat.com> --- drivers/net/virtio_net.c | 40 +++++++++++++++++++++++++++++++++++++++- ...
Dec 9, 3:19 am 2008
Rusty Russell
Re: [PATCH] virtio_net: add link status handling
New status bits will screw this logic unless we count on the host not to set them. I suggest: /* Ignore unknown (future) status bits */ v &= VIRTIO_NET_S_LINK_UP; Cheers, Rusty. --
Dec 9, 4:56 pm 2008
Anthony Liguori
Re: [PATCH] virtio_net: add link status handling
It would be nice if the virtio-net card wrote some acknowledgement that it has received the link status down/up events. I'm thinking along the lines of doing live migration between two end points that are not on the same subnet. It would be nice to be able to signal link status down, have the guest acknowledge that it received it, do the live migration, then do link status up so the guest reconnects it's networking. Regards, Anthony Liguori --
Dec 9, 2:32 pm 2008
Jarek Poplawski
[PATCH 1/6] pkt_sched: sch_htb: Consider used jiffies in ...
Next event time should consider jiffies used for recounting. Otherwise qdisc_watchdog_schedule() triggers hrtimer immediately with the event in the past, and may cause very high ksoftirqd cpu usage (if highres is on). Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> --- net/sched/sch_htb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index f89fd71..d6eb4a7 100644 --- a/net/sched/sch_htb.c +++ ...
Dec 9, 3:21 am 2008
Balazs Scheidler
[RFC][PATCH] [TPROXY] kick out TIME_WAIT sockets in case ...
Hi, I'd like to get some guidance regarding the following patch. There's a severe performance limitation related to TIME_WAIT sockets and TProxy rules. The patch below is the 'nice' approach, but it adds 6 bytes to inet_sock and inet_timewait_sock. The 'ugly' approach would be to schedule the removal of the affected TIME_WAIT sockets at PREROUTING time. This post is meant to get some review, but please do not apply this patch this time. Thanks in advance. Without tproxy redirections ...
Dec 9, 1:51 am 2008
David Miller
Re: [PATCH 2.6.27] tcp_vegas cong avoid fix
From: Douglas Leith <doug.leith@nuim.ie> I remember asking you to -p1 root your patches last time, or did I? :-) --
Dec 9, 1:13 am 2008
Rémi
Re: [RFC][PATCH 3/3]ipv6:fix the outgoing interface sele ...
I believe overriding the outgoing interface is only allowed for link-local destinations, _or_ with privileges (as with SO_BINDTODEVICE). This patch seems to change this, and I am not convinced it's a good idea. -- Rémi Denis-Courmont Maemo Software, Nokia Devices R&D --
Dec 9, 12:32 am 2008
Yang Hongyang
[RFC][PATCH 3/3]ipv6:fix the outgoing interface selectio ...
1.When no interface is specified in an IPV6_PKTINFO ancillary data item, the interface specified in an IPV6_PKTINFO sticky optionis is used. RFC3542: 6.7. Summary of Outgoing Interface Selection This document and [RFC-3493] specify various methods that affect the selection of the packet's outgoing interface. This subsection summarizes the ordering among those in order to ensure deterministic behavior. For a given outgoing packet on a given socket, the outgoing ...
Dec 9, 12:12 am 2008
Yang Hongyang
[RFC][PATCH 2/3]ipv6:fix the return interface index when ...
When get receiving interface index while no message is received, the the value seted with setsockopt() should be returned. RFC 3542: Issuing getsockopt() for the above options will return the sticky option value i.e., the value set with setsockopt(). If no sticky option value has been set getsockopt() will return the following values: - For the IPV6_PKTINFO option, it will return an in6_pktinfo structure with ipi6_addr being in6addr_any and ipi6_ifindex being ...
Dec 9, 12:10 am 2008
Yang Hongyang
[RFC][PATCH 1/3]ipv6:add IPV6_PKTINFO sticky option supp ...
There are three reasons for me to add this support: 1.When no interface is specified in an IPV6_PKTINFO ancillary data item, the interface specified in an IPV6_PKTINFO sticky optionis is used. RFC3542: 6.7. Summary of Outgoing Interface Selection This document and [RFC-3493] specify various methods that affect the selection of the packet's outgoing interface. This subsection summarizes the ordering among those in order to ensure deterministic behavior. For a given ...
Dec 9, 12:08 am 2008
Rick Jones
lowpri - RTO for unidirectional reciever
Folks - I was going through old email to do a status report and was reminded of a discussion in netperf-talk that might be of interest to people here since it involved a Linux receiver: http://www.netperf.org/pipermail/netperf-talk/2008-November/000478.html A Mac OSX bug was found/presumed, but there was an interesting behaviour on the linux receiver side as well - the rtx of the ignored FIN happened after what IIRC is the initial RTO. It suggested that the ACK of the SYN|ACK didn't ...
Dec 8, 7:02 pm 2008
David Miller
Re: lowpri - RTO for unidirectional reciever
From: Rick Jones <rick.jones2@hp.com> All it takes is ~40 bytes on an extremely slow link. --
Dec 9, 2:43 pm 2008
David Miller
Re: lowpri - RTO for unidirectional reciever
From: Rick Jones <rick.jones2@hp.com> We should not use the SYN|ACK for RTT estimates. It's a bug, and in fact we used to, but I fixed that long ago. Since there is no data in the packet, and it's therefore very small compared to real data bearing packets, the RTT measured might be artificially small and not really representative. --
Dec 9, 12:56 am 2008
Rick Jones
Re: lowpri - RTO for unidirectional reciever
A miracle occurs going from zero bytes of payload but several bytes of TCP options (scale and MSS) to having one byte of payload and no bytes of options? (Timestamp options remaining the same in both cases) rick jones --
Dec 9, 12:25 pm 2008
Alexey Dobriyan
[PATCH -next] hydra: fix compilation
drivers/net/hydra.c:163: error: 'hydra_netdev_ops' undeclared (first use in this function) Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- drivers/net/hydra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/hydra.c +++ b/drivers/net/hydra.c @@ -94,7 +94,7 @@ static int __devinit hydra_init_one(struct zorro_dev *z, return 0; } -static const struct net_device_ops etherh_netdev_ops = { +static const struct net_device_ops hydra_netdev_ops = { ...
Dec 8, 6:18 pm 2008
David Miller
Re: [PATCH -next] hydra: fix compilation
From: Alexey Dobriyan <adobriyan@gmail.com> Applied, thanks a lot Alexey. --
Dec 9, 12:50 am 2008
Chuck Ebbert
Re: CIFS regression in 2.6.27.8
On Mon, 8 Dec 2008 21:12:48 +0100 I tried it on both i386 and x86_64 and had no problems. Is this client non-x86 by any chance? --
Dec 9, 1:49 pm 2008
Manfred Spraul
Re: Nasty regression from .27.7 to .27.8: idle samba goe ...
What happens? Does it oops, does one of the BUG() statements trigger? -- Manfred --
Dec 9, 12:16 pm 2008
Chuck Ebbert
Re: Nasty regression from .27.7 to .27.8: idle samba goe ...
On Mon, 8 Dec 2008 23:22:46 +0100 Try reverting the idr patch that went into 2.6.27.8. It broke DRM in the Fedora kernel at least. http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob_plain;f=relea... --
Dec 9, 10:37 am 2008
Chuck Ebbert
Re: Nasty regression from .27.7 to .27.8: idle samba goe ...
On Tue, 09 Dec 2008 20:16:34 +0100 It fails in strange ways, e.g. trying to open a DRM device causes it to disappear. (And DRM is a heavy user of idr.) --
Dec 9, 12:30 pm 2008
Benjamin Thery
Re: [PATCH 0/8] netns: make IPv6 multicast forwarding pe ...
Dave, While doing some more tests on the patchset I've realized that the queue of unresolved entries (mfc_unres_queue) should also be allocated per-netns (or at least counter cache_resolve_queue_len should be). With the current patchset, the cache for unresolved entries is limited to 10 entries for all namespaces. D'oh. I'm looking at this issue and will resend the patchset with the missing patch ASAP. Benjamin -- B e n j a m i n T h e r y - BULL/DT/Open Software R&D ...
Dec 9, 9:56 am 2008
David Miller
Re: [PATCH 0/8] netns: make IPv6 multicast forwarding pe ...
From: Benjamin Thery <benjamin.thery@bull.net> Okie dokie. --
Dec 9, 4:53 pm 2008
David Miller
Re: [PATCH] net: Kill directly reference of netdev->priv
From: Jianjun Kong <jianjun@zeuux.org> Please stop sending these patches, I am ignoring all of them. I told you that all the conversions have been done already and these casts you are doing here are unbelievably ugly and are a big red flag indicating that your patches are wrong. --
Dec 9, 12:34 am 2008
Jianjun Kong
[PATCH] net: Kill directly reference of netdev->priv
another new patch for net-next-2.6 --- From fbd6be20695810f32aa58a5cd889f959d87a019f Mon Sep 17 00:00:00 2001 From: Jianjun Kong <jianjun@zeuux.org> Date: Tue, 9 Dec 2008 09:23:54 +0800 Subject: [PATCH] net: Kill directly reference of netdev->priv drivers/net/wireless/ray_cs.c: Replace "(struct net_device *)link->priv" with "netdev_priv((struct net_device *)link)" Signed-off-by: Jianjun Kong <jianjun@zeuux.org> --- drivers/net/wireless/ray_cs.c | 12 ++++++------ 1 files changed, 6 ...
Dec 8, 6:32 pm 2008
Wei Yongjun
Re: [PATCH] net: Kill directly reference of netdev->priv
You had tested this patch? Do you think your patch is correct? Stop do --
Dec 8, 7:53 pm 2008
David Miller
Re: [PATCH1/1] hso modem detect fix patch against Alan C ...
From: Denis Joseph Barrow <D.Barow@option.com> Alan, you got this one or want me to grab it? I'm fine either way. --
Dec 9, 4:53 pm 2008
David Miller
Re: [PATCH] ipv6: silence log messages for locally gener ...
From: Jan Sembera <jsembera@suse.cz> Patch applied, thanks Jan. --
Dec 9, 4:48 pm 2008
David Miller
Re: [PATCH net] Phonet: hold GPRS device while cleaning up
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Applied. --
Dec 9, 1:15 am 2008
David Miller
Re: [PATCH] Phonet: improve GPRS variable names
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Since this depends upon the buggy refcount change, I'm tossing this and will wait for an updated version once everything is sorted out. --
Dec 9, 4:29 pm 2008
Rémi
Re: [PATCH] Phonet: improve GPRS variable names
That one depends on the first patch though. -- Rémi Denis-Courmont Maemo Software, Nokia Devices R&D --
Dec 9, 12:51 am 2008
David Miller
Re: [PATCH] Phonet: improve GPRS variable names
From: "Rémi Denis-Courmont" <remi.denis-courmont@nokia.com> No problem, thanks for mentioning. --
Dec 9, 1:05 am 2008
Rémi
Re: [PATCH net] Phonet: hold GPRS device while cleaning up
Uho :( I ended up not testing what I thought I was :-$ This patch deadlocks unregister_netdev(), since that waits for the refcount to drop to zero. -- Rémi Denis-Courmont Maemo Software, Nokia Devices R&D --
Dec 9, 8:03 am 2008
David Miller
Re: [PATCH net] Phonet: hold GPRS device while cleaning up
From: "Rémi Denis-Courmont" <remi.denis-courmont@nokia.com> Lucky for you I didn't push this out anywhere yet. I'll just revert it locally. You're on double-secret-probation, please test your patches in the future :) --
Dec 9, 4:28 pm 2008
Rémi Denis-Courmont
[PATCH] Phonet: improve GPRS variable names
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> --- net/phonet/pep-gprs.c | 170 +++++++++++++++++++++++++------------------------ 1 files changed, 86 insertions(+), 84 deletions(-) diff --git a/net/phonet/pep-gprs.c b/net/phonet/pep-gprs.c index a24d01e..7461a61 100644 --- a/net/phonet/pep-gprs.c +++ b/net/phonet/pep-gprs.c @@ -40,7 +40,7 @@ struct gprs_dev { void (*old_data_ready)(struct sock *, int); void (*old_write_space)(struct sock *); - struct ...
Dec 9, 12:45 am 2008
David Miller
Re: [PATCH net-next] myri10ge: check fragmentation in LR ...
From: Brice Goglin <brice@myri.com> Applied, thanks Brice. --
Dec 9, 1:14 am 2008
Rafael J. Wysocki
Re: [PATCH] net (tg3): Fix failure to enable WoL by defa ...
Matt, are you going to take care of this or do you want me to do that? Rafael --
Dec 9, 1:26 pm 2008
Matt Carlson Dec 9, 1:39 pm 2008
David Miller
Re: [PATCH] net (tg3): Fix failure to enable WoL by defa ...
From: "Matt Carlson" <mcarlson@broadcom.com> Ok, can someone post a patch that takes care of that against net-next-2.6? Thanks in advance! --
Dec 9, 1:20 am 2008
David Miller
Re: [Patch] Micrel KS8695 intergrated ethernet driver
From: Christoph Hellwig <hch@infradead.org> Agreed. --
Dec 9, 2:05 am 2008
Daniel Silverstone
Re: [Patch] Micrel KS8695 intergrated ethernet driver
Hello, Attached is what I believe to be a reasonable final-cut of the driver. I believe I have addressed all the concerns raised by Ben Hutchings, Christoph Hellwig and David Miller. Assuming I have done so successfully, I'd like to request a merge of this version. Regards, Daniel. -- Daniel Silverstone http://www.simtec.co.uk/ PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895
Dec 9, 10:00 am 2008
Christoph Hellwig
Re: [Patch] Micrel KS8695 intergrated ethernet driver
You should check for errors anyway. The driver might be ported to an architecture where it can fail (e.g. the SOC block gets reused), ARM variants may come up where it can fail, or people might use the driver as an example for their own new driver. --
Dec 9, 1:57 am 2008
Daniel Silverstone
Re: [Patch] Micrel KS8695 intergrated ethernet driver
Very well, I shall sort out an ammended patch. Thanks for your help in reviewing the code. Regards, Daniel. -- Daniel Silverstone http://www.simtec.co.uk/ PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895 --
Dec 9, 2:29 am 2008
Miguel Ángel Álvarez
Re: qmgr for ixp4xx
Hi Sure... But in case you are not using ethernet in the NPEA (most likely if you are using HSS), ethernet only takes one common queue (TXDONE = 31). The rest of the queues seem to be NPE dependent. At least that was what I thought, but if I change rxq and txreadyq for ethernet in ixdp425-setup.c and give them the values 0x103, 0x114 for NPEB and 0x203, 0x214 for NPEC they also interfere with the queues for HSS (for not 0 hdlcs...). So... Do we have 32 queues for NPE, or some of them are ...
Dec 9, 2:48 am 2008
Christian Hohnstaedt
Re: qmgr for ixp4xx
Crypto needs 2 queues: 29 and 30. The numbers are fixed in the microcode, I think. Christian --
Dec 9, 9:44 am 2008
Waskiewicz Jr, Peter P
Re: [NET-NEXT PATCH] ixgbe: Implement PCIe AER support
I've finally been able to get back to this. I've looked at any other prior use of the PCIe AER routines, and the only driver using it to date is the QLogic QLA2xxx driver in SCSI-land. I've also looked at the return codes, with and without Stephen's recent AER patch, and there's not much the driver can do. If it's catching the errors, the best I can do is print an error message, then continue along. I've put that patch together, and will have it sent along shortly. If there's ...
Dec 9, 12:13 am 2008
Thomas Renninger
Re: [PATCH] PCIe ASPM causes machine (HP Compaq 6735s) t ...
Hi Jesse, can you add this one, please. I adjusted the patch to suggestions from Matthew and Shaohua, thus added their Signed-offs. This should still go into .28 as it makes machines boot which now freeze since the ASPM patch was introduced. Thanks, Thomas ---- PCIe: ASPM: Break out of endless loop waiting for PCI config bits to switch Makes a Compaq 6735s boot reliably again which hang in the loop on some boots. Give the link one second to train, otherwise break out of ...
Dec 9, 5:05 am 2008
Shaohua Li
Re: [PATCH] PCIe ASPM causes machine (HP Compaq 6735s) t ...
child_regs[8] should be enough. There should be just one pcie slot under should we set start_jiffies here? Otherwise, it's ok to me. Thanks, Shaohua --
Dec 8, 6:19 pm 2008
Jesse Barnes Dec 9, 4:05 pm 2008
David Miller
Re: sumgem problems with initializiation order at a 1000 ...
From: Hermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de> I agree, and that's what I'll do. Thanks for testing. --
Dec 9, 1:06 am 2008
David Miller
Re: [patch] sumgem: improve ethtool output with fibre ca ...
From: Hermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de> Patch applied, thanks Hermann. --
Dec 9, 4:39 pm 2008
Balazs Scheidler
Re: Documentation for IP_TRANSPARENT?
Hi, Although it was Krisztian who originally submitted the patches, but I also did some things about them, so here I gave the documentation part a spin. There are some other related options, that are undocumented right now, so I tried to give documentation on those as well. IP_FREEBIND Enable binding to IP addresses that do not currently exist. When enabled on a TCP or UDP socket, the bind(2) call referencing a non-existing IP address will succeed. This functionality is useful ...
Dec 9, 6:17 am 2008
previous daytodaynext day
December 8, 2008December 9, 2008December 10, 2008