summaryrefslogtreecommitdiffstats
path: root/sys/dev/lmc
Commit message (Collapse)AuthorAgeFilesLines
* Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself isglebius2013-09-111-1/+0
| | | | | | | | extremely outdated, and I doubt that it was ever used for ifnet drivers. It was used for AF_INET sockets in pre-FreeBSD time. Approved by: re (hrs) Sponsored by: Nginx, Inc.
* Add const qualifier to the dst parameter of the ifnet if_output method.glebius2013-04-262-2/+2
|
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-041-3/+3
| | | | malloc(9) flags in sys/dev.
* More conversions of drivers to use the PCI parent DMA tag.scottl2012-03-121-1/+2
|
* In r191367 the need for if_free_type() was removed and a new memberbrooks2011-11-111-1/+3
| | | | | | | | if_alloctype was used to store the origional interface type. Take advantage of this change by removing all existing uses of if_free_type() in favor of if_free(). MFC after: 1 Month
* Tag mbufs of all incoming frames or packets with the interface's FIBbz2011-07-031-0/+1
| | | | | | | | | setting (either default or if supported as set by SIOCSIFFIB, e.g. from ifconfig). Submitted by: Alexander V. Chernikov (melifaro ipfw.ru) Reviewed by: julian MFC after: 2 weeks
* Merge amd64 and i386 bus.h and move the resulting header to x86. Replacetijl2010-12-201-2/+2
| | | | | | | | | the original amd64 and i386 headers with stubs. Rename (AMD64|I386)_BUS_SPACE_* to X86_BUS_SPACE_* everywhere. Reviewed by: imp (previous version), jhb Approved by: kib (mentor)
* One more #ifdef fix for GCC 4.4.trasz2010-01-081-1/+1
|
* This driver has two modes, a netgraph mode and an ifnet mode. In thejhb2009-11-192-18/+15
| | | | | netgraph mode it used a private timer to drive the transmit watchdog. In the ifnet mode it used if_watchdog. Now it always uses the private timer.
* Unbreak build.attilio2009-05-302-2/+3
| | | | Pointy hat to: attilio
* When user_frac in the polling subsystem is low it is going to busy theattilio2009-05-301-1/+2
| | | | | | | | | | | | | | | | | | | | | CPU for too long period than necessary. Additively, interfaces are kept polled (in the tick) even if no more packets are available. In order to avoid such situations a new generic mechanism can be implemented in proactive way, keeping track of the time spent on any packet and fragmenting the time for any tick, stopping the processing as soon as possible. In order to implement such mechanism, the polling handler needs to change, returning the number of packets processed. While the intended logic is not part of this patch, the polling KPI is broken by this commit, adding an int return value and the new flag IFCAP_POLLING_NOCOUNT (which will signal that the return value is meaningless for the installed handler and checking should be skipped). Bump __FreeBSD_version in order to signal such situation. Reviewed by: emaste Sponsored by: Sandvine Incorporated
* The module name convention is foo, not if_foo.imp2009-05-151-5/+5
|
* Change if_output to take a struct route as its fourth argument in orderkmacy2009-04-162-2/+3
| | | | | | to allow passing a cached struct llentry * down to L2 Reviewed by: rwatson
* shutdown returns an intimp2009-02-052-2/+3
|
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-2/+2
| | | | MFC after: 3 months
* Make lmc(4) compile without INET6 defined[1]. While here make itbz2008-08-241-0/+6
| | | | | | | compile if there is no INET defined. Obtained from: zec (via p4 vimage branch)[1] MFC after: 3 months
* Rename several functions in if_lmc with potential name collisions withrwatson2008-07-052-33/+35
| | | | | | | | | global symbols, such as raw_input and raw_output, to have lmc_ prefixes. This doesn't affect actual functionality since the functions are static, but will limit the opportunities for current confusion and future difficulty. MFC after: 3 days
* Universally adopt most conventional spelling of acquire.rwatson2007-05-271-1/+1
|
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningrwatson2006-11-062-1/+8
| | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net>
* The contents pointed by ssi_cables[] is never changed so explicitlydelphij2006-07-211-1/+1
| | | | | | | declare it as const char * instead of char *. This change have no side impact to the code itself, and is a step forward to WARNS=6 truss(1).
* Cleanup: Use if_initname to set if_dname, if_dunit, and if_xname insteadbrooks2006-07-151-3/+1
| | | | of doing it by hand.
* add missed calls to bpf_peers_presentsam2006-06-021-1/+1
|
* Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-161-1/+0
| | | | unnecessary.
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andru2005-12-052-39/+39
| | | | custom kernels.
* Fix -Wundef from compiling the amd64 LINT.ru2005-12-041-58/+60
|
* - Don't include opt_global.h, it is always included implicitly.glebius2005-10-051-1/+3
| | | | - Include opt_device_polling.h
* For some utterly bizarre reason, sparc64 coerces PAGE_SIZE to be a longscottl2005-10-041-2/+3
| | | | | | instead of an int. No other FreeBSD architecture does this. Patch over this problem in the lmc driver. While I'm here, correct a mistake with DEVICE_POLLING.
* Reintroduce the lmc T1/E1/T3 WAN driver. This version is locked, supportsscottl2005-10-032-0/+8713
| | | | | | | | | | | interface polling, compiles on 64-bit platforms, and compiles on NetBSD, OpenBSD, BSD/OS, and Linux. Woo! Thanks to David Boggs for providing this driver. Altq, sppp, netgraph, and bpf are required for this driver to operate. Userland tools and man pages will be committed next. Submitted by: David Boggs
* Continue to remove drivers that don't compile and haven't compiled inimp2003-12-076-3829/+0
| | | | | | | | | | a long time: lmc The LAN Media Corp PCI WAN driver based on tulip. This driver hasn't compiled for 3 years since the PCI compat shims were removed, and Lan Media appears to have gone out of business. These cards appear to be rare (a recent search of ebay had no hits). Should someone wish to revive this driver, submitting patches to make it compile plus a testing report will bring it back.
* Use __FBSDID().obrien2003-08-244-4/+12
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-1/+1
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-7/+7
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Remove #include <pci.h> - there is no abuse of NPCI herepeter2002-07-211-1/+0
|
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-026-6/+6
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+2
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* Minor tweaks to get these to stop breaking LINT. They still dont workpeter2001-01-172-0/+10
| | | | and emit warnings, but we need to get the test coverage elsewhere.
* lmc_ifup() was not checking the state of the interface. This wouldarchie2001-01-101-3/+8
| | | | | | | | | cause the watchdog to (incorrectly) detect the interface state going from down to up one second after lmc_ifup() was called, causing lmc_ifup() to be called again, and resetting everything. Fix by checking the interface state within lmc_ifup(). Submitted by: Darren Croke <djc@packetdesign.com>
* Part 2 of the netgraph rewrite.julian2001-01-081-17/+16
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-20/+50
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-11/+5
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-3/+6
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-082-4/+2
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-252-11/+16
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Devices that are running at splimp MUST use ng_queue_data()julian2000-11-211-2/+1
| | | | | | | | | instead of ng_send_data(). The latter could lead to running the IP stack at splimp instead of splnet, (among other problems) (that MAY be safe but I wouldn't count on it). Noticed while preparing a new set of netgraph stuff.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Adjust to accomodate recent changes to the rcvdata and rcvmsgarchie2000-05-011-4/+6
| | | | function prototypes.
OpenPOWER on IntegriCloud