linux-netdev mailing list

FromSubjectsort iconDate
Jeff Kirsher
[net-next-2.6 PATCH 1/2] igb: do not re-register DCA req ...
From: Alexander Duyck <alexander.h.duyck@intel.com> The current driver is re-registering the DCA requester after every reset. Instead of doing this we should only be updating the on board DCA registers and not unregistering/re-registering our requester. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- drivers/net/igb/igb_main.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git ...
May 21, 4:06 pm 2009
Jeff Kirsher
[net-next-2.6 PATCH 2/2] ixgbe: only register DCA reques ...
From: Alexander Duyck <alexander.h.duyck@intel.com> The current driver tries to re-register the DCA requester after reset and this is not correct. This change makes it so all we are doing is resetting the DCA registers after reset and not re-adding the requester. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- drivers/net/ixgbe/ixgbe_main.c | 24 ++++-------------------- 1 files changed, 4 insertions(+), 20 ...
May 21, 4:07 pm 2009
Eric W. Biederman
Re: [PATCH 2/2] netns: simplify net_ns_init
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> --
May 21, 2:39 pm 2009
David Miller May 21, 3:10 pm 2009
Eric W. Biederman May 21, 2:39 pm 2009
David Miller May 21, 3:10 pm 2009
Michał Mirosław
[PATCH 2/6 2.6.30-rc6] irda: Use genl_register_family_wi ...
Use genl_register_family_with_ops() instead of a copy. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Cc: Samuel Ortiz <samuel@sortiz.org> diff -urN linux-orig-mqbr/net/irda/irnetlink.c linux-mqbr/net/irda/irnetlink.c --- linux-orig-mqbr/net/irda/irnetlink.c 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/net/irda/irnetlink.c 2009-05-21 17:47:31.000000000 +0200 @@ -148,21 +148,8 @@ int irda_nl_register(void) { - int err, i; - - err = ...
May 21, 1:34 pm 2009
Michał Mirosław
[PATCH 1/6 2.6.30-rc6] genetlink: Introduce genl_registe ...
This introduces genl_register_family_with_ops() that registers a genetlink family along with operations from a table. This is used to kill copy'n'paste occurrences in following patches. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> diff -urN linux-orig-mqbr/include/net/genetlink.h linux-mqbr/include/net/genetlink.h --- linux-orig-mqbr/include/net/genetlink.h 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/include/net/genetlink.h 2009-05-21 17:46:30.000000000 +0200 @@ -88,6 +88,8 ...
May 21, 1:34 pm 2009
Michał Mirosław
[PATCH 6/6 2.6.30-rc6] wireless: Use genl_register_famil ...
Use genl_register_family_with_ops() instead of a copy. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> diff -urN linux-orig-mqbr/net/wireless/nl80211.c linux-mqbr/net/wireless/nl80211.c --- linux-orig-mqbr/net/wireless/nl80211.c 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/net/wireless/nl80211.c 2009-05-21 17:51:34.000000000 +0200 @@ -3395,18 +3395,13 @@ int nl80211_init(void) { - int err, i; + int err; - err = genl_register_family(&nl80211_fam); + err = ...
May 21, 1:34 pm 2009
Michał Mirosław
[PATCH 4/6 2.6.30-rc6] netlabel: Use genl_register_famil ...
Use genl_register_family_with_ops() instead of a copy. This fixes genetlink family leak on error path. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> diff -urN linux-orig-mqbr/net/netlabel/netlabel_cipso_v4.c linux-mqbr/net/netlabel/netlabel_cipso_v4.c --- linux-orig-mqbr/net/netlabel/netlabel_cipso_v4.c 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/net/netlabel/netlabel_cipso_v4.c 2009-05-21 17:53:22.000000000 +0200 @@ -785,18 +785,6 @@ */ int __init ...
May 21, 1:34 pm 2009
David Miller
Re: [PATCH 1/6 2.6.30-rc6] genetlink: Introduce genl_reg ...
From: Michał Mirosław <mirq-linux@rere.qmqm.pl> Nice cleanup, all patches applied to net-next-2.6, dzien dobry!
May 21, 3:14 pm 2009
Michał Mirosław
[PATCH 5/6 2.6.30-rc6] tipc: Use genl_register_family_wi ...
Use genl_register_family_with_ops() instead of a copy. This also changes netlink related variable names to be kernel-wide unique for consistency with other users. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> diff -urN linux-orig-mqbr/net/tipc/netlink.c linux-mqbr/net/tipc/netlink.c --- linux-orig-mqbr/net/tipc/netlink.c 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/net/tipc/netlink.c 2009-05-21 18:04:46.000000000 +0200 @@ -68,7 +68,7 @@ return 0; } -static struct ...
May 21, 1:34 pm 2009
Michał Mirosław
[PATCH 3/6 2.6.30-rc6] ipvs: Use genl_register_family_wi ...
Use genl_register_family_with_ops() instead of a copy. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> diff -urN linux-orig-mqbr/net/netfilter/ipvs/ip_vs_ctl.c linux-mqbr/net/netfilter/ipvs/ip_vs_ctl.c --- linux-orig-mqbr/net/netfilter/ipvs/ip_vs_ctl.c 2009-03-24 00:12:14.000000000 +0100 +++ linux-mqbr/net/netfilter/ipvs/ip_vs_ctl.c 2009-05-21 17:54:36.000000000 +0200 @@ -3345,22 +3345,8 @@ static int __init ip_vs_genl_register(void) { - int ret, i; - - ret = ...
May 21, 1:34 pm 2009
David Miller
Re: [PATCH] gigaset: beyond ARRAY_SIZE of iwb->data
From: Roel Kluin <roel.kluin@gmail.com> Applied to net-2.6 --
May 21, 3:04 pm 2009
Roel Kluin
[PATCH] gigaset: beyond ARRAY_SIZE of iwb->data
Do not go beyond ARRAY_SIZE of iwb->data Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- Sorry for the dup, the header was incorrect. This is against linux-next. diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index fbce522..5569a6e 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c @@ -177,7 +177,7 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size) return -EINVAL; } src = iwb->read; - if ...
May 21, 1:32 pm 2009
Roel Kluin
[PATCH] sunlance: beyond ARRAY_SIZE of ib->btx_ring
Do not go beyond ARRAY_SIZE of ib->btx_ring Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- Please ignore the other "X: ... patch" diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 704301a..e7f1178 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c @@ -343,7 +343,7 @@ static void lance_init_ring_dvma(struct net_device *dev) ib->phys_addr [5] = dev->dev_addr [4]; /* Setup the Tx ring entries */ - for (i = 0; i <= TX_RING_SIZE; i++) { + for (i = ...
May 21, 1:31 pm 2009
David Miller
Re: [PATCH] sunlance: beyond ARRAY_SIZE of ib->btx_ring
From: Roel Kluin <roel.kluin@gmail.com> You don't need to keep CC:'ing Jeff, he hasn't handled networking device driver patches for some time now. --
May 21, 1:34 pm 2009
David Miller
Re: [PATCH] sunlance: beyond ARRAY_SIZE of ib->btx_ring
From: Roel Kluin <roel.kluin@gmail.com> What in the world are you generating this patch against? Linus's tree already has this change, for months. And it was added by you, in February! commit b956d41162b1f2c4b446107e9910e4719cbc75f4 Author: Roel Kluin <roel.kluin@gmail.com> Date: Sat Feb 21 23:46:36 2009 -0800 sunlance: Beyond ARRAY_SIZE of ib->btx_ring Do not go beyond ARRAY_SIZE of ib->btx_ring Signed-off-by: Roel Kluin <roel.kluin@gmail.com> ...
May 21, 3:02 pm 2009
Roel Kluin
[PATCH] X:beyond ARRAY_SIZE of ib->btx_ring
Do not go beyond ARRAY_SIZE of ib->btx_ring Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 704301a..aa2a4ef 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c @@ -343,7 +343,7 @@ static void lance_init_ring_dvma(struct net_device *dev) ib->phys_addr [5] = dev->dev_addr [4]; /* Setup the Tx ring entries */ - for (i = 0; i <= TX_RING_SIZE; i++) { + for (i = 0; i < TX_RING_SIZE; i++) { leptr = ...
May 21, 1:28 pm 2009
Roel Kluin
[PATCH] X:beyond ARRAY_SIZE of iwb->data
Do not go beyond ARRAY_SIZE of iwb->data Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index fbce522..5569a6e 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c @@ -177,7 +177,7 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size) return -EINVAL; } src = iwb->read; - if (unlikely(limit > BAS_OUTBUFSIZE + BAS_OUTBUFPAD || + if (unlikely(limit >= ...
May 21, 1:05 pm 2009
Frans Pop
Re: [2.6.30] e1000e: pci_enable_pcie_error_reporting fai ...
I'm still seeing this with 2.6.30-rc6. Should I just ignore it or is it an indication of a problem/regression? Cheers, FJP --
May 21, 1:00 pm 2009
Rafael J. Wysocki
Re: [2.6.30] e1000e: pci_enable_pcie_error_reporting fai ...
Sorry for the lack of response. I'm not sure if this is a symptom of a regression. It looks like the driver has become more verbose. Thanks, Rafael --
May 21, 1:32 pm 2009
Jiri Pirko May 21, 12:44 pm 2009
Paul Menage
[PATCH] cls_cgroup: read classid atomically in classifier
cls_cgroup: read classid atomically in classifier Avoid reading the unsynchronized value cs->classid multiple times, since it could change concurrently from non-zero to zero; this would result in the classifier returning a positive result with a bogus (zero) classid. Signed-off-by: Paul Menage <menage@google.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> --- Resending to cc netdev@vger.kernel.org as requested by DaveM net/sched/cls_cgroup.c | 22 +++++++++++----------- 1 files ...
May 21, 11:31 am 2009
David Miller
Re: [PATCH] cls_cgroup: read classid atomically in classifier
From: Jiri Pirko <jpirko@redhat.com> Agreed, please use proper formatting. --
May 21, 3:22 pm 2009
tbugiba
Hello Dear
How are you ? I guess you are fine and living good. my name is Trusha a beautiful young girl I find you when i am browsing in the internet and i'm really interesting to know you and establish a serious relationship with you. I wanna be your friend for first friendship cannot be seen or even be touched, it must be felt within the heart.Hoping you feel just the way i do. Wow! friends are like clothes without them you feel naked!I guess am right.I will tell you more about me, my family and all that maybe ...
May 21, 11:08 am 2009
Payment
**Congratulation**
You have won £1,000,000.00 GBP. send the following: name,Age,Sex,Country Mr. Paul Adams. --
May 21, 10:55 am 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Yeah, SOCK_SEQPACKET are just not optimized in the current patch, it could, just providing a sk_prot->unlocked_recvmsg call, etc. And to use sock_common_recvmsg in its socket->ops, which not all protocol families do, but was my plan long ago to make all use so that we could shorten the path, etc :-) - Arnaldo --
May 21, 9:45 am 2009
David Miller
Re: [PATCH 1/1] isdn: Use kernel_{send,recv}msg instead ...
From: Arnaldo Carvalho de Melo <acme@redhat.com> Nice work, applied, thanks! --
May 21, 3:14 pm 2009
David Miller
Re: [PATCH 1/1] isdn: Use kernel_{send,recv}msg instead ...
From: David Miller <davem@davemloft.net> Nevermind, I'm reverting, this doesn't even build: drivers/isdn/mISDN/l1oip_core.c: In function 'l1oip_socket_send': drivers/isdn/mISDN/l1oip_core.c:354: warning: passing argument 3 of 'kernel_sendmsg' makes pointer from integer without a cast drivers/isdn/mISDN/l1oip_core.c:354: error: too few arguments to function 'kernel_sendmsg' drivers/isdn/mISDN/l1oip_core.c: In function 'l1oip_socket_thread': drivers/isdn/mISDN/l1oip_core.c:729: warning: passing ...
May 21, 4:49 pm 2009
Arnaldo Carvalho de Melo
[PATCH 1/1] isdn: Use kernel_{send,recv}msg instead of o ...
Reducing the number of direct users of sock_{recv,send}msg. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index abe5749..8caf40e 100644 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/isdn/mISDN/l1oip_core.c @@ -279,7 +279,6 @@ l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask, int multi = 0; u8 frame[len+32]; struct socket *socket = NULL; - mm_segment_t oldfs; ...
May 21, 8:41 am 2009
Alejandro Riveira
Re: [mac80211 ] Wifi Network slownes bisected
El Thu, 21 May 2009 18:08:11 +0200 Enough to notice it when connecting through a 3MBit Adsl connection i.e. with the patch i get 30 40 60 ... 80 kiB maximum without it full 310 KiB so it is an issue for me (i have inet <-> modem-router <-> myPC only so i can not test with another pc) Well it does by a lot avg of 60 KiB vs 300 KiB is lot for me My Ap is set to "mixed" but i connect at G speeds ie iwconfig show 54M or = 48M or 36M but the connection is slow nonetheless=20 Do ...
May 21, 10:18 am 2009
Alejandro Riveira
[mac80211 ] Wifi Network slownes bisected
LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMjU2DQoNCg0KIEkg aGF2ZSBhIHJ0MjUwMHBjaSBjYXJkDQoNCiBJIG5vdGljZWQgdGhhdCBteSB3aWZpIGNvbm5lY3Rp b24gaGFzIHNsb3dlZCB3aGVuIHN0aXRjaGluZw0KZnJvbSAyLjYuMjkuMSB0byAyLjYuMjkuNCAo aXQgaXMgYWxzbyBzbG93IG9uIDMwLXJjNikNCkFsc28gMi42LjI3ICh1YnVudHUpIGRvZXMgbm90 IHN1ZmZlciBpdC4NCg0KIEkgYmlzZWN0ZWQgYW5kIGNhbWUgdG8gdGhlIGZvbGxvd2luZyBjb21t aXQgYXMgdGhlIGN1bHByaXQNCg0KIEkgY2FuIHRlc3QgcGF0Y2hlcyBhbmQgaWYgeW91IG5lZWQg bW9yZSBpbmZvIGp1c3QgYXNrLg0KDQokIGdpdCBi ...
May 21, 8:38 am 2009
Johannes Berg
Re: [mac80211 ] Wifi Network slownes bisected
Well ... How much did your connection slow down? It is clear that this commit might possibly slow down your connection, but not by a lot. And that's only because before we were sending with a higher rate than the AP allowed us to... If you need the higher speed then set your AP to G-only to make it include more rates in the basic rate set, that'll speed up your connection properly. That's all discounting driver bugs which may exist, of course. johannes
May 21, 9:08 am 2009
Jmc Loan Terms
Loan Application
We loan at 3% Any interested person, Contact us now Via Email:jmcloandept@ymail.com for more details, regards. --
May 21, 5:07 am 2009
Stefan Richter
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
Sure, because 1. eth1394 was initially written with an eye on how Linux Ethernet drivers look like (for quite a while it didn't implement RFC 2734), 2. by nature, RFC 2734 as an IP encapsulation can't be very different from Ethernet. As it happens, RFC 2734 indeed reuses a certain 16 bits wide protocol type field in its encapsulation header, with familar values such as 0x0800. [BTW, the rest of the struct eth1394hdr is not the encapsulation header which goes ...
May 21, 2:35 pm 2009
Stefan Richter
[PATCH] ieee1394: eth1394: use "firewire%d" instead of " ...
Change the initial name of IP-over-1394 networking interfaces from "eth[0-9]+" to "firewire[0-9]+". This should have been done years ago for the reason mentioned in the inline comment. The naming issue basically prevented acceptance of IP networking over 1394 on Linux. The future IP-over1394 driver in the newer alternative firewire driver stack will use the "firewire%d" format from the start while "eth%d" will no longer be used in the new driver. Necessary changes in userland: People ...
May 21, 6:29 am 2009
Jiri Pirko
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
Isn't "firewire" too long? Wouldn't it be better to use some addrev like other devices do? "fw"? To safe some time and possible troubles with typos. Just a thought. --
May 21, 6:48 am 2009
Kay Sievers
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
I don't think so, stuff at the tools level usually works flawlessly with "eth0_rename_ren" devices, when things went wrong with renaming the devices. :) Kay --
May 21, 9:43 am 2009
Stefan Richter
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
Ethtool shows: driver: eth1394 version: firmware-version: bus-info: ieee1394 And the sysfs representations of the netdevices have an fw-host* device in the parent device chain. I agree that userland should read less into names as they are handed out by the kernel. I am also aware that it depends on the use case what naming scheme can be considered useful, hence userspace needs to give his own names anyway, regardless of how the kernel named it. But I mildly disagree with the ...
May 21, 1:13 pm 2009
David Miller
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
From: Stefan Richter <stefanr@s5r6.in-berlin.de> I think the basis for this patch is completely bogus. Device names are just that, names. If you want to know "what it is" or "where it is" you use tools to determine that information. If you make ethtool's get info command return something useful, then the user can see that it's a firewire interface and act accordingly, as can sophisticated confiruation applications. I am completely against this patch. --
May 21, 12:34 pm 2009
David Miller
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
From: Stefan Richter <stefanr@s5r6.in-berlin.de> Even the driver source file is named "ethXXX"! All of the macros in the driver are named ETH*. The eth1394hdr looks eerily similar to a real ethernet header except that it lacks a source MAC address. It's addressing information plus a 16-bit (wow, why that size huh?) protocol field. A lot like ethernet. At the very least, it's related and similar. So there is really You have more to lose by changing this now (breaking existing ...
May 21, 1:33 pm 2009
Stefan Richter
Re: [PATCH] ieee1394: eth1394: use "firewire%d" instead ...
Usually I prefer brevity too. Alas, it may not be clear to many people what "fw" is supposed to mean. People might associate it with, let's say, "firewall" before "firewire" when they deal with networking. However, more opinions on this are welcome. As for practical length restrictions: The kernel's networking core requires that these names fit into 15 characters plus trailing \0. I don't have an idea whether there are userland components which have even tighter ...
May 21, 7:31 am 2009
David Howells
[PATCH] RxRPC: Error handling for rxrpc_alloc_connection()
From: Dan Carpenter <error27@gmail.com> rxrpc_alloc_connection() doesn't return an error code on failure, it just returns NULL. IS_ERR(NULL) is false. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> --- net/rxrpc/ar-connection.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/rxrpc/ar-connection.c b/net/rxrpc/ar-connection.c index 0f1218b..67e38a0 100644 --- a/net/rxrpc/ar-connection.c +++ ...
May 21, 6:20 am 2009
David Miller
Re: [PATCH] RxRPC: Error handling for rxrpc_alloc_connection()
From: David Howells <dhowells@redhat.com> Applied to net-2.6, thanks! --
May 21, 3:22 pm 2009
Jmc Loan Terms
Loan Application
We loan at 3% Any interested person, Contact us now Via Email:jmcloandept@ymail.com for more details, regards. --
May 21, 5:08 am 2009
Tobacco Online Promo
Dear Sir/Madam
Dear Sir/Madam, This is to notify you that your Email Address have been awarded the sum of 1,000,000 GBP in the recent Tobacco Online Promo, for claims get back to us with your full details. Names:............ Address:.............. Country:................. Age:.......... Sex:.............. Phone/cellphone........ --
May 21, 4:30 am 2009
David Miller
Re: [oops] with FIB_TRIE [PATCH]
From: Robert Olsson <robert@robur.slu.se> Applied, thanks Robert. --
May 21, 3:21 pm 2009
Robert Olsson
Re: [oops] with FIB_TRIE [PATCH]
Hi, Andrei Popa: > clear ip bgp * soft" > when I have three full BGP sessions the kernel it oopses. > with CONFIG_PREEMPT=y It seems we can fix this by disabling preemption while we re-balance the trie. This is with the CONFIG_CLASSIC_RCU. It's been stress-tested at high loads continuesly taking a full BGP table up/down via iproute -batch. A patch is below. Note. fib_trie is not updated for CONFIG_PREEMPT_RCU Cheers --ro Signed-off-by: Robert Olsson ...
May 21, 3:19 am 2009
Grant Likely
Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.
If it looks too ugly, then just fork the driver. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. --
May 21, 8:36 am 2009
Piotr
Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.
I thought a bit more about merging FEC drivers and I see one problem more. Driver fs_enet works with FEC's with own DMA engine and fec_mpc52xx.c uses BestComm. Integration of these two drivers will need a DMA abstraction layer to keep everything clean. Unfortuanetly BestComm driver does not provide any abstraction - it only exports set of functions to deal with specific hardware: FEC and PATA. More #ifdef's will be needed to remove linking with BestComm driver if kernel will be compiled ...
May 21, 1:34 am 2009
ul
(no subject)
-- You've earned £1,000,000 GBP.Necessary information:name,age,country Email:barrkellymore@9.cn --
May 20, 10:50 pm 2009
David Miller
Re: [PATCH net-next] cxgb: set phy's mdio dev before the ...
From: Divy Le Ray <divy@chelsio.com> Applied. --
May 20, 8:52 pm 2009
Divy Le Ray
[PATCH net-next] cxgb: set phy's mdio dev before the phy ...
From: Divy Le Ray <divy@chelsio.com> mdio's dev field needs to be set before mdio ops occur. Signed-off-by: Divy Le Ray <divy@chelsio.com> --- drivers/net/chelsio/cphy.h | 6 ++++-- drivers/net/chelsio/mv88e1xxx.c | 5 +++-- drivers/net/chelsio/mv88x201x.c | 4 ++-- drivers/net/chelsio/my3126.c | 4 ++-- drivers/net/chelsio/subr.c | 5 ++--- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/net/chelsio/cphy.h ...
May 20, 6:56 pm 2009
David Miller
Re: [PATCH net-next] cxgb3: set phy's mdio dev before th ...
From: Divy Le Ray <divy@chelsio.com> Applied. --
May 20, 8:52 pm 2009
Divy Le Ray
[PATCH net-next] cxgb3: set phy's mdio dev before the ph ...
From: Divy Le Ray <divy@chelsio.com> mdio's dev field needs to be set before mdio ops occur. Signed-off-by: Divy Le Ray <divy@chelsio.com> --- drivers/net/cxgb3/t3_hw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index c8a865a..7e502ff 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c @@ -3864,11 +3864,11 @@ int t3_prep_adapter(struct adapter *adapter, const struct adapter_info ...
May 20, 6:56 pm 2009
Minoru Usui
[BUG] net_cls: Panic occured when net_cls subsystem use
Hi Unfortunately this is only panic report. I used cgroup net_cls subsystem, then kernel panic occured. I attach panic message and kernel config in this mail's last paragraph. If my operation is wrong, could you tell me how to use net_cls and where the documentation is. # But I think panic is very bad even if my operation is wrong. System Environment: kernel: * 2.6.29.1 on x86_64 * 2.6.29.3 on x86_64 * 2.6.30-rc6 on x86_64 (panic occurred same sequence but I ...
May 20, 5:22 pm 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
recvmsg consumes just one skb, a datagram, truncating if it has more bytes than asked and giving less bytes than asked for if the skb being consumer is smaller than requested. WRT iovec, it gets this skb/datagram and goes on filling iovec entry by entry, till it exhausts the skb. The usecase here is: UDP socket has multiple skbs in its receive queue, so application will make several syscalls to get those skbs while we could return multiple datagrams in just one syscall + fd lookup + ...
May 21, 9:27 am 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Agreed that we must do this earlier to avoind vlen calls to security_socket_recvmsg, but there are many callers of sock_recvmsg... Also shouldn't recvmmsg have a different LSM hook? It doesn't look right at first sight to reuse security_socket_recvmsg, as we now are passing many msghdrs and sockaddrs, etc. If security_socket_recvmsg receives the msg and inspects it, I think fully inspecting the mmsg and vlen can be something LSM policies can be interested in inspecting too, no? - ...
May 21, 7:47 am 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
So you mean we need a timeout to wait for a datagram, that remains being sk->sk_rcvtimeo (SO_RCVTIMEO), and one that is passed as a parameter to checking if MSG_OOB is set in the last datagram returned by the unlocked_recvmsg call, that would make recvmmsg return imediately even OK - Arnaldo --
May 21, 10:51 am 2009
Evgeniy Polyakov
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Hi Arnaldo. What's the difference from the single msg with multiple iovecs? Can we implement receiving from multiple sockets using this or similar interface? -- Evgeniy Polyakov --
May 21, 9:10 am 2009
Paul Moore
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
NOTE: adding the LSM list to the CC line If this approach is accepted I wonder if it would also make sense to move the security_socket_recvmsg() hook out of __sock_recvmsg and into the callers. I personally can't see a reason why we would need to call into the LSM for each message in the case of the new recvmmsg() syscall. The downside is that there is now some code duplication (although we are only talking duplicating ~three lines of code) but the upside is that we wont end up calling ...
May 21, 7:16 am 2009
Paul Moore
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Yep, and since they are a rather ornery bunch I'm sure they will speak up. However, I would say to go ahead and trim the unused args and if we need them in the future we can always add them back in; none of this is really visible outside the kernel so changes are relatively easy. I'd hate to see us miss an opportunity to make things better over concerns about what might happen at some unknown point in the future. -- paul moore linux @ hp --
May 21, 8:24 am 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Good points, that will require some sort of change to sk->sk_rcvtimeo handling so that the timeout for each datagram are deduced from the configured timeout for the socket, so that the existing code doesn't have to be changed. I.e. recvmmsg would save the value of sk->sk_rcvtimeo at entry and restore at exit, and would somehow go on subtracting the time sock_recvmsg() took from it so that the following call finds a reduced sk->sk_rcvtimeo iif it was configured in the first place and the ...
May 21, 9:55 am 2009
Neil Horman
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
I assume that silently ignoring flags we don't understand is a specified part of the sockets api? I was looking at the posix definition of recvmsg and I don't see where its required that we ignore unknown flags (although I can see The new system call is definately cleaner, as it lets you specify the array semantics in a way that is much more efficient and less cumbersome for both user and kernel space. I just thought I'd propose an alternate method that avoids the need for a new syscall. It ...
May 21, 3:40 am 2009
Neil Horman
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Its a neat idea, I like the possibility on saving lots of syscalls for busy sockets, but I imagine the addition of a new syscall gives people pause. I wonder if simply augmenting the existing recvmsg syscall with a message flag to indicate that multiple messages can be received on that call. What I would propose looks something like: 1) define a new flag in the msghdr pointer for msg_flags, MSG_COMPOUND. Setting this on the call lets the protocol we can store multiple messages 2) if this ...
May 20, 5:46 pm 2009
Steven Whitehouse
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Hi, Its not just UDP/SOCK_DGRAM either. SOCK_SEQPACKET has to return after each message because it is not allowed to (nor can it, given the api) return more than one message in a single call. So with small messages that can add up to a lot of calls. This way the MSG_EOR flags can be preserved in the correct places, Steve. --
May 21, 9:33 am 2009
Caitlin Bestler
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
On Thu, May 21, 2009 at 9:55 AM, Arnaldo Carvalho de Melo I suspect that an additional timeout value will be needed ultimately. Essentially there is the existing timeout (how long will I wait before I want to be told that there have been no messages) and an additional "delivery pending" timeout (how long can the delivery of a message be delayed to attempt to coalesce it with other messages). There is also one sticky compliance issue with SCTP, delivery of an UNORDERED message MUST NOT be ...
May 21, 10:26 am 2009
Paul Moore
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Yeah, like I said there is a downside to this approach, the question is how much do we care about performance and what are we willing to give up for it? Well, right now the only LSM of the three in the mainline kernel that makes use of the recvmsg hook is SELinux and in SELinux the recvmsg hook really only checks to see if the process can read from the socket - there is no access check against the message itself. In general, all of the per-packet/message access controls happen below ...
May 21, 8:03 am 2009
Caitlin Bestler
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
There is an assumption here that unless MSG_DONTWAIT is set, or there is an error, that the caller will be willing to wait indefinitely for N messages to show up -- and that it is never worth waking up the caller earlier with less than N messages. I think an application would more typically want to wait at most m msecs after the first message is received to see if any other messages can be delivered at the same time. A busy server could simply use DONTWAIT in a polling loop every ...
May 21, 9:38 am 2009
David Miller
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
From: Neil Horman <nhorman@tuxdriver.com> Unfortunately you can't use msg flags for this. We accept any message flag we don't understand without signalling any errors. So there is no way to determine if the kernel supports the flag or not. Whereas with a socket option, we'll always get an error on older kernels for unsupported options. I think the system call is the cleanest, because it's not only a semantic change but also a data type change. I also think the socket option scheme is ...
May 20, 8:50 pm 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
I didn't went into such detail when discussing this with Dave on IRC, but I thought about something like using a setsockopt to tell the kernel that the socket was in multiple message mode, lemme look at the discussion to be faithful to it... [18:22] <acme> I see, but the bastardization I was thinking was about just putting a datagram per iovec instead of taking a datagram and go on spilling it over the iovec entries, if some sockopt was set, as a first try ;-) [18:23] <davem> Oh I ...
May 20, 7:05 pm 2009
Arnaldo Carvalho de Melo
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
Well, if we only check if the process can read from the socket, I also see no reasons for a new security_socket_recvmmsg nor for checking it multiple times in recvmmsg, since what changes (the msg) is of no Perhaps, but up to LSM folks to tell if this was really a case where passing the msg was something that ended up being overkill. - Arnaldo --
May 21, 8:11 am 2009
Neil Horman
Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
I agree, your way of doing this definately lets you layer on top of the existing vetted implementation, which is nice, I just thought that avoiding the creation of another syscall might be worth a little extra work in the kernel. Instead of arrays of msghdrs, We'd be looking at chains like this: msghdr->(struct msghdr *)msg_control[i].data->msghdr->etc Not too hard to parse, I dont think. But I'll defer to brighter minds than mine. If the creation of another syscall isn't too difficult a ...
May 20, 7:26 pm 2009
David Miller
Re: [RFC 0/2] New socket API: recvmmsg
From: Arnaldo Carvalho de Melo <acme@redhat.com> As I discussed with Arnaldo on IRC I am OK with this kind of interface. And, also, I think we need to seriously consider the patches posted by others a few weeks ago that allowed sending to multiple receivers in one system call. The old adage about syscalls being cheap no longer holds when we're talking about traversing all the way into the protocol stack socket code every call, taking the socket lock every time, etc. So we really do need ...
May 20, 5:30 pm 2009
David Miller
Re: 2.6.29.1 pktgen crash
From: Florian Westphal <fw@strlen.de> Applied and queued up for -stable, thanks. --
May 21, 3:07 pm 2009
Florian Westphal
Re: 2.6.29.1 pktgen crash
[..] This should fix it: From bca277bb59b865a4e9516953dfc9818af1a7deea Mon Sep 17 00:00:00 2001 From: Florian Westphal <fw@strlen.de> Date: Thu, 21 May 2009 23:52:17 +0200 Subject: [PATCH] pktgen: do not access flows[] beyond its length typo -- pkt_dev->nflows is for stats only, the number of concurrent flows is stored in cflows. Reported-By: Vladimir Ivashchenko <hazard@francoudi.com> Signed-off-by: Florian Westphal <fw@strlen.de> --- net/core/pktgen.c | 2 +- 1 files changed, 1 ...
May 21, 2:59 pm 2009
David Miller
Re: pull request: wireless-2.6 2009-05-20
From: "John W. Linville" <linville@tuxdriver.com> Pulled, thanks John! --
May 20, 5:34 pm 2009
David Miller
Re: Question about /proc/net/netlink mystery
From: Ben Hutchings <bhutchings@solarflare.com> Indeed, it's odd, but like others I don't think we can change it at this point. --
May 20, 8:54 pm 2009
David Miller May 20, 5:37 pm 2009
David Miller
Re: [PATCH] af_packet: Teach to listen for multiple unic ...
From: ebiederm@xmission.com (Eric W. Biederman) Looks good, applied to net-next-2.6 --
May 21, 3:15 pm 2009
David Miller
Re: [PATCH 2/2] cxgb3: Use generic XENPAK LASI register ...
From: Divy Le Ray <divy@chelsio.com> Applied. --
May 20, 8:52 pm 2009
Divy Le Ray May 20, 6:52 pm 2009
Divy Le Ray May 20, 6:51 pm 2009
David Miller
Re: [PATCH 1/2] chelsio: Use generic XENPAK LASI registe ...
From: Divy Le Ray <divy@chelsio.com> Applied. --
May 20, 8:52 pm 2009
Jesper Dangaard Brouer
Re: How fast can your 10G go?
Robert Olsson (and Olof Hagsand and Bengt G
May 21, 1:35 am 2009
Dan Williams
Re: rfkill vs. interface up
That proposal sounds fine to me from a userspace perspective. Sane implementations don't assume the interface is IFF_UP when they configure the device anyway (since it's not necessarily up at boot time or after hibernate for example), and since you need a reconfigure after rfkill, this seems reasonable. You wouldn't have to give up on txpower either, you could simply map 'txpower off' to SW-rfkill, and 'txpower on' to un-SW-rfkill, where of course the interface would be !IFF_UP after ...
May 21, 8:39 am 2009
Johannes Berg
Re: rfkill vs. interface up
Yeah, good point, that sounds better than having to give up on it -- the key though is that we can't recover IFF_UP state when that happens; if that's ok this should be fairly simple. johannes
May 21, 9:05 am 2009
Dan Williams
Re: rfkill vs. interface up
I don't think recovering IFF_UP needs to be done by the kernel. rfkill already hoses the card state anyway, requiring a full setup by userspace, which usually includes ensuring the device is up (which, for example, both NM and wpa_supplicant have done since the beginning of time). Dan --
May 21, 9:32 am 2009
David Miller
Re: [net-next-2.6 PATCH][be2net] remove napi in the tx p ...
From: Eric Dumazet <dada1@cosmosbay.com> Yes and that kind of idea can be combined with the SW multiqueue That's another idea. However the ordering necessary to do this correctly on some chips might make the cost of it prohibitive. For example, it might only be safe to check the consumer pointer value DMA's by a device into the status block after an IRQ is received unless some expensive synchronization (f.e. a register read) is One thing that one must understand is that deferring any SKB ...
May 20, 5:25 pm 2009
David Miller
Re: [PATCH] IPv6: set RTPROT_KERNEL to initial route
From: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com> Applied, thanks! --
May 20, 5:39 pm 2009
David Miller
Re: [PATCH] net: fix length computation in rt_check_expire()
From: Neil Horman <nhorman@tuxdriver.com> Applied and queued up for -stable. --
May 20, 5:19 pm 2009
David Miller
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c
From: Neil Horman <nhorman@tuxdriver.com> Also applied and queued up for -stable, thanks! --
May 20, 5:19 pm 2009
matthieu castet
Re: [PATCH] bc47xx : export ssb_watchdog_timer_set
Hi, Off course. BTW what's the procedure for submitting patch on mips ? I already CC linux-mips, on the first patch submission. Now that it is acked by maintainer, I should resend it to linux-mips + Ralf ? Thanks Matthieu --
May 21, 3:45 am 2009
matthieu castet
Re: [PATCH] bc47xx : export ssb_watchdog_timer_set
It shouldn't be a problem : the system code always disable irq before using watchdog to reboot/halt (unless I miss other watchdog usage). Matthieu --
May 21, 3:39 am 2009
Denys Fedoryschenko
Re: ipt_MASQUERADE weirdness (consuming CPU cycles while ...
It is loaded pppoe server (2k interfaces), sure they are appearing-disappearing non-stop. Thats maybe case, but weird that it is consuming CPU time while module not used at all anywhere (no rules with MASQUERADE). --
May 21, 1:10 pm 2009
Pablo Neira Ayuso
Re: ipt_MASQUERADE weirdness (consuming CPU cycles while ...
Are you using 2.6.29 with any conntrack helper loaded? In that case this fix is not in -stable yet. device_cmp() by nf_ct_iterate_cleanup() when NETDEV_DOWN event is received. Weird, is your device going down quite often? Another possibility is that there's some entry stuck in the conntrack table that we cannot delete, perhaps we're leaking refcounts somewhere. -- "Los honestos son inadaptados sociales" -- Les Luthiers --
May 21, 11:00 am 2009
Rusty Russell
Re: [RFC] virtio: orphan skbs if we're relying on timer ...
I haven't thought this through properly, but how about a hack where we don't orphan packets if the ring is over half full? Then I guess we could overload the watchdog as a more general timer-after-no- xmit? Rusty. --
May 20, 11:57 pm 2009
Dimitris Michailidis
Re: [RFC] virtio: orphan skbs if we're relying on timer ...
The cxgb3 driver has had skb_orphan in its transmit routine forever (also due to lack of Tx interrupts) and I am not aware of adverse effects caused by doing so. It does skip skb_orphan when skb_shared but probably nobody sends sharead skbs with destructors. The only application I know of that has trouble with lazy skb freeing is pktgen because it treats freeing as an indication that the packet has been transmitted so it's thrown off if packets sit there for a while. (Also freeing ...
May 21, 10:24 am 2009
David Miller
Re: [RFC] virtio: orphan skbs if we're relying on timer ...
From: Rusty Russell <rusty@rustcorp.com.au> Now this all is predicated on this actually mattering. :-) You could argue that the scheduler as well as the size of the TX queue should be limiting and enforcing fairness. Someone really needs to test this. Just skb_orphan() every packet at the beginning of dev_hard_start_xmit(), then run some test program with two clients looping out UDP packets to see if one can monopolize the device and get a significantly larger amount That would also ...
May 21, 12:15 am 2009
chaithrika
RE: [PATCH v2] net-next-2.6: TI DaVinci EMAC driver
OK. Will submit a patch for this. Regards, Chaithrika --
May 21, 4:29 am 2009
Jarek Poplawski
Re: HTB accuracy for high speed
Yes, you need to use flow "dst" key, I guess. (tc filter add flow help) Generally, the most common reasons are: - too short (or zero) tx queue length or/plus some disturbances in maintaining the flow - for not reaching the rate - gso/tso or other non standard packets sizes - for exceeding the rate. --
May 21, 1:28 am 2009
Eric Dumazet
Re: HTB accuracy for high speed
Could we detect this at runtime and emit a warning (once) ? Or should we assume guys using this stuff should be smart enough ? I confess I made this error once and this was not so easy to spot... --
May 21, 2:07 am 2009
Jarek Poplawski
Re: HTB accuracy for high speed
On Thu, May 21, 2009 at 11:07:24AM +0200, Eric Dumazet wrote: I guess, it's a rhetorical question... Jarek P. --
May 21, 2:22 am 2009
Vladimir Ivashchenko
Re: HTB accuracy for high speed
Can I balance only by destination IP using this approach? Normal IP flow-based balancing is not good for me, I need Yes indeed :( I'm trying to migrate from 2.6.21 eth/htb/esfq to 2.6.29 bond/htb/sfq, and that introduces a lot of changes. Apparently during some point I changed sfq divisor from 1024 to 2048 and forgot about it. Now I realize that the problems I reported were as follows: 1) HTB exceeds target when I use HTB + sfq + divisor 1024 2) HFSC exceeds target when I use ...
May 21, 12:44 am 2009
Jarek Poplawski
Re: HTB accuracy for high speed
Yes, sfq has its design limits, and as a matter of fact, because of max length (127) it should be treated as a toy or "personal" qdisc. I don't know why more of esfq wasn't merged, anyway similar functionality could be achieved in current kernels with sch_drr + cls_flow, alas not enough documented. Here is some hint: http://markmail.org/message/h24627xkrxyqxn4k Jarek P. PS: I guess, you wasn't very consistent if your main problem was exceeding or not reaching htb rate, and there is quite ...
May 21, 12:20 am 2009
Jarek Poplawski
Re: [PATCH iproute2] Re: HTB accuracy for high speed
I still have no clue about the reason, but it would be really nice to do some short test with more current kernel (>= 2.6.27) and iproute2 (to exclude the possibility of some incomaptibility in configs e.g. rate tables passed to htb). Thanks, Jarek P. --
May 21, 1:51 am 2009
Rusty Russell
Re: user space virtio-net exits with "truncating packet" error
Yes, that nomenclature is a bit weird. I prefer "driver" (aka. guest, aka front-end) and "device" (aka. host, aka back-end). All virtio_net drivers offer some features (at least CSUM offload), and 2.6.26 and above will offer some serious GSO features. Cheers, Rusty. --
May 20, 10:53 pm 2009
David Miller
Re: [PATCH] dropmon: add ability to detect when hardware ...
From: Neil Horman <nhorman@tuxdriver.com> If skbuff.h gets you the declaration for "struct napi_struct" it's via some indirect accident rather than it actually being in linux/skbuff.h Please include the correct headers, thanks. --
May 21, 12:17 am 2009
David Miller
Re: [PATCH] dropmon: add ability to detect when hardware ...
From: Neil Horman <nhorman@tuxdriver.com> Applied to net-next-2.6, thanks! --
May 21, 3:15 pm 2009
Neil Horman
Re: [PATCH] dropmon: add ability to detect when hardware ...
Thank you Dave, copy n' paste bit me. Patch v6 Change notes: 1) updated header file in trace/napi.h to include netdevice.h so that I correctly pull in struct napi_struct definition Neil Patch to add the ability to detect drops in hardware interfaces via dropwatch. Adds a tracepoint to net_rx_action to signal everytime a napi instance is polled. The dropmon code then periodically checks to see if the rx_frames counter has changed, and if so, adds a drop notification to the ...
May 21, 10:36 am 2009
Li Yang
Re: [PATCH 3/6] powerpc: add memory map support to Frees ...
On Wed, May 13, 2009 at 6:05 AM, Andrew Morton Will change to use ilog2(). _ALIGN_DOWN() gets a lower aligned address while ALIGN() gets a higher address. It seems that we don't have a general helper to do the same. - Leo --
May 21, 3:43 am 2009
David Miller
Re: [PATCH 0/1] NIU: fix spurious interrupts
From: "Hong H. Pham" <hong.pham@windriver.com> Thanks for doing this testing, I'll think about how to attack this bug. --
May 20, 5:37 pm 2009
David Miller
Re: [PATCH 0/1] NIU: fix spurious interrupts
From: "Hong H. Pham" <hong.pham@windriver.com> There's a bug in your debugging patch: + ld_im0_reg = LD_IM0(ldn); + ldg_imgmt_reg = LDG_IMGMT(ldn); You're reading the register "address", not the register's "value". So all of the debugging output is bogus. You need to do nr64(ld_im0_reg) and use that as the value, for example. Can you rerun the test with this fixed? Thanks! --
May 21, 3:18 pm 2009
Eric Dumazet
Re: [PATCH] net: reduce number of reference taken on sk_refcnt
This change gave me about 15% increase in bandwidth in a multiflow tcp benchmark. But this optimization worked because tasks could be wakeup and send their answer in the same jiffies, and 'rearming' the xmit timer with the same value... (135.000 messages received/sent per second in my benchmark, with 60 flows) mod_timer() has special heuristic to avoid calling __mod_timer() int mod_timer(struct timer_list *timer, unsigned long expires) { /* * This is a common ...
May 21, 2:07 am 2009
previous daytodaynext day
May 20, 2009May 21, 2009May 22, 2009