Re: [PATCH net-2.6.25 3/3] Uninline the inet_twsk_put function

2007-12-21 Thread Ingo Oeser
choose > to make me do it and explain it to you instead. Sorry, just matched the wrong pattern here :-) Best Regards Ingo Oeser -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH net-2.6.25 3/3] Uninline the inet_twsk_put function

2007-12-20 Thread Ingo Oeser
ces and modify inet_twsk_put() to sth. like this: static inline inet_twsk_put(struct inet_timewait_sock *tw) { kref_put(&tw->kref, inet_twsk_release); } David, can you see any reason (e.g. some crazy lock stuff) NOT to do this? Best Regards Ingo Oeser -- To unsubscribe from this list: send th

Re: [PATCH 02/05] ipv6: RFC4214 Support

2007-11-09 Thread Ingo Oeser
!PRIVATE_10(a) && > !LINKLOCAL(a) && > !PRIVATE_172(a) && > !PRIVATE_192(a) && > !NETICDEVBENCH(a) && > !MULTICAST(a)) ? 2 : 0; Oh, yes that's great! Now even *I* can read what this is all about without reading any RFC :-) Please Fred, try to do it that way. Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/2]: e1000: avoid lockup durig error recovery

2007-11-09 Thread Ingo Oeser
* @n: napi context > + * > + * Mnemonic: _p stands for "predicate", returning a yes/no > + * answer to the question. Call it "is_napi_enabled()" an nobody will ask :-) > + */ > +static inline int napi_enabled_p(struct napi_struct *n) And please make it return &q

Re: [PATCH 02/05] ipv6: RFC4214 Support

2007-11-07 Thread Ingo Oeser
y (eui+4, addr, 4); > + return (0); > +} Nitpick: "return" is not a function. Please write "return 0;" instead. > + > +static inline int ipv6_addr_is_isatap(const struct in6_addr *addr) > +{ > + return (addr->s6_addr32[2] == __constant_

Re: [PATCH 13/24] [IPSEC]: Move x->outer_mode->output out of locked section

2007-11-07 Thread Ingo Oeser
of the seconds outside the spinlock? e.g. tmp = get_seconds(); spin_lock_bh(&x->lock); x->lastused = tmp; spin_unlock_bh(&x->lock); or is it not really worth it? Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body o

Re: [PATCH 2/2] [POWERPC] Fix region size check in mpc5200 FEC driver

2007-11-01 Thread Ingo Oeser
invalid resource size (%lx != %x), check > mpc52xx_devices.c\n", > + " - invalid resource size (%lx < %x), check > mpc52xx_devices.c\n", > (unsigned long)(mem.end - mem.start + 1), sizeof(struct > mpc52xx_fec)); >

Re: [linux-usb-devel] [PATCH] USB: net: Fix asix read transfer buffer allocations.

2007-10-23 Thread Ingo Oeser
y ok, since mutexes can sleep, it is not desireable, since other users of that mutex are blocked until the allocation is done. If you are able to implement the "2 bytes of usbnet data buffer" version, please ignore that mail :-) Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH]: Third (final?) release of Sun Neptune driver

2007-10-05 Thread Ingo Oeser
Ingo Oeser schrieb: > > +static void niu_init_xif(struct niu *); > > + > > +static int link_status_10g(struct niu *np, int *link_up_p) > > +{ > > + unsigned long flags; > > + int err, link_up; > > + > > + if (np->link_config.loopback_mode !

Re: [PATCH]: Third (final?) release of Sun Neptune driver

2007-10-05 Thread Ingo Oeser
ink_up_p = link_up; > + return 0; > +} [...] > +static void niu_set_primary_mac(struct niu *np, unsigned char *addr) > +{ > + u16 reg0 = addr[4] << 8 | addr[5]; > + u16 reg1 = addr[2] << 8 | addr[3]; > + u16 reg2 = addr[0] << 8 | addr[1]; > + > + if (np->flags & NIU_FLAGS_XMAC) { > + nw64_mac(XMAC_ADDR0, reg0); > + nw64_mac(XMAC_ADDR1, reg1); > + nw64_mac(XMAC_ADDR2, reg2); > + } else { > + nw64_mac(BMAC_ADDR0, reg0); > + nw64_mac(BMAC_ADDR1, reg1); > + nw64_mac(BMAC_ADDR2, reg2); > + } > +} > + > +static int niu_num_alt_addr(struct niu *np) static int niu_num_alt_addr(const struct niu *np) > +{ > + if (np->flags & NIU_FLAGS_XMAC) > + return XMAC_NUM_ALT_ADDR; > + else > + return BMAC_NUM_ALT_ADDR; > +} > + [...] > +static void niu_set_max_burst(struct niu *np, struct tx_ring_info *rp) > +{ > + int mtu = np->dev->mtu; > + > + rp->max_burst = mtu + 32; > + if (rp->max_burst > 4096) > + rp->max_burst = 4096; Why 32 and 4096? (Magic values) > +} > + ... ok, I stop here, since this drivers is damn big :-) Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [BUG] tg3 cannot do PXE (loses MAC address) after soft reboot

2007-09-17 Thread Ingo Oeser
Michael Chan schrieb: > On Fri, 2007-09-14 at 10:14 +0200, Ingo Oeser wrote: > > Is it enough to parse the first number in the firmware via simple_strtoul()? > > No, it's not. We need to check the number after the '.' and possibly an > alphabet at the end as wel

Re: [BUG] tg3 cannot do PXE (loses MAC address) after soft reboot

2007-09-14 Thread Ingo Oeser
version %s (latest supported: %d). You might consider a firmware upgrade.\n", version_string, oldest_supported); } Maybe that mechanism should be global somewhere? Having this kind of information available would help system maintenance in heterogenous hardware environm

Re: [PATCH] ixgbe: Introduce new 10GbE driver for Intel 82598 based PCI Express adapters...

2007-07-06 Thread Ingo Oeser
elds. All points raised be the people here are actually valid and I consider bitfields nice and clear for specification and example code, but avoid them while doing real coding. Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of

Re: [PATCH] [XFRM]: Add module alias for transformation type. (Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.)

2007-05-31 Thread Ingo Oeser
Dear Nakamura-san, [EMAIL PROTECTED] schrieb: > This is the third one of MIPv6 module patch. It can be applied > after two patches which are already sent to the list. > Could you review it? They look good. Thanks for taking the time to clean this up! Acked-by: Ingo Oeser <[EMA

Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.

2007-05-24 Thread Ingo Oeser
Masahide NAKAMURA schrieb: > Ingo Oeser wrote: > > What about MODULE_ALIAS("xfrm-type-10-60") > > and MODULE_ALIAS("xfrm-type-10-43") in mip6.c ? Just replace your second patch ("Loadable module support") with one, which additionally adds thes

Re: [NET] napi: Call __netif_rx_complete in netif_rx_complete

2007-05-23 Thread Ingo Oeser
ere and the code looks bigger than a function call with a single argument. Maybe even make the callers out of line? Best regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vge

Re: [PATCH] Fix incorrect prototype for ipxrtr_route_packet()

2007-05-23 Thread Ingo Oeser
catch declaration mismatch > and other similar issues. I would LOVE to see a config option or build target for that. At the moment I haven't figured out, how to do this correctly with Kbuild. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev"

Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.

2007-05-23 Thread Ingo Oeser
ODULE_ALIAS_XFRM_TYPE macro in include/net/xfrm.h simliar to to MODULE_ALIAS_XFRM_MODE. Please be sure to discuss CC Herbert Xu then. Best regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Fwd: [PATCH] [TIPC]: Enhancements to msg_set_bits() routine]

2007-04-27 Thread Ingo Oeser
Hi Jon, Jon Paul Maloy schrieb: > Ingo Oeser wrote: > > static inlinevoid msg_set_bits(struct tipc_msg *m, u32 w, > > u32 pos, __be32 mask, __be32 val) > > > > > > Care to resubmit? > I don't mind at all, but I would first li

Re: [Fwd: [PATCH] [TIPC]: Enhancements to msg_set_bits() routine]

2007-04-25 Thread Ingo Oeser
w, u32 val) static inline void msg_set_bits(struct tipc_msg *m, u32 w, > u32 pos, u32 mask, u32 val) static inlinevoid msg_set_bits(struct tipc_msg *m, u32 w, u32 pos, __be32 mask, __be32 val) Care to resubmit? Best Regards Ingo

Re: [PATCH] cfg80211: new wireless config infrastructure

2007-04-25 Thread Ingo Oeser
ex); drv->idx = wiphy_counter; /* increase counter for the next time, if id didn't wrap */ if (drv->idx >= 0) wiphy_counter++; mutex_unlock(&cfg80211_drv_mutex); if (drv->idx < 0) { kfree(drv); return NULL; } /* give it a proper name */ snprintf(drv->wiphy.dev.bus_id, BUS_ID_SIZE, PHY_NAME "%d", drv->idx); [enqueue to all lists here] Rest looks good so far. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2.6] WE-22 : prevent information leak on 64 bit

2007-03-27 Thread Ingo Oeser
W_EV_LCP_LEN); > + memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN); useless cast. > memcpy(stream + IW_EV_LCP_LEN, > ((char *) iwe) + IW_EV_LCP_LEN + IW_EV_POINT_OFF, > -IW_EV_POINT_LEN - IW_EV_LCP_LEN); > +IW_EV_POINT_PK_LEN - I

Re: [PATCH 1/5 2.6.21-rc4] l2tp: pppol2tp core

2007-03-27 Thread Ingo Oeser
buffer space. seq_puts() behaves the same. So you simply do this: if (seq_puts(m, "text\n")) goto no_space; Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http:/

Re: L2TP support?

2007-03-22 Thread Ingo Oeser
s according to Documentation/SubmittingPatches I'm looking forward to review it! Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/6] IrDA: IrLAP raw mode

2007-03-16 Thread Ingo Oeser
+ if (self->raw_mode) > + return; > +#endif > + I would suggest a small helper function here, which compiles into a constant, if raw_mode is not compiled in. like #ifdef CONFIG_IRDA_RAW static inline int irlap_raw_mod(struct irlap_cb *self) { return self-&g

Re: Funny Routing change since 2.6.16.x

2007-02-08 Thread Ingo Oeser
Hi Patrick, Patrick McHardy schrieb: > Ingo Oeser wrote: > > Patrick McHardy schrieb: > > > >>My guess is that you're using MASQUERADE on ppp0, which since 2.6.14 > >>doesn't exclude locally generated packets anymore, so it translates > >>th

Re: Funny Routing change since 2.6.16.x

2007-02-07 Thread Ingo Oeser
ress for several third party vendor tunnels. So changing that is quite an effort. Many thanks for your quick answer. Best regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4] skge: WOL support

2007-02-05 Thread Ingo Oeser
IP_ID_YUKON && hw->chip_rev != 0) > + return WAKE_MAGIC | WAKE_PHY; > + else > + return 0; > +} You can delete that comment, if you write exactly, what the comment says: if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev >= 1)

Re: [PATCH] HTB O(1) class lookup

2007-02-05 Thread Ingo Oeser
s config. The algorithm should stay the same. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] [v3] PA Semi PWRficient Ethernet driver

2007-01-31 Thread Ingo Oeser
a chance to run, while you wait for your hardware state to change (if your hardware can tolerate these latencies). - can somehow handle hardware failure and at least give the user a clue what is happening. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH -mm 3/10][RFC] aio: use iov_length instead of ki_left

2007-01-16 Thread Ingo Oeser
g nr_segs; unsigned long seg_limit; size_t nr_bytes; }; That will enable resizeable iodescs with partial completion state and will enable successive filling of an iodesc with iovs. This will be needed anyway. I built an complete short userspace module for that already. I can po

Re: [PATCH 31/59] sysctl: C99 convert the ctl_tables in arch/mips/au1000/common/power.c

2007-01-16 Thread Ingo Oeser
t; + .data = NULL, > + .maxlen = 0, > + .mode = 0600, > + .proc_handler = &pm_do_freq > + }, > + {} > }; dito Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 45/59] sysctl: C99 convert ctl_tables in drivers/parport/procfs.c

2007-01-16 Thread Ingo Oeser
+ 1, > + .procname = "autoprobe0", > + .data = NULL, > + .maxlen = 0, > + .maxlen = 0444, > + .proc_handler = &do_autoprobe > + }

Re: [PATCH/RFC 01/10] Implement local diversion of IPv4 skbs

2007-01-10 Thread Ingo Oeser
o this statement is not quite true, although I believe you are probably right for this case. BTW: This rp_filter=0 requirement isn't even officially documented (e.g. in the LARTC). Regards Ingo Oeser [1] But does take TOS into account for historic (???) reasons. - To unsubscribe

Re: [PATCH 3/3] chelsio: more rx speedup

2007-01-10 Thread Ingo Oeser
Divy Le Ray schrieb: > Stephen Hemminger wrote: > > On Tue, 9 Jan 2007 09:42:03 +0100 > > Ingo Oeser <[EMAIL PROTECTED]> wrote: > >> Stephen Hemminger schrieb: > >>> - if (fl->credits < drop_thres) { > >>> +use_orig_buf: > >>>

Re: [PATCH 3/3] chelsio: more rx speedup

2007-01-10 Thread Ingo Oeser
Stephen Hemminger schrieb: > On Tue, 9 Jan 2007 09:42:03 +0100 > Ingo Oeser <[EMAIL PROTECTED]> wrote: > > Stephen Hemminger schrieb: > > > --- netdev-2.6.orig/drivers/net/chelsio/sge.c > > > +++ netdev-2.6/drivers/net/chelsio/sge.c > > Please use NET_

Re: [PATCH 3/3] chelsio: more rx speedup

2007-01-09 Thread Ingo Oeser
pci_unmap_len(ce, dma_len), > +PCI_DMA_FROMDEVICE); > recycle_fl_buf(fl, fl->cidx); > return skb; > } > > - if (fl->credits < drop_thres) { > +use_orig_buf: > + if (fl-&

EEPROM infrastructure (was: [PATCH] eeprom_93cx6: Add write support)

2006-12-15 Thread Ingo Oeser
iting infrastructure. Many device types come with eeproms today and they implement it per driver or subsystem. On embedded platforms these EEPROMs might even be shared among different devices. So it might be time to generalize this like we did with LEDs. Any comments? Regards Ingo Oeser - To uns

Re: [PATCH] Add support for configuring the PHY connection interface

2006-11-08 Thread Ingo Oeser
= PHY_INTERFACE_MODE_RTBI; > + > + return interface; > +} If you change the modes into an enum (as suggested by Kumar), you can make a nice static lookup table indexed by mode with a for loop here. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/3] NetXen: Fixed /sys mapping between device and driver

2006-11-07 Thread Ingo Oeser
41,7 @@ static int netxen_nic_poll(struct net_de > netxen_nic_enable_int(adapter); > } > > - return (done ? 0 : 1); > + return (!done); return !done; Please lose the braces here (CodingStyle). Just respin or send this change along with later pat

Re: [PATCH 2/3] ethtool: flie option to register dump

2006-10-24 Thread Ingo Oeser
first 4-6 octets of the hexdump and decode+check+warn using this info first to avoid mixing up files? Maybe only the first 4 octets to enhance privacy and still being able to detect known "bad" series. This might prevent user errors when sending such files to developers. Regar

Re: [PATCH] [NET] reduce sizeof(struct flow)

2006-10-18 Thread Ingo Oeser
. And some distribution vendors are still at 2.6.8-$WHACKY_PATCHES or similiar, which is not usable for many things (e.g. IPsec, SIP behind NAT etc.). But I agree that workings towards smaller size in "make allyesconfig" is much better :-) Regards Ingo Oeser - To unsubscribe from thi

Re: [patch 2/2] round_jiffies users

2006-10-10 Thread Ingo Oeser
dule_delayed_work_on(cpu, reap_work, __round_jiffies_relative(HZ, 3 * cpu)); } } In case you apply it: Signed-off-by: Ingo Oese <[EMAIL PROTECTED]> Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Customizable TCP backoff patch

2006-10-04 Thread Ingo Oeser
t members an issue again. These > things are never easy are they? :-/ Would be, if floating point values would be allowed. Single precision would be enough in this case and its just 32 bits IIRC. I mean floating point values just for the user->kernel ABI and NOT for the internal timer represe

Re: [PATCH] natsemi: Messages being noisy

2006-09-15 Thread Ingo Oeser
Hi Tim, Hi Jeff, [EMAIL PROTECTED] wrote: > On Thu, Sep 14, 2006 at 05:39:08PM +0200, Ingo Oeser wrote: > > Ingo Oeser wrote: > > > I get the following message when trying to transfer big files > > > (via FTP or SCP) since Linux 2.6.16.27. It didn't h

Re: [PATCH] natsemi: Messages being noisy

2006-09-14 Thread Ingo Oeser
Hi there, Ingo Oeser wrote: > I get the following message when trying to transfer big files > (via FTP or SCP) since Linux 2.6.16.27. It didn't happen with Linux 2.6.13.4. > > [702238.242237] eth1: increased tx threshold, txcfg 0xd0f01008. > [702238.242649] eth1: increased

[PATCH] natsemi: Messages being noisy

2006-09-13 Thread Ingo Oeser
about putting this message at the message level "DEBUG" or even under pr_debug()? This NIC is just used for PPPoE in our setups. The other message "tx underrun with maximum tx threshold" is much more useful, since it indicates a real problem. So I would suggest the following pa

Re: Regarding offloading IPv6 addrconf and ndisc

2006-08-03 Thread Ingo Oeser
Lots of users use their own kernels instead of distribution kernels. Much less users divert core software from their distribution. The big binary called bzImage/vmlinux whatever is a huge usability advantage here :-) Regards Ingo Oeser - To unsubscribe from this list: send the line "uns

Re: [PATCH][ebtables][vlan] ebt_vlan_t target

2006-07-06 Thread Ingo Oeser
vlan target. > + > + To compile it as a module, choose M here. If unsure, say N. > + > + Please put your nice explanations "to change vlan ids in fly" from your email here. And short ebtables example for the common use case might help, too. But only, if it is not more t

Re: [IOC3] IP27: Really set PCI64_ATTR_VIRTUAL, not PCI64_ATTR_PREC.

2006-06-20 Thread Ingo Oeser
ng ioc3_map(void *ptr, unsigned long vdev) > { > #ifdef CONFIG_SGI_IP27 > - vdev <<= 58; /* Shift to PCI64_ATTR_VIRTUAL */ > + vdev <<= 57; /* Shift to PCI64_ATTR_VIRTUAL */ So please use a symbolic value here. Regards Ingo Oeser - To unsubscribe from this lis

Re: link-local address via ifconfig

2006-06-12 Thread Ingo Oeser
first, rather than the global/site one. This can be worked around by defining an "alias interface" this way "ip address add 169.254.182.108/16 brd 169.254.255.255 scope link dev eth0 label eth0:0" (see: "label eth0:0" is appended) So in reality this is no problem for us

[BUG 6480]Re: Asus K8N-VM Motherboard Ethernet Problem

2006-05-29 Thread Ingo Oeser
your nvidia NIC, since we only have it at one customers mail server behind a SonicWall, so we cannot really try a lot. For all other customers it works. I'm a bit lost on the cause. I've seen 4% collisions, which might reduce performance, but should not stop the transmitter forever. PS:

Re: Safe remote kernel install howto (Re: [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc))

2006-05-26 Thread Ingo Oeser
Hi Andi, Andi Kleen wrote: > > 4. Put "sysctl -w kernel.panic_on_oops=1" as early as possible > > in your boot scripts[1]. > > You can as well boot with oops=panic Only on x86_64 as of Linux 2.6.16. But maybe this could be put into kernel/panic.c instead :

Safe remote kernel install howto (Re: [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc))

2006-05-26 Thread Ingo Oeser
. And now reboot into the new kernel, try to login and delete the reboot cronjob. If this doesn't work, just wait 15min and have the last stable kernel booted automatically. This method saved me and our customers a lot of time already :-) Regards Ingo Oeser [1] This should be the defa

Re: [PATCH 3/4] myri10ge - Driver core

2006-05-26 Thread Ingo Oeser
or > such and use __ioremap with explicit page attributes. I have a hack to > do that automatically for memory covered by prefetchable PCI BARs when > mmap'ing from userland but not for kernel ioremap. Stupid question: pci_iomap() is NOT what you are looking for, right? Impleme

Re: KERNEL: assertion (!sk->sk_forward_alloc) failed at net/* (again)

2006-05-16 Thread Ingo Oeser
and your .config would be the minimum some ethtool outputs (ethtool -k ethX) would help here. 4. If you like to have it resolved very fast, please try git-bisect. This can take a lot of time (several recompiles and reboots needed!). Happy Bug hunting! Regards Ingo Oeser - To

Re: [PATCH] expose simplified skb_checksum_recalc

2006-05-11 Thread Ingo Oeser
Hi Stephen, Stephen Hemminger wrote: > Many users of skb_checksum_help() are just using it to recalculate > outbound checksum, so why not expose the interface in a more useful > way. Suggested by Ingo Oeser. You are damn fast Stephen :-) That's even better and improves a lot on

Re: [RFC 1/3] [IPSEC] xfrm: Undo afinfo lock proliferation

2006-05-08 Thread Ingo Oeser
not mix clean-ups with substantive changes so > if you have the time please post a separate patch for this. Otherwise > I'll do a patch when I resubmit this. Would be nice to include such a patch in this patchset, since you seem to be able to decipher that magic value :-) Thanks &

Re: Disabling "TCP Treason uncloaked"

2006-05-03 Thread Ingo Oeser
essage. Already there: /proc/sys/net/core/{message_cost,message_burst} Just set burst to 0 and cost to a very big value to basically supppress all net_ratelimit()ed messages. Or did you think of sth. else? Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netde

[Bug 6480] Transmitter of CK804 hangs hard, needs power cycle to recover

2006-05-02 Thread Ingo Oeser
from bugzilla and "agreed to help out with net driver maintenance" so I CC'ed you here manually. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at ht

Re: IP1000 gigabit nic driver

2006-04-28 Thread Ingo Oeser
t works good, reduces maintainence burden and keeps your driver current to latest APIs automatically. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 17/32] rt2x00: Put net_device structure in data_ring

2006-04-28 Thread Ingo Oeser
_get_drvdata(rt2x00pci->pci_dev); > - struct sk_buff *skb; > + struct data_ring*ring = (struct data_ring*)data; No need for casting. Many more of them. I guess you could just do a fgrep for "*ring = (struct data_ring*)data;" Regards Ingo Oeser

Re: [PATCH 7/32] rt2x00: make vals static

2006-04-28 Thread Ingo Oeser
Sie schrieben: > From: Ivo van Doorn <[EMAIL PROTECTED]> > > The vals[] arrays in *_init_hw_channels can be made > static to optimize memory and reduce stack size. What about static const? They are also constants, right? But please try first, if this helps in terms of code si

Re: Van Jacobson's net channels and real-time

2006-04-23 Thread Ingo Oeser
s, you are right. But even then I can still implement the reserve/commit once you provide the helpers for producer_space and consumer_space. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majo

Re: Van Jacobson's net channels and real-time

2006-04-22 Thread Ingo Oeser
s is quite similiar to now we do page_vec stuff in mm/ already. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Van Jacobson's net channels and real-time

2006-04-22 Thread Ingo Oeser
ot exactly a queue, but a dynamic double buffer :-) So maybe doing queueing with the classic head/tail variant is better here, but the other variant might replace it without problems and allows for some nice improvements. Regards Ingo Oeser - To unsubscribe from this list: send the line "uns

Re: Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered

2006-04-21 Thread Ingo Oeser
5:45 -0700 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: > arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) > triggered Regards Ingo Oeser - To unsubscribe from this list: send the line &

Re: [PATCH 0/10] [IOAT] I/OAT patches repost

2006-04-21 Thread Ingo Oeser
plication is sth. like a MPEG demultiplexer? There you don't like to look at everything and excplicitly ignore received data[1]. Yes, I know this is usually done with hardware demuxers and filters, but the principle might apply to other applications as well, for which no hardware solutions e

Re: Van Jacobson's net channels and real-time

2006-04-21 Thread Ingo Oeser
cheaper with local_t instead of atomic_t later on. But I guess the cacheline bouncing will be a non-issue, since the whole point of netchannels was to keep traffic as local to a cpu as possible, right? Would you like to see a sample patch relative to your tree, to show you what I mean? Rega

Re: [TCP]: Fix truesize underflow

2006-04-18 Thread Ingo Oeser
river writers were already confused by all that size, len and truesize stuff, as this bug showed. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: fixing sk_stream_rfree()

2006-04-18 Thread Ingo Oeser
dulo arithmetics. The non-atomic wrapround doesn't change the atomic nature of read, add, sub. Only problem is atomic_dec_and_test() or similiar ops. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] deinline a few large functions in vlan code v2

2006-04-13 Thread Ingo Oeser
vlan/drivers/net/typhoon.o with allyesconfig (minus CONFIG_INFO) and my patches applied. So maybe the uninlining is enough. Gain after this is just 575 bytes here. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMA

[RFD][PATCH] typhoon and core sample for folding away VLAN stuff (was: Re: [PATCH] deinline a few large functions in vlan code v2)

2006-04-12 Thread Ingo Oeser
eatures. So I really appreciate your work here Denis. Regards Ingo Oeser diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index c1ce87a..aab24b8 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c @@ -285,7 +285,9 @@ struct typhoon { struct pci_dev *pdev;

Re: [PATCH] deinline a few large functions in vlan code v2

2006-04-11 Thread Ingo Oeser
Hi Denis, Denis Vlasenko wrote: > On Tuesday 11 April 2006 12:49, Ingo Oeser wrote: > > #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) > > static inline has_vlan_group(...) { > > /* get VLAN group */ > > } > > #else > > stati

Re: [PATCH] deinline a few large functions in vlan code v2

2006-04-11 Thread Ingo Oeser
code elemination. The result will be even cleaner code, I think. What do you think? Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] forcedeth: suggested cleanups

2006-04-11 Thread Ingo Oeser
hat: looks good. Many thanks for your review. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] forcedeth: suggested cleanups

2006-04-10 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> general: - endian annotation of the ring descriptors nv_getlen(): - use htons() instead of __constant_htons() to improvde readability and let the compiler constant fold it. nv_rx_process(): - use a real for() l

Re: [PATCH] fix multicast frame handling

2006-04-10 Thread Ingo Oeser
  return 0; >   Please use "htons(ETH_P_SLOW)", since the compiler will constant fold this and it is more readable this way. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] softmac: return -EAGAIN from getscan while scanning

2006-04-07 Thread Ingo Oeser
ss two files? I would suggest folding it simply into its sole caller: ieee80211softmac_wx_get_scan_results() in net/ieee80211/softmac/ieee80211softmac_wx.c That should reduce kernel text size a bit. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev&

Re: [e1000 debug] KERNEL: assertion (!sk_forward_alloc) failed...

2006-03-31 Thread Ingo Oeser
nk that only happens on PCI Express and I don't think > Ingo is using PCI Express. Right. PCI-Express is not available in this machine. Maybe the traffic is not enough to trigger it. External connect is just a 6MBit DSL. Regards Ingo Oeser - To unsubscribe from this list: send the line &

Re: [e1000 debug] KERNEL: assertion (!sk_forward_alloc) failed...

2006-03-31 Thread Ingo Oeser
but cannot test patches. Regards Ingo Oeser # # Automatically generated make config: don't edit # Linux kernel version: 2.6.16 # Thu Mar 23 15:29:59 2006 # CONFIG_X86_32=y CONFIG_SEMAPHORE_SLEEPERS=y CONFIG_X86=y CONFIG_MMU=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y CONFIG_ARCH_MA

Re: [PATCH 1/9] [I/OAT] DMA memcpy subsystem

2006-03-31 Thread Ingo Oeser
nt debugfs. If it becomes really important, we can revisit this later. Thats the advantage of files under debugfs not being stable API in any way. BTW: What is the actual frequency, at which such counters will be incremented? Regards Ingo Oeser - To unsubscribe from this list: send the line &

Re: [PATCH] scm: fold __scm_send() into scm_send()

2006-03-20 Thread Ingo Oeser
Hi Chris, Andrew Morton wrote: > Ingo Oeser <[EMAIL PROTECTED]> wrote: > > > > -int scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie > > *scm) > > -{ > > - struct task_struct *p = current; > > - scm->creds

[PATCH] scm: fold __scm_send() into scm_send()

2006-03-13 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Fold __scm_send() into scm_send() and remove that interface completly from the kernel. Signed-off-by: Ingo Oeser <[EMAIL PROTECTED]> --- Inspired by the patch to inline scm_send() I did the next logical step :-) Regards Ingo Oeser diff --git a

Re: [PATCH] IPv6: Cleanup of net/ipv6/reassambly.c

2006-03-11 Thread Ingo Oeser
Hi, On Sunday, 12. March 2006 00:49, Ingo Oeser wrote: > From: Ingo Oeser <[EMAIL PROTECTED]> > > Two minor cleanups: > > 1. Using kzalloc() in fraq_alloc_queue() >saves the memset() in ipv6_frag_create(). > > 2. Invert sense of if-statements to streamline

[PATCH] IPv6: Cleanup of net/ipv6/reassambly.c

2006-03-11 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Two minor cleanups: 1. Using kzalloc() in fraq_alloc_queue() saves the memset() in ipv6_frag_create(). 2. Invert sense of if-statements to streamline code. Inverts the comment, too. Signed-off-by: Ingo Oeser <[EMAIL PROTECTED]> --- Hi,

[PATCH] Nearly complete kzalloc cleanup for net/ipv6

2006-03-11 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Stupidly use kzalloc() instead of kmalloc()/memset() everywhere where this is possible in net/ipv6/*.c . Signed-off-by: Ingo Oeser <[EMAIL PROTECTED]> --- Hi, I'm going to refactor some of the simple cases to reduce code duplication whi

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-03-10 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* Rest of function here */

Re: [EXPERIMENTAL] HT aware loopback device (hack, x86-64 only atm)

2006-03-09 Thread Ingo Oeser
as Van Jacobson calls this. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: IPv6: avoid dereference of null route entry in ipv6_del_addr()

2006-03-07 Thread Ingo Oeser
YOSHIFUJI Hideaki wrote: > In article <[EMAIL PROTECTED]> (at Tue, 7 Mar 2006 11:26:13 +0100), Ingo > Oeser <[EMAIL PROTECTED]> says: > > > What about sth. like this simple defensive patch instead > > (against Linux 2.6.16-rc4)? > > I disagree again. Sorr

Re: IPv6: avoid dereference of null route entry in ipv6_del_addr()

2006-03-07 Thread Ingo Oeser
miliar, I would not trust this very much. What about sth. like this simple defensive patch instead (against Linux 2.6.16-rc4)? Regards Ingo Oeser --- net/ipv6/addrconf.c~2006-02-17 23:23:45.0 +0100 +++ net/ipv6/addrconf.c 2006-03-07 11:19:50.0 +0100 @@ -713,7 +713,8 @@

Re: [PATCH 0/8] Intel I/O Acceleration Technology (I/OAT)

2006-03-07 Thread Ingo Oeser
Evgeniy Polyakov wrote: > On Mon, Mar 06, 2006 at 06:44:07PM +0100, Ingo Oeser ([EMAIL PROTECTED]) > wrote: > > Hmm, so I should resurrect my user page table walker abstraction? > > > > There I would hand each page to a "recording" function, which > >

Re: [PATCH 0/8] Intel I/O Acceleration Technology (I/OAT)

2006-03-06 Thread Ingo Oeser
my user page table walker abstraction? There I would hand each page to a "recording" function, which can drop the page from the collection or coalesce it in the collector if your scatter gather implementation allows it. Regards Ingo Oeser - To unsubscribe from this list: send the lin

Re: [PATCH 5/6] x25: Allow 32 bit socket ioctl in 64 bit kernel

2006-02-16 Thread Ingo Oeser
t: > + printk(KERN_DEBUG "X.25: unknown facility %02X," > + "length %d, values %02X, %02X, %02X, %02X\n", > + p[0], p[1], p[2], p[3], p[4], p[5]); > + brea

[PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-02-11 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - remove unused label - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* R

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit)

2006-02-10 Thread Ingo Oeser
change, which I will run through make allyesconfig make which may take a while. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit)

2006-02-09 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - remove unused label - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* R

Re: [Bug 5672] New: cannot get socket once accept(2) has failed due to EMFILE/ENFILE

2006-02-01 Thread Ingo Oeser
ny connection after EFAULT (which is usally followed by a SEGV)? So I wouldn't worry that much. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH RESEND 3/6] e1000: Added functions to save and restore config

2006-01-26 Thread Ingo Oeser
Jesse Brandeburg wrote: > On Mon, 23 Jan 2006, Ingo Oeser wrote: > > Jeff Kirsher wrote: > > > These functions help restore the driver to active configuration when > > > coming out of resume for > > power management. > > > > Shouldn't this probl

Re: [PATCH RESEND 6/6] e1000: Added driver comments

2006-01-23 Thread Ingo Oeser
; #include "e1000.h" > > /* Change Log Wasn't it consensus, that changelogs are better kept in version control systems or at least seperate from code? Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

  1   2   >