linux-netdev mailing list

FromSubjectsort iconDate
Jeff Kirsher
[net-2.6 PATCH] e1000e: change logical negate to bitwise
From: Dan Carpenter <error27@gmail.com> The bitwise negate is intended here. With the logical negate the condition is always false. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- drivers/net/e1000e/netdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 24507f3..57a7e41 100644 --- ...
Jun 2, 4:43 pm 2010
Ben Hutchings
Re: Bug#584238: linux-image-2.6.32-3-486: When using USB ...
I'm forwarding this to the pegasus driver developers so they can comment on it. Debian kernel version 2.6.32-9 is closely based on stable kernel 2.6.32.9. -- Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse.
Jun 2, 4:24 pm 2010
Jeff Kirsher
[net-2.6 PATCH] ixgbe: return IXGBE_ERR_RAR_INDEX when o ...
Based on original patch from Shirley Ma <xma@us.ibm.com> Return IXGBE_ERR_RAR_INDEX when RAR index is out of range, instead of returning IXGBE_SUCCESS. CC: Shirley Ma <xma@us.ibm.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Acked-by: Don Skidmore <donald.c.skidmore@intel.com> --- drivers/net/ixgbe/ixgbe_common.c | 2 ++ drivers/net/ixgbe/ixgbe_type.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_common.c ...
Jun 2, 3:44 pm 2010
HALL MARK TRUS BANK
N/A
CONGRATULATION YOUR EMAIL HAS WON 950,000 POUNDS --
Jun 2, 3:09 pm 2010
Jeff Kirsher
[net-next-2.6 PATCH 1/2] skbuff: add check for non-linea ...
From: Alexander Duyck <alexander.h.duyck@intel.com> We can avoid an unecessary cache miss by checking if the skb is non-linear before accessing gso_size/gso_type in skb_warn_if_lro, the same can also be done to avoid a cache miss on nr_frags if data_len is 0. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- include/linux/skbuff.h | 3 ++- net/core/dev.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 ...
Jun 2, 3:24 pm 2010
Eric Dumazet
[PATCH net-next-2.6] net: use __packed annotation
cleanup patch. Use new __packed annotation in net/ and include/ (except netfilter) Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- include/linux/if_ether.h | 2 include/linux/if_fddi.h | 8 +-- include/linux/if_frad.h | 2 include/linux/if_hippi.h | 8 +-- include/linux/if_pppox.h | 8 +-- include/linux/ipv6.h | 4 - include/linux/isdnif.h | 2 include/linux/mISDNif.h | 2 include/linux/nbd.h | 2 ...
Jun 2, 3:20 pm 2010
Ben Hutchings
[PATCH] sfc: Store port number in net_device::dev_id
This exposes the port number to userland through sysfs. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> --- Following on from the earlier discussion of dev_id, here's the necessary change for sfc. This depends on commit dd8f61d "sfc: Get port number from CS_PORT_NUM, not PCI function number". Please consider including both of these in net-2.6. Ben. drivers/net/sfc/net_driver.h | 4 +--- drivers/net/sfc/siena.c | 2 +- 2 files changed, 2 insertions(+), 4 ...
Jun 2, 1:39 pm 2010
Roland Dreier
[PATCH] epic100: Test __BIG_ENDIAN instead of (non-exist ...
Probably no one has used this driver on big-endian systems, since it was setting up descriptor swapping if CONFIG_BIG_ENDIAN is set, which it never is, since that symbol is not mentioned anywhere else in the kernel source. Switch this test to a check for __BIG_ENDIAN so it has a chance at working. Signed-off-by: Roland Dreier <rolandd@cisco.com> --- drivers/net/epic100.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/epic100.c ...
Jun 2, 1:36 pm 2010
Denis Kirjanov
[PATCH] fec: convert legacy PM hooks to dem_pm_ops
This patch compile tested only. Convert legacy PM hooks to dev_pm_ops Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> --- drivers/net/fec.c | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 42d9ac9..6990791 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1339,6 +1339,8 @@ fec_drv_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM + static int ...
Jun 2, 12:27 pm 2010
Denis Kirjanov
[PATCH 2/2] fec: Cleanup PHY probing
Cleanup PHY probing: use helpers from phylib Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> --- drivers/net/fec.c | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index edfff92..c107d8e 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -679,30 +679,24 @@ static int fec_enet_mii_probe(struct net_device *dev) { struct fec_enet_private *fep = netdev_priv(dev); struct phy_device *phy_dev = ...
Jun 2, 12:17 pm 2010
Denis Kirjanov
[PATCH 1/2] fec: convert TX hook to netdev_tx_t
Convert TX hook return value to netdev_tx_t Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> --- drivers/net/fec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 42d9ac9..64afed0 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -208,7 +208,7 @@ static void fec_stop(struct net_device *dev); /* Transmitter timeout */ #define TX_TIMEOUT (2 * HZ) -static int +static netdev_tx_t ...
Jun 2, 12:15 pm 2010
Andy Gospodarek
[PATCH net-next-2.6 2/2][v2] bonding: allow user-control ...
v2: changed bonding module version, modified to apply on top of changes from previous patch in series, and updated documentation to elaborate on multiqueue awareness that now exists in bonding driver. This patch give the user the ability to control the output slave for round-robin and active-backup bonding. Similar functionality was discussed in the past, but Jay Vosburgh indicated he would rather see a feature like this added to existing modes rather than creating a completely new mode. ...
Jun 2, 11:40 am 2010
Andy Gospodarek
[PATCH net-next-2.6 1/2][v2] bonding: add all_slaves_act ...
v2: changed parameter name from 'keep_all' to 'all_slaves_active' and skipped setting slaves to inactive rather than creating a new flag at Jay's suggestion. In an effort to suppress duplicate frames on certain bonding modes (specifically the modes that do not require additional configuration on the switch or switches connected to the host), code was added in the generic receive patch in 2.6.16. The current behavior works quite well for most users, but there are some times it would be nice ...
Jun 2, 11:39 am 2010
Roland Dreier
[PATCH] chelsio: Remove remnants of CONFIG_CHELSIO_T1_COUGAR
CONFIG_CHELSIO_T1_COUGAR cannot be set (it appears nowhere in any Kconfig files), and the code it protects could never build (cspi.h was never added to the kernel tree). Therefore it's pretty safe to remove all vestiges of this dead code. Signed-off-by: Roland Dreier <rolandd@cisco.com> --- drivers/net/chelsio/common.h | 1 - drivers/net/chelsio/subr.c | 49 +---------------------------------------- 2 files changed, 2 insertions(+), 48 deletions(-) diff --git ...
Jun 2, 11:04 am 2010
Joe Perches
Re: [PATCH] net: mac8390 - Sort out memory/MMIO accesses ...
Thanks Geert and Finn. Apologies for not setting up a cross-compiler to fix this. cheers, Joe --
Jun 2, 11:21 am 2010
Geert Uytterhoeven
[PATCH] net: mac8390 - Sort out memory/MMIO accesses and casts
commit 5c7fffd0e3b57cb63f50bbd710868f012d67654f ("drivers/net/mac8390.c: Remove useless memcpy casting") removed too many casts, introducing the following warnings: | drivers/net/mac8390.c:248: warning: passing argument 1 of '__builtin_memcpy' makes pointer from integer without a cast | drivers/net/mac8390.c:253: warning: passing argument 1 of 'word_memcpy_tocard' makes pointer from integer without a cast | drivers/net/mac8390.c:255: warning: passing argument 2 of 'word_memcpy_fromcard' makes ...
Jun 2, 10:36 am 2010
Changli Gao
cls_u32: check unaligned data access
check unaligned data access before accessing data, check if the corresponding address is aligned, and if not, return -1. Signed-off-by: Changli Gao <xiaosuo@gmail.com> ---- net/sched/cls_u32.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 4f52214..309d275 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c @@ -102,7 +102,8 @@ static int u32_classify(struct sk_buff *skb, struct tcf_proto *tp, struct ...
Jun 2, 8:15 am 2010
David Miller
Re: cls_u32: check unaligned data access
From: Changli Gao <xiaosuo@gmail.com> The user will find out when he gets warnings in his kernel log messages on platforms where this matters. And, if anything, silently just skipping over things is not acceptable. And imposing a 4-byte alignment could break existing setups that actually work on x86 and powerpc which are platforms that don't have alignment issues. I basically tried to explain to you earlier that I wasn't going to accept patches that try to deal with alignment in any way ...
Jun 2, 8:18 am 2010
Changli Gao
[PATCH] act_pedit: access skb->data safely
access skb->data safely we should use skb_header_pointer() and skb_store_bits() to access skb->data to handle small or non-linear skbs. Signed-off-by: Changli Gao <xiaosuo@gmail.com> ---- net/sched/act_pedit.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index fdbd0b7..50e3d94 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c @@ -125,7 +125,7 @@ static int tcf_pedit(struct ...
Jun 2, 7:55 am 2010
David Miller
Re: [PATCH v3] cls_u32: use skb_header_pointer() to dere ...
From: Changli Gao <xiaosuo@gmail.com> Looks good, applied. --
Jun 2, 7:33 am 2010
Changli Gao
[PATCH v3] cls_u32: use skb_header_pointer() to derefere ...
use skb_header_pointer() to dereference data safely the original skb->data dereference isn't safe, as there isn't any skb->len or skb_is_nonlinear() check. skb_header_pointer() is used instead in this patch. And when the skb isn't long enough, we terminate the function u32_classify() immediately with -1. Signed-off-by: Changli Gao <xiaosuo@gmail.com> ---- net/sched/cls_u32.c | 49 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 13 deletions(-) diff ...
Jun 2, 7:25 am 2010
David Miller
Re: [PATCH v2] cls_u32: use skb_header_pointer() to dere ...
From: Changli Gao <xiaosuo@gmail.com> Please don't do so many things at once Changli. Everything is fine except the get_unaligned() addition. It's intentionally not there, and by adding the get_unaligned() you're going to kill performance as this expands to 4 byte loads per u32 key check on RISC systems. If it's not aligned, that's a path or configuration that will need to be fixed up such that the accesses are aligned. Please respin this patch with the get_unaligned() part ...
Jun 2, 7:15 am 2010
Changli Gao
[PATCH v2] cls_u32: use skb_header_pointer() to derefere ...
use skb_header_pointer() to dereference data safely the original skb->data dereference isn't safe, as there isn't any skb->len or skb_is_nonlinear() check. skb_header_pointer() is used instead in this patch. And when the skb isn't long enough, we terminate the function u32_classify() immediately with -1. Unaligned access is also fixed. Signed-off-by: Changli Gao <xiaosuo@gmail.com> ---- net/sched/cls_u32.c | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 ...
Jun 2, 7:00 am 2010
Jan Engelhardt
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
While THIS_MODULE is NULL in =y mode, /sys/module/<xyz> can still exist (cf. /sys/module/printk). I just don't know how to get at the kobj for it, but the existence of it must mean it's there somewhere. Might ask sysfs authors. --
Jun 2, 12:29 pm 2010
Luciano Coelho
[PATCH v2] netfilter: Xtables: idletimer target implementation
This patch implements an idletimer Xtables target that can be used to identify when interfaces have been idle for a certain period of time. Timers are identified by labels and are created when a rule is set with a new label. The rules also take a timeout value (in seconds) as an option. If more than one rule uses the same timer label, the timer will be restarted whenever any of the rules get a hit. One entry for each timer is created in sysfs. This attribute contains the timer remaining ...
Jun 2, 6:41 am 2010
Jan Engelhardt
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
Isn't this going to oops when you compile this module as =y? --
Jun 2, 8:16 am 2010
Luciano Coelho
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
Damn, that's true. :( I'll investigate how to fix this. -- Cheers, Luca. --
Jun 2, 11:37 am 2010
Luciano Coelho
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
Okay, good to know. My initial theory was that /sys/module/xt_IDLETIMER (pointed to by THIS_MODULE) would exist even if it was linked into the kernel itself, but now it's obvious that it doesn't. I'll investigate how printk does that. -- Cheers, Luca. --
Jun 2, 12:52 pm 2010
Luciano Coelho
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
On Wed, 2010-06-02 at 22:04 +0200, Coelho Luciano (Nokia-D/Helsinki) Okay, so here is how it goes: if the module is linked into the kernel and it has module parameters, the kernel creates a kobj for it as a module_ktype without parent, which will cause it to show up in /sys/modules. I could do the same in the module initialization when THIS_MODULE == NULL, but I don't see any other module doing this. In fact, I only see the kernel itself creating kobjects of module_ktype (in ...
Jun 2, 2:01 pm 2010
Luciano Coelho
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
On Wed, 2010-06-02 at 20:37 +0200, Coelho Luciano (Nokia-D/Helsinki) Would it be too hacky to force it to be a module (ie. add "depends on m" in Kconfig)? Besides /sys/module/xt_IDLETIMER and /sys/class/net, which we have already discarded, I can't find any other place that would make sense to add the idletimer in the kernel object hierarchy... -- Cheers, Luca. --
Jun 2, 12:05 pm 2010
Luciano Coelho
Re: [PATCH v2] netfilter: Xtables: idletimer target impl ...
On Wed, 2010-06-02 at 21:52 +0200, Coelho Luciano (Nokia-D/Helsinki) What causes printk to appear under /sys/module even when compiled in, is that it uses a module param. This line: module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR); ...is what triggers the printk directory to be created in sysfs. If I add a similar line in my module, it shows up there too. I still don't know if there is an actual kobject associated with it, I'll check that next. -- ...
Jun 2, 1:04 pm 2010
Johannes Berg
Re: sysfs class/net/ problem
Well the netdevs are gone, just the links aren't going away. the yes. Come to think of it, maybe somehow it ends up removing mac80211_hwsim/hwsim0 before wlan0, and thus the link stays around? I guess I could make it print messages about that somehow? johannes --
Jun 2, 8:48 am 2010
Eric W. Biederman
Re: sysfs class/net/ problem
Inside of sysfs_do_create_link we compute sd->s_ns just before sysfs_addrm_start. With this sequence: if (sysfs_ns_type(parent_sd)) NULL is what is used in the case where something is not bound to a namespace (most of sysfs). It should be init_ns. If we have a NULL ns in sysfs_delete_link than I expect targ->sd == NULL. As targ->sd->s_ns should equal init_ns. So now I just need to figure out if targ->sd is NULL in delete link is NULL in which case we have an ordering issue or if ...
Jun 2, 4:09 pm 2010
Johannes Berg
Re: sysfs class/net/ problem
Yeah though I'm not sure how that would happen? Wouldn't the symlink cause the target kobject to still be referenced, and thus stay around No, not based on find /sys and diffing before/after anyway. johannes --
Jun 2, 10:52 am 2010
Johannes Berg
sysfs class/net/ problem
Hi, I didn't find anything related in the archives, if I missed it I'd appreciate a pointer. I'm currently experiencing the following: # ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff # ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Jun 2 13:12 eth0 ...
Jun 2, 6:16 am 2010
Eric W. Biederman
Re: sysfs class/net/ problem
The references don't affect visibility in sysfs. All of that is manual at the sysfs layer, and there doesn't appear to be a good substitute. Generally the device layer manages to handle all of the details automatically but it It is going to be a little bit before I manage to dig into this deeply. If you want to dig into this look at sysfs_delete_link. instrument it so that you can see if it is called for wlan{0,1,2} and see what ns it is called for. My current hypothesis is something ...
Jun 2, 11:05 am 2010
Johannes Berg
Re: sysfs class/net/ problem
Hmm... ok: [ 70.338274] create link wlan2 ns=(null) ... [ 71.881775] delete link wlan2 ns=(null) [ 71.881777] hash_and_remove ffff88001f9563c0, (null), wlan2 [ 71.881782] sd=ffff88001ce2d9c0, sdns=ffffffff8271c260 and thus we skip sysfs_remove_one() in sysfs_hash_and_remove() because sysfs_find_dirent() return an sd with a different ns than we passed in. Why is the ns we pass in NULL, shouldn't it be init_ns? johannes --
Jun 2, 12:25 pm 2010
Johannes Berg
Re: sysfs class/net/ problem
Nah, the unregister_netdev there removes the "hwsim0" device, while the mac80211_hwsim_free() will remove all the others, so the ordering of those two doesn't matter. johannes --
Jun 2, 10:00 am 2010
Eric W. Biederman
Re: sysfs class/net/ problem
Since it is the register_netdev path it should be exactly the same. The big change I made is I in some instances I replaced sysfs_remove_link with sysfs_delete_link so I could have enough information to infer which network namespace the link was in. Since unregister_netdevice will defer the final destruction but it does not defer netdev_unregister_kobject -> device_del. What happens if in exit_mac80211_hwsim you call unregister_netdev before mac80211_hwsim_free? At a quick glance it ...
Jun 2, 9:43 am 2010
Johannes Berg
Re: sysfs class/net/ problem
Hmm. I'm also not seeing it with veth, it would seem that ought to be I don't know if that's happening .. just guessing that it might cause such a problem, and maybe some things are deferred somehow? Since netdev destruction can be deferred, but the wifi sysfs destruction isn't. But then that link there should cause the refcount to not go down until the link goes away>? johannes --
Jun 2, 9:21 am 2010
Eric W. Biederman
Re: sysfs class/net/ problem
The wireless drivers are a little different, and come to think of it network namespace support has been added to the wireless drivers since last I looked closely. Do you know what creates/deletes these links? Is it the normal register_netdevice -> device_add path? I definitely changed the symlink code a little making things network namespace aware so it is reasonable to assume that something in my changes affected the wireless drivers. I took a quick look and with my patches against 2.6.33 ...
Jun 2, 9:17 am 2010
Johannes Berg
Re: sysfs class/net/ problem
No that was the sd, but sd->s_ns is NULL in both cases. johannes --
Jun 2, 12:12 pm 2010
Eric W. Biederman
Re: sysfs class/net/ problem
So far that hypothesis that the target of the symlink is being removed before the actual actual link looks like it could cause this. Are there any other left overs in sysfs, besides just /sys/class/net/wlan0? Eric --
Jun 2, 10:23 am 2010
Greg KH
Re: sysfs class/net/ problem
Ah, so the network devices aren't getting removed? Do you have network namespaces enabled in your kernel or disabled? And this is 2.6.35-rc1, right? Eric, any ideas? thanks, greg k-h --
Jun 2, 8:46 am 2010
Johannes Berg
Re: sysfs class/net/ problem
[ 78.253128] create link wlan0 ns=ffff88001ce1e600 ... [ 93.462268] delete link wlan0 ns=ffff88001ce1e600 looks the same ... Also note [ 109.872488] netconsole: network logging stopped, interface wlan0 unregistered [ 109.872910] PM: Removing info for No Bus:wlan0 [ 109.872941] delete link wlan0 ns=ffff88001e9bd600 [ 110.130563] PM: Removing info for No Bus:rfkill0 [ 110.130599] delete link rfkill0 ns=ffff88001b61ea80 [ 110.131135] PM: Removing info for No Bus:phy0 [ ...
Jun 2, 11:55 am 2010
Luciano Coelho
[PATCH] netfilter: Xtables: idletimer target implementation
This patch implements an idletimer Xtables target that can be used to identify when interfaces have been idle for a certain period of time. Timers are identified by labels and are created when a rule is set with a new label. The rules also take a timeout value (in seconds) as an option. If more than one rule uses the same timer label, the timer will be restarted whenever any of the rules get a hit. One entry for each timer is created in sysfs. This attribute contains the timer remaining ...
Jun 2, 4:58 am 2010
Jan Engelhardt
Re: [PATCH] netfilter: Xtables: idletimer target impleme ...
I have only ever seen interfaces in /sys/class/net, so it might be wise to keep it that way in light of scripts doing echo /sys/class/net/* to get a list of interfaces. Looks quite ok. --
Jun 2, 5:54 am 2010
Luciano Coelho
Re: [PATCH] netfilter: Xtables: idletimer target impleme ...
Hi Jan, Thanks for your prompt review! I'll send v2 with the fixes you suggested. Oops! Fixed in v2. Also added sysfs_remove_file_from_group() if the Yeps, this is a remain from the previous (and ugly) read from ipt_ip. Yes, this is the only reason why I haven't put it under the net class, which would probably look cleaner. In other classes it seems to be common to add misc attributes, but the net class (as of now) only contains interface subclasses, as you ...
Jun 2, 6:37 am 2010
Daniel Turull
Re: [PATCH 2/2] pktgen: receive packets and process inco ...
Yes, I used the same type as the number of packets send of the transmission size struct pktgen_dev --
Jun 2, 6:28 am 2010
Daniel Turull
[PATCH 2/2] pktgen: receive packets and process incoming rate
This patch adds receiver part to pktgen taking advantages of SMP systems with multiple rx queues: - Creation of new proc file /proc/net/pktgen/pgrx to control and display the receiver. - It uses PER-CPU variable to store the results per each CPU. - Results displayed per CPU and aggregated. - The packet handler is add in the protocols handlers (dev_Add_pack()) - Available statistics: packets and bytes received, work time and rate - Only process pktgen packets - It is possible to select the ...
Jun 2, 4:49 am 2010
Eric Dumazet
Re: [PATCH 2/2] pktgen: receive packets and process inco ...
Interesting, but does it belongs to pktgen ? Following code is ... well ... interesting... But ... 1) Is it IPV6 compatable ? pktgen can be ipv6 or ipv4 2) Is it resistant to malicious packets ? (very small ones) 3) No checksum ? I think you should use standard mechanisms... (pskb_may_pull(), ...) Its a bit suboptimal to use __get_cpu_var several time. Take a look at disassembly code :) This +14 seems suspect (what about vlan tags ?) Should not recognised packets be allowed ...
Jun 2, 6:00 am 2010
Daniel Turull
[PATCH 1/2] pktgen: increasing transmission granularity
This patch increases the granularity of the rate generated by pktgen. The previous version of pktgen uses micro seconds (udelay) resolution when it was delayed causing gaps in the rates. It is changed to nanosecond (ndelay). Now any rate is possible. Also it allows to set, the desired rate in Mb/s or packets per second. The documentation has been updated. Signed-off-by: Daniel Turull <daniel.turull@gmail.com> --- diff --git a/Documentation/networking/pktgen.txt ...
Jun 2, 4:49 am 2010
Dennis Don
Thanks
My Dear, Find and read attachment carefully as it has been scan against virus. Regards MR.DENNIS DON Tele: +27 715260050
Jun 2, 1:17 am 2010
Eric Dumazet
[PATCH nf-next-2.6] netfilter: vmalloc_node cleanup
Using vmalloc_node(size, numa_node_id()) for temporary storage is not needed. vmalloc(size) is more respectful of user NUMA policy. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- net/ipv4/netfilter/arp_tables.c | 7 +++---- net/ipv4/netfilter/ip_tables.c | 4 ++-- net/ipv6/netfilter/ip6_tables.c | 7 +++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index 1ac01b1..16c0ba0 100644 --- ...
Jun 1, 10:02 pm 2010
Ustin Gavrie
good-day
I am Ustin Gavrie i have a proposal to discuss about a transaction worth US$25m. Please contact me if you are interested to know more about this transaction. It will be beneficial to all parties concerned. --
Jun 1, 8:39 pm 2010
David Miller
Re: [PATCH net-2.6] bnx2: Fix hang during rmmod bnx2.
From: "Michael Chan" <mchan@broadcom.com> Applied, thanks! --
Jun 2, 2:27 am 2010
Michael Chan
[PATCH net-2.6] bnx2: Fix hang during rmmod bnx2.
The regression is caused by: commit 4327ba435a56ada13eedf3eb332e583c7a0586a9 bnx2: Fix netpoll crash. If ->open() and ->close() are called multiple times, the same napi structs will be added to dev->napi_list multiple times, corrupting the dev->napi_list. This causes free_netdev() to hang during rmmod. We fix this by calling netif_napi_del() during ->close(). Also, bnx2_init_napi() must not be in the __devinit section since it is called by ->open(). Signed-off-by: Michael Chan ...
Jun 1, 6:05 pm 2010
David Miller
Re: [PATCH net-next-2.6 2/2] qlcnic: NIC Partitioning - ...
From: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Applied. --
Jun 2, 2:23 am 2010
David Miller
Re: [PATCH net-next-2.6 1/2] qlcnic: NIC Partitioning - ...
From: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Applied. --
Jun 2, 2:23 am 2010
Ben Hutchings
Re: [PATCH 00/12] sfc changes for 2.6.36
Well, I included a comment in the message and left it to your judgement Sorry. 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. --
Jun 2, 8:04 am 2010
David Miller
Re: [PATCH 00/12] sfc changes for 2.6.36
From: Ben Hutchings <bhutchings@solarflare.com> When you mix bug fixes and cleanups, I'm going to apply it all to net-next-2.6 You didn't even specify an intended destination in your subject lines, so you leave it entirely open for interpretation and my choice. So, if you want a bug fix added to net-2.6, tossing it into a series which is not wholly appropriate for net-next-2.6 is not that way to accomplish that. The way to do it is: 1) Submit the bug fix, explicitly state "[PATCH ...
Jun 2, 6:57 am 2010
David Miller
Re: [PATCH 00/12] sfc changes for 2.6.36
From: Ben Hutchings <bhutchings@solarflare.com> ALl applied, thanks Ben. --
Jun 2, 2:21 am 2010
Ben Hutchings
Re: [PATCH 00/12] sfc changes for 2.6.36
Did you apply patch 12 "sfc: Get port number from CS_PORT_NUM, not PCI function number" to net-2.6? 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. --
Jun 2, 6:52 am 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
For an example, you could take a look at commit 907cdda5205b (tcp: Add SNMP counter for DEFER_ACCEPT) Its pretty straigthforward, and wont conflict with monitoring apps. --
Jun 2, 8:32 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
add "or because the rp_filter rejected the packet"? In the case of MC traffic you dont really need a route. In my particular case it is a weird corner case for the rp_filter. Two NICs are on the same subnet. Different multicast groups are joined on each (Using two NICs to balance the MC load since the drivers have some multicast limitations and having different interrupt lines for each NIC is also beneficial). The rp_filter rejects all multicast traffic to the subscriptions on ...
Jun 2, 11:01 am 2010
David Miller
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
From: Christoph Lameter <cl@linux-foundation.org> Within reason. If you're going to spam the tree with something like 10 or 20 new stat counters getting bumped all over the place, that's not what we're trying to suggest here. Consolidate as much as possible, add new things when absolutely nothing existing fits the bill. --
Jun 2, 8:29 am 2010
David Miller
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Just in case people are really so clueless as to be unable to figure this out: echo 1 >/sys/kernel/debug/tracing/events/skb/kfree_skb/enable ...do some stuff... cat /sys/kernel/debug/tracing/trace You can even trace it using 'perf' by passing "skb:kfree_skb" as the event specifier. --
Jun 2, 10:31 am 2010
David Miller
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
From: Christoph Lameter <cl@linux-foundation.org> We know, that's why there is a networking tracepoint that allows you to see where all drops occur. :-) --
Jun 2, 9:19 am 2010
David Miller
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
From: Christoph Lameter <cl@linux-foundation.org> You don't need to use system tap, just the normal tracing stuff using sysfs files suffices. --
Jun 2, 10:12 am 2010
Eric Dumazet Jun 2, 9:33 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Just looking at it. Great. A hook into skb_free. That will do. --
Jun 2, 9:35 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Where can I find out more about the network tracepoint? --
Jun 2, 9:27 am 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
It would be good if Neil could gave us a man page or something ;) --
Jun 2, 10:19 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
System tap? Oh no. Also skbs may be freed for legitimate reasons. The point is that the loss detection needs to be usable for a regular mortal. With the counters in /proc/net/snmp you have something that is easy to handle. The approach with systemtap will need lots of work to both get the tracing environment setup (local competence in systemtap) and participation by a developer to figure out what the output means. Then there is also the additional code overhead that you do not want by default ...
Jun 2, 9:49 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Yes but they are not increment any counter. If packets are dropped because of the rp_filter setting interfering f.e. then the packets vanish without any accounting. LINUX_MIB_INROUTEERRORS? Does it mean I can create a series of new counters that allow us to diagnose and distinguish all the different causes of packet loss? We would love to have that.
Jun 2, 8:27 am 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
I just dont follow you. Your patch has nothing to do with dropped packets because of rp_filter. You inserted a counter increment in a path that is not taken at all by packet delivery. Maybe I missed something really obvious with your patch ? It should only matters for the admin doing following command : ip route get 1.2.3.4 from 192.168.0.1 iif eth0 That is a probe, not a 'packet delivery', this is why I said Have you considered CONFIG_NET_DROP_MONITOR ? This one catches all ...
Jun 2, 9:28 am 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Thanks ! Here is the patch I cooked to account for RP_FILTER errors in multicast path. I will complete it to also do the unicast part before official submission. Christoph, the official counter would be IPSTATS_MIB_INNOROUTES ipSystemStatsInNoRoutes OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of input IP datagrams discarded because no route could be found to transmit them to their ...
Jun 2, 10:46 am 2010
Neil Horman
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
That stap script was really meant to be a stopgap measure. As mentioned, you can use the debugfs interface to turn tracepoints on and use them anyway you wish. Or, if you want to use the kfree_skb and napi_poll tracepoints in a more formalized way, you can use the dropwatch user space utility: https://fedorahosted.org/dropwatch/ Which includes a man page on usage :) I also recently updated it so that this utility can query /proc/kallsyms to translate program counter values into symbollic ...
Jun 2, 10:41 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Its important to know why drops occur (any drops for that matter, drops mean retransmit which means latency). The symptom here was that multicast traffic on secondary interfaces was not being forwarded to the application. The rp_filter just dropped them and there was no way to easily track down the issue for the people experiencing the problem. In 2.6.31 the rp_filter was fixed to work properly with multicast and now it considers multicast traffic to secondary interfaces to have the ...
Jun 2, 9:12 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
rp_filter was setup in the past and it worked. Stephen fixed it in 2.6.31 for multicast and thus suddenly multicast stopped working on secondary interfaces when we moved to 2.6.32. rp_filter having to be off is okay but Looks good which does not say too much given my limited networking knowledge. Reviewed-by: Christoph Lameter <cl@linux-foundation.org> --
Jun 2, 1:11 pm 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
Unicast trafic dont need a reverse route, if you only receive packets. rp_filter is an optional check, not covered by standard MIBS, so its In standard RFC ? I wont change it :) --
Jun 2, 11:41 am 2010
Christoph Lameter
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
The rp_filter is rejecting traffic coming into a NIC for which the kernel has a multicast join list that indicates that this traffic is expected on this NIC. You could consult the MC subscription list to verify that the traffic is coming into the right NIC. In the MC case the user can explicitly specify through which NIC the traffic is expected. See IP_ADD_MEMBERSHIP. --
Jun 2, 11:59 am 2010
Eric Dumazet
[PATCH net-next-2.6] ipv4: add LINUX_MIB_IPRPFILTER snmp ...
I had one correction to do, here is the official submission. I did unicast tests only. Thanks ! [PATCH net-next-2.6] ipv4: add LINUX_MIB_IPRPFILTER snmp counter Christoph Lameter mentioned that packets could be dropped in input path because of rp_filter settings, without any SNMP counter being incremented. System administrator can have a hard time to track the problem. This patch introduces a new counter, LINUX_MIB_IPRPFILTER, incremented each time we drop a packet because Reverse ...
Jun 2, 3:05 pm 2010
Eric Dumazet
Re: [PATCH] IP: Increment INADDRERRORS if routing for a ...
This has litle to do with MC. We certainly are not going to check MC membership in fib_validate_source() ! Say we have eth0 on 192.168.0.1/24 and eth1 on 192.168.0.2/24 Then we cannot use rp_filter = 1, even with unicast trafic. I really dont understand why you would setup rp_filter in such a situation. This wont work. Now, I agree we should have a counter somewhere to help admins to understand their error ;) Here is patch I am currently testing. I finaly created a new counter, ...
Jun 2, 12:25 pm 2010
David Miller
Re: [PATCH] xfrm: force a dst reference in __xfrm_route_ ...
From: Eric Dumazet <eric.dumazet@gmail.com> Applied, thanks for fixing this bug Eric. --
Jun 2, 2:27 am 2010
David Miller
Re: [net-2.6 PATCH] enic: bug fix: make the set/get netl ...
From: Scott Feldman <scofeldm@cisco.com> Applied, thanks Scott. --
Jun 2, 2:27 am 2010
David Miller
Re: [PATCH net-next-2.6] net: CONFIG_NET_NS reduction
From: Eric Dumazet <eric.dumazet@gmail.com> Applied, thanks Eric. --
Jun 2, 5:17 am 2010
David Miller
Re: [PATCHv3] Refactor update of IPv6 flowi destination ...
From: arno@natisbad.org (Arnaud Ebalard) Looks good, applied to net-next-2.6, thanks. --
Jun 2, 7:08 am 2010
Arnaud Ebalard
Re: [PATCHv3] Refactor update of IPv6 flowi destination ...
Hi, Here is a v3 based on the comments I received from Joe. The helper is now in exthdrs.c (no more inline) and has a proper name. Applies on net-2.6. Tested on 2.6.34. Cheers, a+ From ec9c9695345f4821060a78bd3243cdfeaa852897 Mon Sep 17 00:00:00 2001 From: Arnaud Ebalard <arno@natisbad.org> Date: Wed, 2 Jun 2010 09:25:27 +0200 Subject: [PATCH] Refactor update of IPv6 flowi destination address for srcrt (RH) option There are more than a dozen occurrences of following code in ...
Jun 2, 12:35 am 2010
David Miller
Re: [PATCH] ppp: eliminate shadowed variable name
From: Stephen Hemminger <shemminger@vyatta.com> Applied. --
Jun 2, 5:17 am 2010
David Miller
Re: [PATCH] netdev:bfin_mac: reclaim and free tx skb as ...
From: sonic zhang <sonic.adi@gmail.com> Do not cast the function pointer to "void *" like this, it's ugly and entirely not necessary. Instead have a wrapper function that uses the correct types as specified for timer functions, that calls the existing function. --
Jun 2, 7:02 am 2010
David Miller
Re: [patch 2/2] caif: add newlines after declarations in ...
From: Dan Carpenter <error27@gmail.com> Applied. --
Jun 2, 5:16 am 2010
David Miller
Re: [patch 1/2] caif: remove unneeded variable from caif ...
From: Dan Carpenter <error27@gmail.com> Applied. --
Jun 2, 5:16 am 2010
David Miller
Re: [PATCH] phylib: Add support for the LXT973 phy.
From: Richard Cochran <richardcochran@gmail.com> Wasn't there another change you were asked to make that got included in the v2 patch? --
Jun 2, 8:15 am 2010
Richard Cochran
Re: [PATCH] phylib: Add support for the LXT973 phy.
I think he meant that the 'priv' pointer may one day be used to point Well, is it okay to just use the first patch? The fix needs just one bit of data, and I thought that (ab)using the 'priv' pointer would be okay, if a bit hacky. If, over time, the driver needs more private data, it should be clear enought that the existing bit "fiber selected" will also appear in the data structure. Otherwise, the driver would have to allocate a structure with one field, just to remember one ...
Jun 2, 8:08 am 2010
Richard Cochran
Re: [PATCH] phylib: Add support for the LXT973 phy.
In any case, the PHY only supports 100 Mbps when in fiber mode, so the fix is always safe to use. Richard --
Jun 2, 6:07 am 2010
Richard Cochran
Re: [PATCH] phylib: Add support for the LXT973 phy.
Okay, I changed it. At first, I was worried about using 'dev_flags' because I couldn't tell exactly who may write to this field. Looking at tg.c and broadcom.c, it appears that the MAC drivers may also write this The documentation http://www.cortina-systems.com/products/download/266 says, "Status: This erratum has been previously fixed." However, I could not find a reference to when this was fixed. Richard Date: Wed, 2 Jun 2010 13:47:02 +0200 Subject: [PATCH] phylib: Add support for ...
Jun 2, 5:55 am 2010
David Miller
Re: [PATCH] phylib: Add support for the LXT973 phy.
From: Richard Cochran <richardcochran@gmail.com> No, I think using dev_flags is absolutely the wrong way to do about this. phy_device->priv "could one day get used for a different purpose"? What in the world are you smoking Andy? It's clearly a private state pointer for the PHY driver to use, full stop. There is absolutely no ambiguity of what this value is and what it is used for and who owns it. The comments in the layout of struct phy_device state this clearly as well. On the other ...
Jun 2, 6:50 am 2010
Andy Fleming
Re: [PATCH] phylib: Add support for the LXT973 phy.
Yeah, I was clearly not thinking clearly. dev_flags will be overwritten, and is not meant for this. I believe, what we should do is add a "port" field to the PHY device, and if PCR_FIBER_SELECT is set, then set the port field to PORT_FIBRE. I'm not entirely clear on the semantics of that field in the ethtool cmd, but it seems like the Yes, it's private, and I would be fine with using priv, I just didn't think that it was correct to assign priv to point at the probe function as a mechanism ...
Jun 2, 12:32 pm 2010
David Miller
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
From: jamal <hadi@cyberus.ca> Well for one thing there is all sorts of "stuff" past the end of the valid skb->data area. For example, there is some padding and then there is skb_shared_info(). Furthermore, the kernel allocator can round up the size it uses for SLAB objects which gives even more padding past the end of even skb_shared_info(). Futrhermore, the chance of the page past the page skb->data is in being invalid is very low. You'd have to have invalid memory in the page after ...
Jun 2, 5:47 am 2010
David Miller
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
From: jamal <hadi@cyberus.ca> I don't think it's that simple. You can't dereference from the skb->data linear area if your offset is beyond "skb->len - skb->data_len" (aka. skb_headlen()) since that's where the paged or fragmented portion starts. We really need to use skb_copy_bits() if we want to allow any offset into the SKB, and because of all the ways packets can be transformed and constructed we absolutely have to. --
Jun 2, 5:45 am 2010
jamal
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
Hi Changli, Ok, makes more sense. And thanks for taking time to construct a meaningful example. It is not a common use - but i agree it is a bug. I am suprised we never caught this all this years and wondering why this never crashed in your example? Can we make the fix very simple please? i.e no copy bits, this is the What i meant was if you can tell immediately what the maximum offset is then you dont need to go through for loop making comparison with each key. You could immediately ...
Jun 2, 5:20 am 2010
Changli Gao
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
Maybe skb_header_pointer() is lighter. -- Regards, Changli Gao(xiaosuo@gmail.com) --
Jun 2, 6:14 am 2010
jamal
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
Example, something along lines of: --- diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 9627542..dde7a23 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c @@ -135,6 +135,9 @@ next_knode: for (i = n->sel.nkeys; i>0; i--, key++) { + int toff = key->off+(off2&key->offmask)- 4; + if (unlikely(toff > skb->len)) + /* bailout here - needs some thought */ if ((*(__be32*)(ptr+key->off+(off2&key->offmask))^key->v n = ...
Jun 2, 5:25 am 2010
David Miller
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
From: jamal <hadi@cyberus.ca> Umm, Jamal what are you talking about? Using skb_header_pointer(), if the offset is in range, there is no change from today other than a comparison. If it is not in range, we use skb_copy_bits(). It's only for the case where we have to fetch the value from the fragmented part of the SKB. --
Jun 2, 6:43 am 2010
Changli Gao
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
I got it. But it isn't easy for me. -- Regards, Changli Gao(xiaosuo@gmail.com) --
Jun 2, 6:17 am 2010
David Miller
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
From: Changli Gao <xiaosuo@gmail.com> Yes, it should be. In fact, it's designed for this kind of situation and that's why it's used extensively in netfilter. --
Jun 2, 6:27 am 2010
jamal
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
A little worse than skb_copy_bits(). In any case, this change is going to hurt. Dave, can we assume the upper layers(qdiscs in this case) are responsible for any linearizing? Changli, if you have time - can you also audit tcf_pedit() since it follows TheLinuxWay(tm). cheers, jamal --
Jun 2, 6:36 am 2010
Changli Gao
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
Yea, pedit has the same issue. Besides this issue, they should use get_unaligned() instead. -- Regards, Changli Gao(xiaosuo@gmail.com) --
Jun 2, 6:43 am 2010
jamal
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
Thats the part i glossed over - My eyes just saw "it calls cheers, jamal --
Jun 2, 6:47 am 2010
jamal
Re: [PATCH] cls_u32: use skb_copy_bits() to dereference ...
sounds reasonable - although they are probably different patches with the offset fix being more important. cheers, jamal --
Jun 2, 6:48 am 2010
David Miller
Re: [PATCH v2] act_nat: fix the wrong checksum when addr ...
From: Herbert Xu <herbert@gondor.apana.org.au> Regardless of whether said configuration is optimal, we should handle this case correctly. So I have applied this patch. --
Jun 2, 6:52 am 2010
Jeff Garzik
Re: [Patch]8139too: remove unnecessary cast of ioread32( ...
Fair enough. That answers my question. Jeff --
Jun 2, 10:52 am 2010
David Miller
Re: [PATCH 3/3] korina: count RX DMA OVR as rx_fifo_error
From: Phil Sutter <phil@nwl.cc> Applied. --
Jun 2, 6:13 am 2010
David Miller
Re: [PATCH 1/3] korina: fix deadlock on RX FIFO overrun
From: Phil Sutter <phil@nwl.cc> Applied. --
Jun 2, 6:12 am 2010
David Miller
Re: [PATCH 2/3] korina: use netdev_alloc_skb_ip_align() ...
From: Phil Sutter <phil@nwl.cc> Applied. --
Jun 2, 6:12 am 2010
David Miller
Re: [PATCH]: vxge: Fix checkstack warning in vxge_probe()
From: Prarit Bhargava <prarit@redhat.com> Applied to net-next-2.6, thanks.
Jun 2, 5:51 am 2010
Jon Mason
Re: [PATCH]: vxge: Fix checkstack warning in vxge_probe()
The patch is sufficient, but I think it doesn't go far enough. The struct vxge_config in struct vxgedev should be malloc'd as well. struct vxgedev is entirely too big and needs to be smaller, for cache perf and other reasons. Thanks, --
Jun 1, 8:03 pm 2010
Michael Ellerman
RE: [PATCH 1/2] Export firmware assigned labels of netwo ...
No. I mean non-x86 platforms, yes they still exist. cheers
Jun 2, 4:54 pm 2010
Stephen Hemminger
Re: [PATCH net-next-2.6] net: replace hooks in __netif_r ...
On Wed, 2 Jun 2010 09:52:08 +0200 Rcu assign is not necessary here for because the hook didn't get registered so there is no way for other CPU to see it. -- --
Jun 2, 8:07 am 2010
David Miller
Re: [PATCH net-next-2.6] net: replace hooks in __netif_r ...
From: Jiri Pirko <jpirko@redhat.com> Ok, this looks good to me. Applied, thanks everyone. --
Jun 2, 7:11 am 2010
Jiri Pirko
Re: net: replace hooks in __netif_receive_skb (v4)
Few nitpicks, I'm going to send patch reflecting this later. Why not to use rcu_assign_pointer here? since this is not hot path, that would be nicer. It should be done for rcu-protected pointers (see rcu_assign_poiter --
Jun 2, 12:24 am 2010
Jiri Pirko
[PATCH net-next-2.6] net: replace hooks in __netif_recei ...
What this patch does is it removes two receive frame hooks (for bridge and for macvlan) from __netif_receive_skb. These are replaced them with a single hook for both. It only supports one hook per device because it makes no sense to do bridging and macvlan on the same device. Then a network driver (of virtual netdev like macvlan or bridge) can register an rx_handler for needed net device. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: Stephen Hemminger ...
Jun 2, 12:52 am 2010
Jiri Pirko
Re: net: replace hooks in __netif_receive_skb (v4)
Right, I'm not saying it has sense to have it together in the same moment. But you can to this: # ip link add link eth0 type macvlan You can use eth0 + macvlan0. Now you do: # brctl addif br0 eth0 Direct use of eth0 and macvlan0 is not not possible now. # brctl delif br0 eth0 But ok, I hear your arguments, I thought about them myself before I did the patch and I thought that added overhead (which is not too big, I see one more dereference, rx_handler pointer) would be ...
Jun 2, 12:02 am 2010
Jiri Pirko
Re: replace hooks in __netif_receive_skb (v4)
It's not ignored. it's returned at the end of the function __netif_receive_skb. --
Jun 1, 11:50 pm 2010
Eric Dumazet
Re: [PATCH net-next-2.6] net: replace hooks in __netif_r ...
Thats a valid point, but we should use it, and not care of this litle detail. Compiler generates same code anyway, since NULL value is tested by rcu_assign_pointer(). If we dont use rcu_assign_pointer() ourself, Paul or Arnd will put it one day or another :) http://lkml.org/lkml/2010/6/1/290 --
Jun 2, 8:15 am 2010
Fischer, Anna
RE: [PATCH net-next-2.6] net: replace hooks in __netif_r ...
I would like to see this being accepted. As mentioned before I would love to be able to support multiple receive frame hooks per device, but I think this is a good start. I think especially with virtualization coming into Linux and new network virtualization approaches being developed it would be nice to have a more generic function for packet receive handlers to hook into the network stack more cleanly. Current approaches rely on 'misusing' the bridging hook into the kernel, because the packet ...
Jun 2, 9:20 am 2010
Paul E. McKenney Jun 2, 1:43 pm 2010
David Miller
Re: [PATCH v2] net/fec: fix pm to survive to suspend/resume
From: Eric Bénard <eric@eukrea.com> Applied, thanks. --
Jun 2, 6:13 am 2010
David Miller
Re: [PATCH] net/core: Save the port number a netdevice uses
From: Ben Hutchings <bhutchings@solarflare.com> That's perfect, it means we don't have to add explicit settings to drivers which driver only one port. Ie. the vast majority of cases. --
Jun 2, 10:12 am 2010
Ben Hutchings
Re: [PATCH] net/core: Save the port number a netdevice uses
There's a compatibility problem here though: when user-space looks at this number it can't tell whether "0" really means the first port or that the driver isn't setting dev_id. In order to tell that it would have to check the driver or kernel version too, and this is really nasty (what if the driver was backported?). So I think that 1-based numbering for drivers that previously didn't set dev_id. Why does this matter? I'm maintaining the firmware update program for Solarflare NICs under ...
Jun 2, 9:42 am 2010
Stephen Hemminger
Re: 64-bit net_device_stats
On Wed, 02 Jun 2010 22:34:29 +0100 Another big issue is maintaining ABI compatibility for /proc and ioctl interfaces. So bigger values would only be available through netlink, and most applications using counters don't use netlink. -- --
Jun 2, 2:59 pm 2010
Arnd Bergmann
Re: 64-bit net_device_stats
Doesn't the /proc interface already allow 64 bit values in case of 64 bit hosts running the same 32 bit user space? For the ioctl interfaces, we can of course introduce additional ioctl commands that always deal with 64 bit values, many other subsystems have been extended in similar ways. We don't mandate that a program built against new kernel headers must work on old kernels, so it is possibly to actually change the definitions, as long as the kernel still supports the old interfaces for ...
Jun 2, 4:38 pm 2010
Ben Hutchings
64-bit net_device_stats
On Tue, 2010-05-25 at 16:15 -0700, David Miller wrote: My understand of the current situation is as follows; correct me if any of this is wrong: The standard counters in struct net_device_stats have type unsigned long which is the native word size and so can be read and updated automatically. Net drivers can update counters from the data path without any interlocking with their ndo_get_stats implementation or the networking core code which reads them. The values returned by ndo_get_stats ...
Jun 2, 2:34 pm 2010
David Miller
Re: [PATCH] packet_mmap: expose hw packet timestamps to ...
From: "Mcmillan, Scott A" <scott.a.mcmillan@intel.com> Ok, this looks fine, applied. Thanks. --
Jun 2, 5:54 am 2010
David Miller
Re: [RFC] tcp: delack_timer expiration changes for every frame
From: Eric Dumazet <eric.dumazet@gmail.com> HZ/25 is TCP_DELACK_MIN and TCP_ATO_MIN, but the actual value we use here involves incorporation of various measurements made on the connection (RTO, etc.) There must be a tail-call here at tcp_v4_rcv() or something missed in the backtrace stack scanning logic, because tcp_v4_rcv() and it's main inline tcp_v4_do_rcv() do not modify established state socket timers, and in particular do not modify the delack timer, that I can see. It must be in ...
Jun 2, 4:11 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: optimize tlb_get_least ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 4:17 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: remove unused original ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 4:17 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: move dev_addr cpy to b ...
From: Jiri Pirko <jpirko@redhat.com> (Jiri, please number your patches in a set, even if they should apply properly independantly, thanks) Applied. --
Jun 2, 4:17 am 2010
Jiri Pirko
Re: [PATCH net-next-2.6] bonding: move dev_addr cpy to b ...
Sorry, this was not ment to be a set. I was just posting patches as I went thru the code. Will try to "buffer" it next time. --
Jun 2, 4:20 am 2010
David Miller
Re: [PATCH] net/mpc52xx_phy: Various code cleanups
From: Wolfram Sang <w.sang@pengutronix.de> Applied, thanks. --
Jun 2, 3:45 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: make bonding_store_sla ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 3:40 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: remove redundant check ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 3:40 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: move slave MTU handlin ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 3:40 am 2010
David Miller
Re: [PATCH net-next-2.6] bonding: remove unused variable ...
From: Jiri Pirko <jpirko@redhat.com> Applied. --
Jun 2, 3:40 am 2010
David Miller
Re: [PATCH 2/3] net: fix conflict between null_or_orig a ...
From: John Fastabend <john.r.fastabend@intel.com> Also applied. --
Jun 2, 3:35 am 2010
David Miller
Re: [PATCH 3/3] net: deliver skbs on inactive slaves to ...
From: John Fastabend <john.r.fastabend@intel.com> I'll hold this last one until Jay has a chance to comment on it. --
Jun 2, 3:36 am 2010
David Miller
Re: [PATCH 1/3] net: init_vlan should not copy slave or ...
From: John Fastabend <john.r.fastabend@intel.com> Applied, thanks John. --
Jun 2, 3:35 am 2010
Jay Vosburgh
Re: [PATCH 3/3] net: deliver skbs on inactive slaves to ...
I've looked at it, and was initially hoping to combine this with Andy/Neil's vaguely similar changes, but I don't see a reasonable way to do that. I think the functionality is reasonable, i.e., adding a facility to implement "direct bind" delivery of packets on inactive bonding slaves (where direct bind means that the struct packet_type has a non-NULL dev). First, this looks like too much #ifdef soup here. None of the bonding-specific code in the packet receive processing path ...
Jun 2, 1:01 pm 2010
David Miller
Re: [PATCH 1/2 net-next-2.6] net: Define accessors to ma ...
From: Eric Dumazet <eric.dumazet@gmail.com> Looks good, applied. --
Jun 2, 3:24 am 2010
Eric Dumazet
Re: [RFC PATCH] net: add additional lock to qdisc to inc ...
Here are two patches to implement this idea. First patch to abstract QDISC_STATE_RUNNING access. Second patch to add a __qstate container and remove the atomic ops. --
Jun 2, 2:48 am 2010
Eric Dumazet
Re: [PATCH] net: add additional lock to qdisc to increas ...
Thanks David, I realize you did all the necessary changes after qdisc_run_begin/qdisc_is_running/ integration ;) --
Jun 2, 7:52 am 2010
Eric Dumazet
[PATCH 1/2 net-next-2.6] net: Define accessors to manipu ...
Define three helpers to manipulate QDISC_STATE_RUNNIG flag, that a second patch will move on another location. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- include/net/pkt_sched.h | 2 +- include/net/sch_generic.h | 15 +++++++++++++++ net/core/dev.c | 4 ++-- net/sched/sch_generic.c | 4 ++-- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 9d4d87c..d9549af 100644 --- ...
Jun 2, 2:49 am 2010
Eric Dumazet
[PATCH 2/2 net-next-2.6] net: QDISC_STATE_RUNNING dont n ...
__QDISC_STATE_RUNNING is always changed while qdisc lock is held. We can avoid two atomic operations in xmit path, if we move this bit in a new __state container. Location of this __state container is carefully chosen so that fast path only dirties one qdisc cache line. THROTTLED bit could later be moved into this __state location too, to avoid dirtying first qdisc cache line. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- include/net/sch_generic.h | 15 +++++++++++---- 1 ...
Jun 2, 2:50 am 2010
David Miller
Re: [PATCH 2/2 net-next-2.6] net: QDISC_STATE_RUNNING do ...
From: Eric Dumazet <eric.dumazet@gmail.com> Also looks good, applied. One thing about naming. Here, even though we name the type and the state member with two leading underscores, the things that actually modify these state members are helper functions with names that lack double underscores. So really, reading the code, you don't see that special considerations for these state changes might be necessary. --
Jun 2, 3:25 am 2010
David Miller
Re: [PATCH] net: add additional lock to qdisc to increas ...
From: "Duyck, Alexander H" <alexander.h.duyck@intel.com> Applied, thanks guys. --
Jun 2, 5:10 am 2010
previous daytodaynext day
June 1, 2010June 2, 2010June 3, 2010