#
c81df1a6 |
| 31-May-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Let fxp_release take a device_t directly and change some device_printf to if_printf. This allows the elimination of fxp_softc.dev. Also add a missing '\n' in fxp_attach.
Submitted-by: Sepherosa Zieh
Let fxp_release take a device_t directly and change some device_printf to if_printf. This allows the elimination of fxp_softc.dev. Also add a missing '\n' in fxp_attach.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
show more ...
|
#
de1795b2 |
| 31-May-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Remove __inline hints, let the compiler figure out the details. This prevents GCC 3.4.4 from inline fxp_scb_wait, but since we access external memory anyway, the calling overhead doesn't matter.
|
#
af340cf5 |
| 31-May-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Use PCI accessor functions instead of messing directly with the config space. Use if_printf in fxp_watchdog. Don't hardware interface name for if_initname, use the device name. Remove bogus source pa
Use PCI accessor functions instead of messing directly with the config space. Use if_printf in fxp_watchdog. Don't hardware interface name for if_initname, use the device name. Remove bogus source path and include of machine/clock.h.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
show more ...
|
#
50503f0f |
| 29-May-2005 |
Jeffrey Hsu <hsu@dragonflybsd.org> |
Deprecate MCLGET() in favor of m_getcl() or m_getl() in order to take advantage of cluster caching.
|
#
20de928f |
| 27-May-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Fall through to ether_ioctl and merge those cases which just called it.
|
#
9c095379 |
| 25-May-2005 |
Matthew Dillon <dillon@dragonflybsd.org> |
Rewrite the polling code. Instead of trying to do fancy polling enablement from inside the IF interrupt itself, which creates a headache in the code, simply allow IFF_POLLING to be set and cleared v
Rewrite the polling code. Instead of trying to do fancy polling enablement from inside the IF interrupt itself, which creates a headache in the code, simply allow IFF_POLLING to be set and cleared via ifconfig. This greatly simplifies both the networking code and the polling code and allows polling to be enabled and disabled at will on a per-network-interface basis.
* Drivers no longer have to have polling checks in the interrupt path. * An if_poll function vector has been added. Polling is supported if the driver initializes the vector. * Registration command added to the poll function command list. * Driver code for registration and deregistration is now greatly simplified.
The kernel polling code no longer randomly turns off the polling bit if an interface goes down or is reset.
Remove IFCAP_POLLING, it serves no purpose.
Fix a couple of bugs in the serializer code. Add a warning in nexus_setup_intr if a driver tries to specify a serializer and an SPL. A driver can specify one or the other, not both.
Convert the EM driver to use the new serializer API instead of SPLs.
Add ifconfig poll and ifconfig -poll support to ifconfig, and fix bugs in the rtsock code that only returned the low 16 bits of the interface flags so ifconfig properly reports when polling mode is turned on for an interface.
NOTE to people using polling. You must first enable polling via kern.polling.enable, and then may specify the 'poll' directive in ifconfig to enable it on a per interface basis. If IFF_POLLING refuses to be set, the device does not support polling.
show more ...
|
#
e9cb6d99 |
| 24-May-2005 |
Matthew Dillon <dillon@dragonflybsd.org> |
Get rid of bus_{disable,enable}_intr(), it wasn't generic enough for our needs.
Implement some generic atomic.h functions to aid in the implementation of a low level mutex.
Implement a generic low
Get rid of bus_{disable,enable}_intr(), it wasn't generic enough for our needs.
Implement some generic atomic.h functions to aid in the implementation of a low level mutex.
Implement a generic low level sleep-mutex serializer, kern/lwkt_serialize.c. The serializer is designed to be a replacement for SPL calls but may also be used for other very low level work (e.g. lockmgr interlocks).
Add a serializer argument to BUS_SETUP_INTR(). When non-NULL, the interrupt handler will no longer be protected by an SPL so e.g. spl*() will no longer protect against that device's interrupts.
The IF queueing and dequeueing mechanisms may no longer depend on outside SPL state because network driver interrupt handlers are no longer required to enter splnet(). Use critical sections for the moment. The IFQ and IFF_OACTIVE interactions are not yet MP safe.
show more ...
|
#
4e6d744d |
| 24-May-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Use bus_alloc_resource_any when possible.
|
#
469ac2dc |
| 05-May-2005 |
Sascha Wildner <swildner@dragonflybsd.org> |
Remove DEC Alpha support.
|
#
2971d388 |
| 19-Feb-2005 |
Matthew Dillon <dillon@dragonflybsd.org> |
Add support for the Intel 82562ET/EZ/GT/GZ (ICH6/ICH6R) Pro/100 VE Ethernet.
Submitted-by: Chuck Tuffli <chuck_tuffli@agilent.com>
|
#
4dbb2aca |
| 12-Feb-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Mark it as ALTQ ready too.
|
#
cb96d2fc |
| 12-Feb-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
ALTQ support.
|
#
3dc849fa |
| 31-Jan-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Remove unused compat code like FXP_LOCK, a fake struct mtx. Remove FXP_UNIT. Don't define sc_if, use the arpcom entry directly. Use PCIR_BAR instead of PCIR_MAPS.
|
#
7600679e |
| 23-Jan-2005 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Use BPF_TAP and BPF_MTAP instead of the expanded versions where possible.
|
#
f3f9ebbd |
| 24-Dec-2004 |
Jeroen Ruigrok/asmodai <asmodai@dragonflybsd.org> |
Add ICH5 10/100 Mbit interface id.
Submitted by: Kristian Vlaardingerbroek
|
#
8c4b6601 |
| 17-Sep-2004 |
Matthew Dillon <dillon@dragonflybsd.org> |
missing log message for last commit: Rearrange the mbuf clearing code in the tx ring scan so we do not have to make major assumptions with regard to side effects / blocking effects of m_freem().
|
#
acaaa437 |
| 17-Sep-2004 |
Matthew Dillon <dillon@dragonflybsd.org> |
*** empty log message ***
|
#
a1f4b801 |
| 14-Sep-2004 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
timeout/untimeout ==> callout_*
|
#
3013ac0e |
| 23-Jul-2004 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Unify the input handling of the low-level network stack by introducing a new field if_input in struct ifnet.
Initialize if_input and if_output in the low-level _ifattach routines.
Make the _output
Unify the input handling of the low-level network stack by introducing a new field if_input in struct ifnet.
Initialize if_input and if_output in the low-level _ifattach routines.
Make the _output and _input routines static, they are now called via (*ifp->if_input) and (*ifp->if_output) accordingly. The exception is ether_input which is still used with the second argument, the pointer to the Ethernet header instead of always taking it from the mbuf.
Move the if_attach and bpfattach from the devices into fddi_ifattach, atm_ifattach.
Remove the first argument to VLAN_INPUT_TAG, the pointer to the Ethernet header. Expect it at the beginning of the mbuf.
Adjust the network for the changed API. Exceptions are wl(4), le(4), ie(4), el(4), ed(4) and de(4), because they use a on-stack Ethernet header. Another exception is the ATM stack, which uses a fourth argument to atm_input.
Inspired-by: NetBSd net/if.h, rev 1.36
show more ...
|
#
267caeeb |
| 02-Jul-2004 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Announce MAC address in ether_ifattach, not in each NIC indepently.
aue(4), axe(4), cue(4), kue(4), pcn(4): - Don't bcopy the MAC address, ether_ifattach does it. lnc(4): - sc->arpcom.ac_if ==> ifp
Announce MAC address in ether_ifattach, not in each NIC indepently.
aue(4), axe(4), cue(4), kue(4), pcn(4): - Don't bcopy the MAC address, ether_ifattach does it. lnc(4): - sc->arpcom.ac_if ==> ifp in lnc_attach_common, more changes coming. awi(4): - Nuke local copy of ether_sprintf, use %6D directly. - Use if_printf instead of printf("%s: ...", sc->sc_dev.dv_xname, ...).
show more ...
|
#
74f1caca |
| 02-Jun-2004 |
Eirik Nygaard <eirikn@dragonflybsd.org> |
Change mbug allocation flags from M_ to MB_ to avoid confusion with malloc flags.
Requested by: Jeffrey Hsu
|
#
46f25451 |
| 16-Apr-2004 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
Move IFF_PROMISC and IFF_POLLING from ifnet.ipending to ifnet.if_flags, where they belong. Consistently use the higher bits of if_flags, not ipending.
|
#
c5541aee |
| 07-Apr-2004 |
Matthew Dillon <dillon@dragonflybsd.org> |
General netif malloc() flags cleanup. Use M_INTWAIT or M_WAITOK instead of M_NOWAIT. Generally use M_WAITOK in the attach code or ioctl code typically called from userland, and M_INTWAIT for routin
General netif malloc() flags cleanup. Use M_INTWAIT or M_WAITOK instead of M_NOWAIT. Generally use M_WAITOK in the attach code or ioctl code typically called from userland, and M_INTWAIT for routines that might be called during non-boot operations. Since M*WAIT flags guarentee a non-NULL result, also remove now-unnecessary NULL checks.
show more ...
|
#
bd4539cc |
| 23-Mar-2004 |
Jeffrey Hsu <hsu@dragonflybsd.org> |
Eliminate use of curthread in if_ioctl functions by passing down the ucred structure.
|
#
0a8b5977 |
| 14-Mar-2004 |
Joerg Sonnenberger <joerg@dragonflybsd.org> |
BPF has been in the kernel for ages and is supported by all NICs but I4B.
This removes the second argument of ether_ifattach and ether_ifdetach as done by sam in FreeBSD's rev. 1.130 of net/if_ether
BPF has been in the kernel for ages and is supported by all NICs but I4B.
This removes the second argument of ether_ifattach and ether_ifdetach as done by sam in FreeBSD's rev. 1.130 of net/if_ethersubr.c.
Add an argument for the link layer address to ether_ifattach as done by is in NetBSD's rev 1.21.4.1 of the same file.
Adjust if_ef.c based on FreeBSD's version of that file.
Remove the now unused ETHER_BPF_[UN]SUPPORTED define from ethernet.h.
show more ...
|