summaryrefslogtreecommitdiffstats
path: root/sys/dev/ce
Commit message (Collapse)AuthorAgeFilesLines
* Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵sbz2013-01-301-1/+1
| | | | | | | device_method_t arrays Reviewed by: cognet Approved by: cognet
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-041-2/+2
| | | | malloc(9) flags in sys/dev.
* Fix clang warnings in sys/dev/ce/if_ce.c and sys/dev/cp/if_cp.c,dim2011-12-291-1/+3
| | | | | | | | using jkim's last patch (reviewed by bde) from here: http://docs.freebsd.org/cgi/mid.cgi?201010141558.03154.jkim MFC after: 1 week
* Revert r213793.rpaulo2010-10-131-1/+1
|
* Don't do a logical AND of the result of strcmp() with a constant.rpaulo2010-10-131-1/+1
| | | | Found with: clang
* Add new tunable 'net.link.ifqmaxlen' to set default send interfacesobomax2010-05-031-4/+4
| | | | | | | | | | queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month
* Always use a private timer instead of if_watchdog and if_timer to drivejhb2009-11-171-45/+25
| | | | | | | the transmit watchdog. These drivers already used a private timer when compiled to use Netgraph. This change just makes them always use the private timer. Note that these drivers do not compile and are disconnected from the build due to TTY changes.
* Use new spelling of the NG_*LEN constants.imp2009-06-091-2/+2
|
* Remove debug.ce.mpsafenet: we no longer support running the networkrwatson2009-02-151-41/+7
| | | | | stack with conditional Giant acquisition, and IFF_NEEDSGIANT will be removed in the near future.
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-3/+2
| | | | MFC after: 3 months
* Replace all calls to minor() with dev2unit().ed2008-09-271-3/+3
| | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib
* Fix instances of bogus #elsif directive.dds2008-07-011-21/+21
| | | | | Found by: CScout MFC after: 2 weeks
* Do not set IFF_DEBUG directly from the driver.rik2008-06-302-7/+13
| | | | MFC after: 1 month.
* First in a series of changes to remove the now-unused Giant compatibilityrwatson2007-07-271-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | framework for non-MPSAFE network protocols: - Remove debug_mpsafenet variable, sysctl, and tunable. - Remove NET_NEEDS_GIANT() and associate SYSINITSs used by it to force debug.mpsafenet=0 if non-MPSAFE protocols are compiled into the kernel. - Remove logic to automatically flag interrupt handlers as non-MPSAFE if debug.mpsafenet is set for an INTR_TYPE_NET handler. - Remove logic to automatically flag netisr handlers as non-MPSAFE if debug.mpsafenet is set. - Remove references in a few subsystems, including NFS and Cronyx drivers, which keyed off debug_mpsafenet to determine various aspects of their own locking behavior. - Convert NET_LOCK_GIANT(), NET_UNLOCK_GIANT(), and NET_ASSERT_GIANT into no-op's, as their entire behavior was determined by the value in debug_mpsafenet. - Alias NET_CALLOUT_MPSAFE to CALLOUT_MPSAFE. Many remaining references to NET_.*_GIANT() and NET_CALLOUT_MPSAFE are still present in subsystems, and will be removed in followup commits. Reviewed by: bz, jhb Approved by: re (kensmith)
* Remove ancient preprocessor code. Fix module compilation.rik2007-03-251-9/+1
| | | | Requested by: n_hibma
* Don't call bus_deactivate_resource() explicitly before callingnyan2007-03-211-1/+0
| | | | | bus_release_resource(). This is needed for pc98 by upcoming nexus related change.
* 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@
* Various bpf(4) related fixes to catch places up to the new bpf(4)jhb2006-12-291-4/+4
| | | | | | | | | | | | | semantics. - Stop testing bpf pointers for NULL. In some cases use bpf_peers_present() and then call the function directly inside the conditional block instead of the macro. - For places where the entire conditional block is the macro, remove the test and make the macro unconditional. - Use BPF_MTAP() in if_pfsync on FreeBSD instead of an expanded version of the old semantics. Reviewed by: csjp (older version)
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningrwatson2006-11-061-22/+65
| | | | | | | | | | | | | 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>
* Update low-level code. (to version 1.4)rik2006-03-012-4229/+4247
| | | | | Obtained from: Cronyx Engineering MFC after: 3 days
* Fix compilation with -Wundef (NBPF is undefined on FreeBSD >4).ru2006-02-031-1/+4
|
* Fix forward variable declaration.rik2006-01-301-61/+68
|
* Initial import of ce(4) driver for Cronyx Tau-PCI/32 adapters.rik2006-01-276-0/+9271
Not yet connected to the build.
OpenPOWER on IntegriCloud