[OT] ethtool MII helpers (actually two OT's)

2001-06-24 Thread Hen, Shmulik
MII --- Is there any support in the MII standard for 1000Mbps (GbE Fiber/Copper) ? Perhaps an extension to the standard ? I could see that some of the Gigabit adapters supported by the kernel provide the MII IOCTLs interface, but couldn't figure out how to extract the correct speed information fro

RE: ioctl call for network device

2001-05-08 Thread Hen, Shmulik
> struct ifreq has a member called ifr_data. It is a pointer. You can > put a pointer to any of your data, including the most complex structure > you might envision, in that area. This allows you to pass anything > to and from your module. This pointer can be properly dereferenced > in kernel spac

RE: change_mtu boundary checking error

2001-04-18 Thread Hen, Shmulik
But Ethernet is not only for IP, what about other protocols ? -Original Message- From: Alan Cox [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: change_mtu boundary checking error > Now, the high

change_mtu boundary checking error

2001-04-17 Thread Hen, Shmulik
Hello, Going through the change_mtu() code in the kernel, I came across the default function supplied when calling ether_setup(). I could see that eth_change_mtu() (drivers/net/net_init.c) does the following: if( (new_mtu < 68) || (new_mtu > 1500) ) return -EINVAL; Looki

RE: Plans for 2.5

2001-03-29 Thread Hen, Shmulik
Just some general questions: 1) Is there anywhere a list that describes what is intended to be in 2.5.x ? 2) Are there any early releases of 2.5.x ? 3) Are the things for 2.5.x being discussed on another mailing list ? 4) What is the time frame of releasing 2.5.x-final (or 2.6.x) ? Specifically,

RE: URGENT : System hands on "Freeing unused kernel memory: "

2001-03-27 Thread Hen, Shmulik
Does it hang forever ? I've noticed that my kernel (2.4.2) stalls for several minutes with the same message but suddenly after that the login prompt appears (anything between, like configurations and services starting messages, are gone). We've been able to track it down to a change we did to /et

RE: Q: How do I get from the latest stable kernel version to the latest prepatch version ?

2001-03-26 Thread Hen, Shmulik
2:33 PM To: Hen, Shmulik Cc: 'LKML' Subject: Re: Q: How do I get from the latest stable kernel version to the late st prepatch version ? Hello Hen, Shmulik, Once you wrote about "Q: How do I get from the latest stable kernel version to the late st prepatch version ?": HS> Accordin

Q: How do I get from the latest stable kernel version to the latest prepatch version ?

2001-03-26 Thread Hen, Shmulik
Hi, According to http://www.kernel.org, the latest stable kernel version is 2.4.2. The latest prepatch version is 2.4.3-pre3. In order to get a full 2.4.3-pre8 kernel do I have to: A. download linux-2.4.2.tar.gz and all the patch-2.4.3-preX.gz and apply them in succession or, B. download linux-

RE: spinlock help

2001-03-08 Thread Hen, Shmulik
rqsave() relies on the location of 'd' in the stack and if 'd' was on the heap instead, it might get trashed. I would really like to hear your expert opinion on my assumption. Thanks, Shmulik. -Original Message- From: Andrew Morton [mailto:[EMAIL PROTEC

RE: spinlock help

2001-03-07 Thread Hen, Shmulik
PM To: Hen, Shmulik Subject: Re: spinlock help "Hen, Shmulik" wrote: > > How about if the same sequence occurred, but from two different drivers ? > > We've had some bad experience with this stuff. Our driver, which acts as an > intermediate net driver, would call t

RE: spinlock help

2001-03-07 Thread Hen, Shmulik
rom: Manoj Sontakke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 12:27 PM To: Hen, Shmulik Cc: '[EMAIL PROTECTED]'; Manoj Sontakke; [EMAIL PROTECTED] Subject: Re: spinlock help hi spin_lock_irq() andspin_lock_bh() can they be of any use to u? "Hen, Shmulik&

RE: spinlock help

2001-03-07 Thread Hen, Shmulik
e100 implements all sorts of hooks for our intermediate driver (kind of a co-development effort), so eepro100 is out of the question for us. Shmulik. -Original Message- From: Ofer Fryman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 12:31 PM To: 'Hen, Shmuli

RE: spinlock help

2001-03-07 Thread Hen, Shmulik
How about if the same sequence occurred, but from two different drivers ? We've had some bad experience with this stuff. Our driver, which acts as an intermediate net driver, would call the hard_start_xmit in the base driver. The base driver, wanting to block receive interrupts would issue a 'spi

RE: kernel memory allocations alignment

2001-02-04 Thread Hen, Shmulik
ssage- From: Manfred [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:56 PM To: Hen, Shmulik Cc: 'LKML' Subject: Re: kernel memory allocations alignment "Hen, Shmulik" wrote: > > When using kmalloc(size_t size), do I get a guaranty that the memory region >

kernel memory allocations alignment

2001-02-04 Thread Hen, Shmulik
Hello, When using kmalloc(size_t size), do I get a guaranty that the memory region allocated is aligned according to the size specified ? More to the point, if I call kmalloc for type int on an IA64 architecture is the pointer going to be 8 bytes aligned ? Shmulik Hen Software E

RE: catch 22 - porting net driver from 2.2 to 2.4

2000-11-20 Thread Hen, Shmulik
Thanks, Shmulik. -Original Message- From: Jeff Garzik [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 4:26 PM To: Hen, Shmulik Subject: Re: catch 22 - porting net driver from 2.2 to 2.4 "Hen, Shmulik" wrote: > > Where can I find info about that

Q: using kdb to trap memory modifications

2000-11-14 Thread Hen, Shmulik
hello, I'm trying to see when and how a certain variable is being modified and I wonder how to get kdb to do that for me. when I do 'insmod my_module' with my network driver, I noticed that dev->refcnt is 0 at first and gets increased to 1 after calling register_netdev. When I want to do 'rmmod

RE: catch 22 - porting net driver from 2.2 to 2.4

2000-11-13 Thread Hen, Shmulik
"Jeff Garzik" wrote: > Theoretically, if you call unregister_netdev from rmmon, it should grab > rtnl_lock and then complete the operation for you. If that doesn't work > for you, it sounds like you are not setting up, or cleaning up, > something correctly. > > Basically... it sounds like there

RE: catch 22 - porting net driver from 2.2 to 2.4

2000-11-13 Thread Hen, Shmulik
. ? Thanks, Shmulik. -Original Message- From: Jeff Garzik [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 7:37 PM To: Hen, Shmulik Cc: 'LNML'; 'LKML'; [EMAIL PROTECTED] Subject: Re: catch 22 - porting net driver from 2.2 to 2.4 do_ioctl

RE: catch 22 - porting net driver from 2.2 to 2.4

2000-11-12 Thread Hen, Shmulik
completing the operation when I use unregister_netdevice ? does module_exit run inside rtnl_lock too ? Shmulik. -Original Message- From: Jeff Garzik [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 7:37 PM To: Hen, Shmulik Cc: 'LNML'; 'LKML'; [EMA

RE: catch 22 - porting net driver from 2.2 to 2.4

2000-11-12 Thread Hen, Shmulik
and you don't get the "RTNL: assertion failed at devinet.c(775):inetdev_event" in 2.4.x ? the thing is I need to prevent Tx/Rx when a topology change is initiated from the ioctl (registering a virtual adapter is just one example), so they all share a single lock and I must use spin_lock_bh from t

catch 22 - porting net driver from 2.2 to 2.4

2000-11-09 Thread Hen, Shmulik
Hello, This is a bit long and I apologize (since there are kdb captures in it). We are developing an advanced networking services driver (loadable module) and are having problems porting it to work on 2.4.x kernel. The driver is supposed to provide services such as fault tolerance, load balancin

Locking Between User Context and Soft IRQs in 2.4.0

2000-10-30 Thread Hen, Shmulik
Hello, We are trying to port a network driver from 2.2.x to 2.4.x and have some question regarding locks. According to the kernel locking HOWTO, we have to take extra care when locking between user context threads and BH/tasklet/softIRQ, so we learned (the hard way ;-) that when running the ioctl

Multiple warnings when compiling network driver in 2.4.0-test9

2000-10-29 Thread Hen, Shmulik
Hello, While trying to compile a network driver for 2.4.0-test9 (+kdb-v1.5, configured for UP) I'm getting multiple warnings: /usr/src/linux/include/linux/sched.h:700: warning: can't inline call to `__mmdrop' /usr/src/linux/include/linux/sched.h:704: warning: called from here Thi

pointer to dev->hard_start_xmit() gets trashed in 2.4.0-test9

2000-10-25 Thread Hen, Shmulik
Hello, We are developing an advanced networking services loadable module and are having problems porting it to work on 2.4.x kernels. The driver is supposed to provide services such as fault tolerance, load balancing and link aggregation over a team of network adapters. It works OK on 2.2.x kerne

page fault problems porting a network driver to 2.4.x

2000-10-24 Thread Hen, Shmulik
Hello, We are developing an advanced networking services loadable module and are having problems porting it to work on 2.4.x kernels. The driver is supposed to provide services such as fault tolerance, load balancing and link aggregation over a team of network adapters. It works OK on 2.2.x kerne

Please ignore - RE: kallsyms - where can I find it and what does it do ?

2000-10-18 Thread Hen, Shmulik
-Original Message- From: Hen, Shmulik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 18, 2000 6:17 PM To: [EMAIL PROTECTED] Cc: 'Keith Owens' Subject: Q: kallsyms - where can I find it and what does it do ? Hello, I'm trying to build a new kernel with kdb sup

Q: kallsyms - where can I find it and what does it do ?

2000-10-18 Thread Hen, Shmulik
Hello, I'm trying to build a new kernel with kdb support and I keep getting an error from the make file: kallsyms pass 1 [make] /bin/sh: /sbin/kallsyms: No such file or directory error What is kallsyms and where can I get it from ? Here is what I have and what I did

Q: network drivers interface changes

2000-09-27 Thread Hen, Shmulik
Hello, Is there a good source of information that describes the changes in network driver interface between 2.2.x and 2.4.x kernels ? Thanks, Shmulik Hen Software Engineer Linux Advanced Networking Services Intel Network Communications Group Jeru