IXGB networl driver and locking

2007-05-15 Thread sivakumar.subramani
Hi all, Same lock is being used in ixgb_intr and ixgb_start. If we get Receive interrupt while processing Xmit (ixgb_start), Will the calling of ixgb_intr() handler be delayed as we will not be getting lock in ixgb_intr since it is already locked in ixgb_start. If it is the case, are we making i

RE: IXGB networl driver and locking

2007-05-15 Thread sivakumar.subramani
Thanks for the reply. Sorry garbled URL in the previous message. Actually I was talk between the ixgb_start (Transmit function not the Transmit interrupt handler) and rx interrupt handler function ( Where we send the packet up using if_input function). We are using same lock between transm

RE: netgraph with 10Gig interfaces

2006-08-17 Thread sivakumar.subramani
Hi Mark, I have bge and fxp interface on the system. I enabled the NETGRAPH by enabling the NETGRAPH in the config file and compiled the new kernel. Then, booted with the new kernel. fxp0: flags=8843 mtu 1500 options=8 inet6 fe80::290:27ff:fe85:8b8c%fxp0 prefixlen 64 scopeid 0x1

RE: netgraph with 10Gig interfaces

2006-08-18 Thread sivakumar.subramani
Hi Mark, >>This snippet is from a script, and the variables '$if1' and '$if2' >>are set to the interfaces. In effect, the 'connect' lines above are actually (for Neterion 10Gig driver): >>ngctl connect xge0: ngeth0:lower lower many0 ngctl connect xge1: ngeth0:lower lower many0 Can You please se

Testing on network interface - promisc mode.

2006-08-29 Thread sivakumar.subramani
Hi, I was using following steps to test the promisc mode on the network interface on my system on FreeBSD 6.1. - On machine A, I updated the arp table with the a dummy MAC address (aa:bb:cc:dd:ee:ff) for the remote interface on Machine B. #arp -s 17.1.1.110 aa:bb:cc:dd:ee:f -

Reading a configuration file from a driver code during intialization.

2006-09-13 Thread sivakumar.subramani
Hi all, For our driver we have following requirement. We have a configuration file that will be updated by the user and while loading the driver, the initialization code should read the configuration file to get the value and use it in the driver code. Is there is any way to read a configura

RE: Reading a configuration file from a driver code during intialization.

2006-09-14 Thread sivakumar.subramani
Hi Mark, As I mentioned in the previous mail, the main issue is to read a Configuration parameter file from driver code. I am already using Sysctl variables as mentioned below, Currently I have written a small kernel module that will create a sysctl variable and update with a default value.

How to access the values of the kenv variables in driver code?

2006-09-18 Thread sivakumar.subramani
Hi all, I would like to have some of the configuration parameters of my driver to be present as part of the /boot/device.hints file. After adding a variable I could see that variable and it's value as part of kevn's ouput. Can any one please let me know how to access the value of these varia

RE: TSO patch for current

2006-09-26 Thread sivakumar.subramani
Is the TSO patch is checked in to the current? Thanks, ~Siva -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Vogel Sent: Saturday, September 02, 2006 4:21 AM To: freebsd-net; freebsd-current Subject: RFC: TSO patch for current This is a patch for t

Query on SPIN Mutex in FreeBSD.

2006-10-06 Thread sivakumar.subramani
Hi, I have a query regarding the mutex lock in network driver, When I was browsing all network drivers in FreeBSD, I found none of the drivers are using MTX_SPIN, instead all of them are using MTX_DEF. When I read the man page of the mutex, it is mentioned that we need to use MTX_SPIN in pri

RE: RFC: TSO patch for current

2006-10-29 Thread sivakumar.subramani
Hi Jack, Do you the patch for 6.0 FreeBSD kernel? If so can you please send it me. I would like to test TSO on my system. Thanks, ~Siva -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Vogel Sent: Wednesday, September 06, 2006 3:53 AM To: Andre Oppe

Zoneli State / Nttcp client.

2006-11-02 Thread sivakumar.subramani
Hi, I have a script where we start a nttcp for some 500 nttcp client in back ground. After some time I could see the nttcp clients are listed in the TOP command as "Zoneli" state. Can any one please let me know what is meant by Zoneli state? Test Script: = count=1 while [ $count -le 2000

RE: RFC: TSO patch for current

2006-11-03 Thread sivakumar.subramani
Hi, I have a patch that I got from the mailing list. But it does not contain the changes that adds tso_segsz to mbuffer header structure. Can any one please send me the latest patch for TSO that contains stack changes? Thanks, ~Siva -Original Message- From: [EMAIL PROTECTED] [mailto:

Regarding Jumbo frame implementation in bge

2006-11-06 Thread sivakumar.subramani
Hi, In bge driver, we have BGE_JUMBO_FRAMELEN defined to 9018. if_bgereg.h:#define BGE_JUMBO_FRAMELEN 9018 This macro is used to allocate the memory for jumbo buffer. If I have a MTU size of 2000, still bge will allocate the jumbo buffer of size BGE_JUMBO_FRAMELEN. Instead can we make the size