Re: Proper -current if_attach locking?

2003-01-06 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Nate Lawson <[EMAIL PROTECTED]> writes: : I was looking into some "could sleep messages" and found some bogus : locking in the attach routine of many drivers. Several init a mtx in : their softc and then lock/unlock it in their attach routine. This, of

Re: NIC throughput on multiprocessor low.

2003-01-06 Thread Lars Eggert
On 1/6/2003 8:26 PM, shubha mr wrote: very surprisingly my ethernet gigabit NIC's performance (in MBPS) is more in single processor machine than in a dual processor machine.The tool used to measure the thruput was chariot.Is this due to cache issues? Any ideas to resolve this strange problem? Y

NIC throughput on multiprocessor low.

2003-01-06 Thread shubha mr
Hi, very surprisingly my ethernet gigabit NIC's performance (in MBPS) is more in single processor machine than in a dual processor machine.The tool used to measure the thruput was chariot.Is this due to cache issues? Any ideas to resolve this strange problem? Thanks in advance, shubha __

Re: raw socket/icmp-echo

2003-01-06 Thread Craig Rodrigues
On Mon, Jan 06, 2003 at 06:42:26PM -0800, Lev Walkin wrote: > Consider using libpcap - this is the portable library that uses > bpf, raw socket, packet socket or whatever packets source is available > for the particular platform. > > Pcap tutorial available here: > http://reactor-core.org/securit

Re: raw socket/icmp-echo

2003-01-06 Thread Lev Walkin
Abdul Basit wrote: Hello, I was trying to learn raw sockets, I wrote a simple program to get all icmp packets and display .. -- program int main(void) { int sockfd; int ip_len; char*buf; int n; struct icmp

Radix nodes, netmasks, and bogus sockaddrs, oh my!

2003-01-06 Thread Kelly Yancey
Is there any reason to fix the code in the kernel which assumes rt_mask(rt) is a properly-formed sockaddr? For example, sys/net/rtsock.c:sysctl_dumpentry() just passes rt_mask(rt)'s contents to userland to be interpretted as a sockaddr but it seldomly is a properly-formed sockaddr (i.e. sa_fa

Re: Proper -current if_attach locking?

2003-01-06 Thread Nate Lawson
On Mon, 6 Jan 2003, Kyunghwan Kim wrote: > On Mon, Jan 06, 2003 at 10:58:25AM +0100, Harti Brandt wrote: > > On Fri, 3 Jan 2003, Nate Lawson wrote: > > NL>I was looking into some "could sleep messages" and found some bogus > > NL>locking in the attach routine of many drivers. Several init a mtx in

Re: Proper -current if_attach locking?

2003-01-06 Thread Kyunghwan Kim
On Mon, Jan 06, 2003 at 10:58:25AM +0100, Harti Brandt wrote: > On Fri, 3 Jan 2003, Nate Lawson wrote: > NL>I was looking into some "could sleep messages" and found some bogus > NL>locking in the attach routine of many drivers. Several init a mtx in > NL>their softc and then lock/unlock it in thei

Re: Proper -current if_attach locking?

2003-01-06 Thread Harti Brandt
On Fri, 3 Jan 2003, Nate Lawson wrote: NL>I was looking into some "could sleep messages" and found some bogus NL>locking in the attach routine of many drivers. Several init a mtx in NL>their softc and then lock/unlock it in their attach routine. This, of NL>course, does nothing to provide exclus

Re: help-urgent

2003-01-06 Thread Mark Santcroos
Don't think these lists are the best place for this question but alas... On Mon, Jan 06, 2003 at 06:25:13AM +, shubha mr wrote: > If I have to write to a register at offset say x,in > the pci configuration space,how do I do it? If it is > using pci_read_config and pci_write_config,how does >