Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 1998 21:41:32 -0400 (EDT)
From:      Bill Paul <wpaul@skynet.ctr.columbia.edu>
To:        bright@hotjobs.com (Alfred Perlstein)
Cc:        stable@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: Looking for feedback on xl (3c905/3c905B) driver
Message-ID:  <199808300141.VAA01492@skynet.ctr.columbia.edu>
In-Reply-To: <Pine.BSF.3.96.980829171012.8441A-100000@bright.fx.genx.net> from "Alfred Perlstein" at Aug 29, 98 05:20:09 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Of all the gin joints in all the towns in all the world, Alfred 
Perlstein had to walk into mine and say:

> works BEAUTIFULLY from a user standpoint, only odd thing is that when i
> enable a bpfilter program, trafshow/tcpdump it sorta locks up all my
> processes for a second.  it's odd in X as i can movei my mouse, but things
> like x11amp (linux emulation) lock up for a good 2-3 seconds, then all is
> well until the program "detaches" from the bpf:

This happens because changing the interface flags (via xl_ioctl(), when
setting the IFF_PROMISC flag) causes xl_init() to be invoked, and xl_init()
forcibly puts the interface into an initialized state, flushes out the
receive and transmit queues and resets the receiver and transmitter.
The receive and transmit reset appears to take some time, during which
NIC operations are temporarily suspended.

This is probably a bit much considering that the only thing that really
needs to be done is to set the RX filter bits to allow reception of all
frames. I think I inherited this behavior from the fxp driver, which is
what I used as a reference when I got started with driver writing. I'll
look into changing this.

Note that using BPF without setting the IFF_PROMISC flag shouldn't cause
any delay.

-Bill

-- 
=============================================================================
-Bill Paul            (212) 854-6020 | System Manager, Master of Unix-Fu
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
=============================================================================
 "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness"
=============================================================================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808300141.VAA01492>