linux-netdev mailing list

FromSubjectDatesort icon
Denys Fedoryschenko
Re: skbedit action chaining with other actions - will fail
Sorry my mistake, discard It should be echo "filter add dev $2 parent ffff: protocol ip prio 10 u32 \ match u32 0 0 flowid 1:1 \ action skbedit priority 0x${lowid} pipe \ action mirred egress redirect dev ifb0" (i forgot pipe) ipt use another way of defining action (depends on return value of iptables). --
Mar 7, 5:20 pm 2009
Tilman Schmidt
Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemente ...
Not at all. ENODEV means "no such device", which would be quite wrong. The device does exist and is in all probability working perfectly fine. There's precedent for using ENOSYS for that case, for example in drivers/char/vt_ioctl.c. But I'm open for other suggestions. Thanks, Tilman --=20 Tilman Schmidt E-Mail: tilman@imap.cc Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Unge=F6ffnet mindestens haltbar bis: (siehe R=FCckseite)
Mar 7, 5:22 pm 2009
Arjan van de Ven
Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemente ...
On Sun, 08 Mar 2009 01:22:28 +0100 then -ENOTTY is the right answer -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org --
Mar 7, 5:35 pm 2009
Tilman Schmidt
Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemente ...
Interesting, though slightly surprising proposition. "Not a typewriter" is certainly correct. :-) "Not a tty device", however, which I take is the customary interpretation, much less clearly so. The device most certainly is a tty device. It just happens to know a few additional ioctl commands which may or may not be implemented, depending on the kernel config. Not to question your authority, but I would really like a second opinion on that issue before I adopt your proposition, simply ...
Mar 7, 5:55 pm 2009
Arjan van de Ven
Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemente ...
On Sun, 08 Mar 2009 01:55:06 +0100 from the ioctl manpage: ERRORS [snip] ENOTTY The specified request does not apply to the kind of object that the descriptor d references. -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org --
Mar 7, 6:38 pm 2009
Eric W. Biederman
Re: IPv4/IPv6 sysctl unregistration deadlock
From the further brainstorming department... It appears we are using the wait for the completion for two distinct purposes. Waiting until it is safe to free storage. Blocking module unregistration until the all of the users of the code are gone. I'm wondering if we could move the memory freeing. And consolidate the waiting ultimately moving the wait for completion into netdev_run_todo after we drop the lock. The reason I care is that it looks like to get hotplug handling sane, ...
Mar 7, 8:36 pm 2009
Zhiyong Wu
Vaildate if i can use gmail to send a mail to LKML
HI, all guys, Hope that this mail desn't disturb your work.:) Cheers, Zhyong Wu --
Mar 7, 9:45 pm 2009
Yinghai Lu
[PATCH] pci: fix kexec with power state D3
Impact: second kernel by kexec will have some pci devices working Found one system with 82575EB, in the kernel that is kexeced, probe igb failed with -2. it looks like the same behavior happened on forcedeth. try to check system_state to make sure if put it on D3 Jesse Brandeburg said that we should do that check in core code instead of every device driver. Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- drivers/pci/pci.c | 17 +++++++++++++++++ 1 file changed, 17 ...
Mar 8, 1:09 am 2009
Rafael J. Wysocki
Re: [PATCH] pci: fix kexec with power state D3
This is not enough, because the PM code doesn't change system_state and This breaks suspend/hibernation, doesn't it? Surely, we want to put devices into D3 when going for suspend, for example. I don't like this at all, sorry. I thought we were supposed to avoid using system_state in such a way, apart from the other things. Thanks, Rafael --
Mar 8, 3:08 am 2009
Ingo Molnar
Re: [PATCH] pci: fix kexec with power state D3
So Yinghai has now written a driver fix and a generic code fix as well and both are being rejected pointing to the other side? This really sucks for users (who'd be happy with any of the patches) and the disagreement needs to be resolved ASAP. Ingo --
Mar 8, 3:15 am 2009
Rafael J. Wysocki
Re: [PATCH] pci: fix kexec with power state D3
I hope you read my other comment (that you deleted from the reply)? If we're going to fix this at the core level along the Yinghai's patch lines, we'll have to introduce a few additional values for system_state and make suspend and hibernation code use them. Do you think it's worth the effort, given that only a couple of drivers have been found to be affected so far? Rafael --
Mar 8, 3:28 am 2009
Rafael J. Wysocki
Re: [PATCH] pci: fix kexec with power state D3
And, quite frankly, I'm not sure if users will be happy with the $subject patch, because it _really_ breaks things (well, the kexec users who don't use suspend might be, but surely suspend users who don't use kexec won't). Thanks, Rafael --
Mar 8, 3:33 am 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Well, well. IMHO, the confusion is that ->shutdown() is used for too many _different_ things, because kexec is sufficiently different from power off, for example, to be handled by a separate driver callback. I'm totally unsure what power management has to do with it, though. Thanks, Rafael --
Mar 8, 3:45 am 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
In fact pci_enable_device() calls pci_set_power_state(dev, PCI_D0) as the first thing. The question is why it doesn't work as expected. What kernel(s) have you tested? Thanks, Rafael --
Mar 8, 3:57 am 2009
Ingo Molnar
Re: [PATCH] pci: fix kexec with power state D3
Please note that i havent reviewed the patches and i did not take any sides in the discussion - i just flagged the maintainer ping-pong. As long as we pick one of the patches (or a third one) within a bound amount of time we should be fine :) Ingo --
Mar 8, 4:08 am 2009
Tilman Schmidt
Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemente ...
Ok, I'm convinced. I'll redo the patch with ENOTTY instead of ENOSYS. Thanks, Tilman --=20 Tilman Schmidt E-Mail: tilman@imap.cc Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Unge=F6ffnet mindestens haltbar bis: (siehe R=FCckseite)
Mar 8, 5:26 am 2009
Tilman Schmidt
[PATCH 1/2 v2] gigaset: return -ENOTTY for unimplemented ...
From: Paul Bolle <pebolle@tiscali.nl> A number of functions in the usb_gigaset module will return -EINVAL if CONFIG_GIGASET_UNDOCREQ is not set. Make these return -ENOTTY as it's more specific and it might make it easier to see (from userspace) why these functions actually fail. Impact: some error return codes changed Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Tilman Schmidt <tilman@imap.cc> --- drivers/isdn/gigaset/usb-gigaset.c | 8 ++++---- 1 files changed, 4 ...
Mar 8, 8:23 am 2009
Eric Dumazet
Re: Multicast packet loss
Here is a patch that helps. It's still an RFC of course, since its somewhat ugly :) I am now able to have 8 receivers on my 8 cpus machine, with one multicast packet every 10 us, without any loss. (standard setup, no affinity games) oprofile results see that scheduler overhead vanished, we get back to pure network profile :) (First offender being __copy_skb_header because of the atomic_inc on dst refcount) CPU: Core 2, speed 3000.43 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock ...
Mar 8, 9:46 am 2009
Ben Greear
Re: MACVLANs really best solution? How about a bridge wi ...
Doesn't pppoe always talk to an upstream box (the pppoe-server)? If that is so, why would the local mac-vlans ever need to communicate directly to eachother? We've used pppoe on mac-vlans, and it *seemed* to work, but perhaps we were missing something... I think they might also be useful for adding a more realistic 'virtual ip' to an interface, perhaps for interesting routing setups. Thanks, Ben -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc ...
Mar 8, 9:54 am 2009
Yinghai Lu
Re: [PATCH] igb: fix kexec with igb
tip/master also RHEL 5.3 with igb + kexec have the same problem. YH --
Mar 8, 11:03 am 2009
Yinghai Lu
Re: [PATCH] igb: fix kexec with igb
not sure... please check the version for forcedeth that you made. commit 3cb5599a84c557c0dd9a19feb63a3788268cf249 Author: Rafael J. Wysocki <rjw@sisk.pl> Date: Fri Sep 5 14:00:19 2008 -0700 forcedeth: fix kexec regression Fix regression tracked as http://bugzilla.kernel.org/show_bug.cgi?id=11361 and caused by commit f735a2a1a4f2a0f5cd823ce323e82675990469e2 ("[netdrvr] forcedeth: setup wake-on-lan before shutting down") that makes network adapters integrated into ...
Mar 8, 11:10 am 2009
Denys Fedoryschenko
HTB vs HFSC, HTB is highly inaccurate
Hi again I test again HTB and HFSC, this time in very simple case. Regarding HTB - i try without quantum, with different values, without and with cburst (big and small), with HZ=1000 and default, hysteresis on and off - it is almost same result. While i set limit at 57, it can reach 61. HFSC results is perfect. Here is graph snapshopts. http://www.nuclearcat.com/netdev/htb-problem.png You can see points where HTB enabled. Other points if HFSC. Scripts source is: HTB ...
Mar 8, 11:45 am 2009
Kyle McMartin
Re: [PATCH] tulip: Fix for MTU problems with 802.1q tagg ...
Feel free to add Acked-by or Tested-by: Kyle McMartin <kyle@mcmartin.ca>, it doesn't cause any regressions on any of my tulip cards. regards, Kyle --
Mar 8, 12:53 pm 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Thanks, I remember now. This appears to be quirky hardware, doesn't it? Rafael --
Mar 8, 2:08 pm 2009
Yinghai Lu
Re: [PATCH] igb: fix kexec with igb
all my systems with ck804 and mcp55 need this trick. for igb: one system need this trick, and other doesn't need this trick. could BIOS/ACPI difference or the nic option rom difference. but for kexec path, we really don't need put pci devices to D3. YH --
Mar 8, 2:18 pm 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
In which case you need to rework igb_shutdown() rather than igb_suspend(). Something like the patch below, perhaps (totally untested). Thanks, Rafael --- drivers/net/igb/igb_main.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) Index: linux-2.6/drivers/net/igb/igb_main.c =================================================================== --- linux-2.6.orig/drivers/net/igb/igb_main.c +++ linux-2.6/drivers/net/igb/igb_main.c @@ -4299,7 +4299,7 @@ ...
Mar 8, 2:32 pm 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Agreed, but pci_set_power_state() may be called for too many different reasons to be a suitable place for a fix IMO. Thanks, Rafael --
Mar 8, 2:40 pm 2009
Yinghai Lu
Re: [PATCH] igb: fix kexec with igb
you don't need to use pci_choose_state(pdev, state), but use PCI-D3hot directly? YH --
Mar 8, 3:35 pm 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Yes, because we've already decided we'd put the device into D3_hot by calling pci_enable_wake(pdev, PCI_D3hot, 1) in __igb_shutdown(). In fact we should first determine the target state and _then_ call pci_enable_wake() and pci_set_power_state() with that as the argument, but this is a separate issue. For now, IMO, it's better to use D3_hot in both places directly. On a slightly related note, the sequence pci_enable_wake(pdev, PCI_D3hot, 1); ...
Mar 8, 3:57 pm 2009
Yinghai Lu
Re: [PATCH] igb: fix kexec with igb
can you go through e1000, e1000e, ixgb, ixgbe too? YH --
Mar 8, 4:04 pm 2009
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
OK, I will, but it's going to take some time. Thanks, Rafael --
Mar 8, 4:57 pm 2009
previous daytodaynext day
March 7, 2009March 8, 2009March 9, 2009