summaryrefslogtreecommitdiff
path: root/sys/dev/lmc
AgeCommit message (Collapse)Author
2018-05-01Retire lmc(4)Ed Maste
This driver supports legacy, 32-bit PCI devices, and had an ambiguous license. Supported devices were already reported to be rare in 2003 (when an earlier version of the driver was removed in r123201). Reviewed by: rgrimes Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15245 Notes: svn path=/head/; revision=333144
2018-04-24Add deprecation notice for lmc(4)Ed Maste
We intend to remove support before FreeBSD 12 is branched. These are available only as 32-bit PCI devices. The driver has an ambiguous license and I have not been successful in contacting the driver's author in order to address this. The planned deprecation has been announced on -current and -stable; if we receive feedback that the driver is still useful and we are able to resolve the license issue this deprecation notice can be reverted. Reviewed by: bapt, brooks, imp, rgrimes MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15182 Notes: svn path=/head/; revision=332966
2017-12-22SPDX: Reverse License ID tags from the lmc driver.Pedro F. Giffuni
While the BSD-2-Clause license is there, the GPLv2 is also present. I am unsure of the implications of having both licenses as they are here. I'll just leave it untagged and open for interpretation. Notes: svn path=/head/; revision=327086
2017-12-06Garbage collect IFCAP_POLLING_NOCOUNT. It wasn't used since veryGleb Smirnoff
beginning of polling(4). The module always ignored return value from driver polling handler. Notes: svn path=/head/; revision=326642
2017-11-27sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
2016-10-01lmc(4): fix the build without the bpf deviceEric van Gyzen
"make buildkernel" now works with and without "device bpf". Reported by: Dave Mischler <dave@mischler.com> MFC after: 3 days Sponsored by: Dell EMC Notes: svn path=/head/; revision=306567
2016-05-04s/struct device */device_t/gAdrian Chadd
Submitted by: kmacy Notes: svn path=/head/; revision=299048
2016-05-03sys/dev: minor spelling fixes.Pedro F. Giffuni
Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
2016-02-19Replace several bus_alloc_resource() calls using default arguments with ↵Justin Hibbits
bus_alloc_resource_any() Since these calls only use default arguments, bus_alloc_resource_any() is the right call. Differential Revision: https://reviews.freebsd.org/D5306 Notes: svn path=/head/; revision=295790
2015-02-17Remove compat code for pre-FreeBSD 7 systems.Warner Losh
Notes: svn path=/head/; revision=278881
2015-01-06In order to reduce use of M_EXT outside of the mbuf allocator andRobert Watson
socket-buffer implementations, introduce a return value for MCLGET() (and m_cljget() that underlies it) to allow the caller to avoid testing M_EXT itself. Update all callers to use the return value. With this change, very few network device drivers remain aware of M_EXT; the primary exceptions lie in mbuf-chain pretty printers for debugging, and in a few cases, custom mbuf and cluster allocation implementations. NB: This is a difficult-to-test change as it touches many drivers for which I don't have physical devices. Instead we've gone for intensive review, but further post-commit review would definitely be appreciated to spot errors where changes could not easily be made mechanically, but were largely mechanical in nature. Differential Revision: https://reviews.freebsd.org/D1440 Reviewed by: adrian, bz, gnn Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=276750
2014-09-25- Provide lmc_get_counter() to return counters that are not collected,Gleb Smirnoff
but taken from hardware. - Mechanically convert to if_inc_counter() the rest of counters. Notes: svn path=/head/; revision=272095
2014-09-25Run through unifdef(1) with slight hand-editing after. It is obvious,Gleb Smirnoff
that the driver is not going to be ever improved in terms of hardware support, it is going to be only maintained as our kernel APIs change. Carrying all the compatibility with ancient versions of NetBSD, OpenBSD, Linux and BSDI, as well as obsoleted FreeBSD versions has no reason. Notes: svn path=/head/; revision=272094
2014-09-19Remove ifq_drops from struct ifqueue. Now queue drops are accounted inGleb Smirnoff
struct ifnet if_oqdrops. Some netgraph modules used ifqueue w/o ifnet. Accounting of queue drops is simply removed from them. There were no API to read this statistic. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=271856
2013-10-28Quiesce warning -Wmissing-variable-declarations from buildworld, which isSean Bruno
slightly unnerving. In file included from ioctl.c:48: /var/tmp/home/sbruno/bsd/head/tmp/usr/include/dev/lmc/if_lmc.h:939:13: warning: no previous extern declaration for non-static variable 'ssi_cables' [-Wmissing-variable-declarations] const char *ssi_cables[] = Notes: svn path=/head/; revision=257236
2013-10-26The r48589 promised to remove implicit inclusion of if_var.h soon. PrepareGleb Smirnoff
to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=257176
2013-09-11 Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself isGleb Smirnoff
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. Notes: svn path=/head/; revision=255471
2013-04-26Add const qualifier to the dst parameter of the ifnet if_output method.Gleb Smirnoff
Notes: svn path=/head/; revision=249925
2012-12-04Mechanically substitute flags from historic mbuf allocator withGleb Smirnoff
malloc(9) flags in sys/dev. Notes: svn path=/head/; revision=243857
2012-03-12More conversions of drivers to use the PCI parent DMA tag.Scott Long
Notes: svn path=/head/; revision=232874
2011-11-11In r191367 the need for if_free_type() was removed and a new memberBrooks Davis
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 Notes: svn path=/head/; revision=227459
2011-07-03Tag mbufs of all incoming frames or packets with the interface's FIBBjoern A. Zeeb
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 Notes: svn path=/head/; revision=223741
2010-12-20Merge amd64 and i386 bus.h and move the resulting header to x86. ReplaceTijl Coosemans
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) Notes: svn path=/head/; revision=216592
2010-01-08One more #ifdef fix for GCC 4.4.Edward Tomasz Napierala
Notes: svn path=/head/; revision=201799
2009-11-19This driver has two modes, a netgraph mode and an ifnet mode. In theJohn Baldwin
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. Notes: svn path=/head/; revision=199538
2009-05-30Unbreak build.Attilio Rao
Pointy hat to: attilio Notes: svn path=/head/; revision=193105
2009-05-30When user_frac in the polling subsystem is low it is going to busy theAttilio Rao
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 Notes: svn path=/head/; revision=193096
2009-05-15The module name convention is foo, not if_foo.Warner Losh
Notes: svn path=/head/; revision=192147
2009-04-16Change if_output to take a struct route as its fourth argument in orderKip Macy
to allow passing a cached struct llentry * down to L2 Reviewed by: rwatson Notes: svn path=/head/; revision=191148
2009-02-05shutdown returns an intWarner Losh
Notes: svn path=/head/; revision=188178
2008-10-23Retire the MALLOC and FREE macros. They are an abomination unto style(9).Dag-Erling Smørgrav
MFC after: 3 months Notes: svn path=/head/; revision=184205
2008-08-24Make lmc(4) compile without INET6 defined[1]. While here make itBjoern A. Zeeb
compile if there is no INET defined. Obtained from: zec (via p4 vimage branch)[1] MFC after: 3 months Notes: svn path=/head/; revision=182112
2008-07-05Rename several functions in if_lmc with potential name collisions withRobert Watson
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 Notes: svn path=/head/; revision=180304
2007-05-27Universally adopt most conventional spelling of acquire.Robert Watson
Notes: svn path=/head/; revision=170035
2007-02-23o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati
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@ Notes: svn path=/head/; revision=166901
2006-11-06Sweep kernel replacing suser(9) calls with priv(9) calls, assigningRobert Watson
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> Notes: svn path=/head/; revision=164033
2006-07-21The contents pointed by ssi_cables[] is never changed so explicitlyXin LI
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). Notes: svn path=/head/; revision=160541
2006-07-15Cleanup: Use if_initname to set if_dname, if_dunit, and if_xname insteadBrooks Davis
of doing it by hand. Notes: svn path=/head/; revision=160375
2006-06-02add missed calls to bpf_peers_presentSam Leffler
Notes: svn path=/head/; revision=159183
2006-05-16Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp
unnecessary. Notes: svn path=/head/; revision=158651
2005-12-05Fix -Wundef warnings found when compiling i386 LINT, GENERIC andRuslan Ermilov
custom kernels. Notes: svn path=/head/; revision=153110
2005-12-04Fix -Wundef from compiling the amd64 LINT.Ruslan Ermilov
Notes: svn path=/head/; revision=153084
2005-10-05- Don't include opt_global.h, it is always included implicitly.Gleb Smirnoff
- Include opt_device_polling.h Notes: svn path=/head/; revision=150967
2005-10-04For some utterly bizarre reason, sparc64 coerces PAGE_SIZE to be a longScott Long
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. Notes: svn path=/head/; revision=150899
2005-10-03Reintroduce the lmc T1/E1/T3 WAN driver. This version is locked, supportsScott Long
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 Notes: svn path=/head/; revision=150849
2003-12-07Continue to remove drivers that don't compile and haven't compiled inWarner Losh
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. Notes: svn path=/head/; revision=123201
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2003-08-22Prefer new location of pci include files (which have only been in theWarner Losh
tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119291
2003-02-19Back out M_* changes, per decision of the TRB.Warner Losh
Approved by: trb Notes: svn path=/head/; revision=111119
2003-01-21Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623