summaryrefslogtreecommitdiff
path: root/sys/dev/ce
AgeCommit message (Collapse)Author
2022-12-13retire ce(4) driverEd Maste
Sync serial (e.g. T1/T1/G.703) interfaces are obsolete, this driver includes obfuscated source, and has reported potential security issues. Differential Revision: https://reviews.freebsd.org/D33467
2022-12-13Add deprecation notices to ce,cp sync serial driversEd Maste
And the related sconfig utility. Sync serial (e.g. E1/T1) interfaces are obsolete, and nobody responded to several inquires on the mailing lists about use of these drivers. Relnotes: Yes MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23928
2022-05-09ce: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin
2022-04-12Remove checks for __CC_SUPPORTS__INLINE assuming it is always true.John Baldwin
All supported compilers (modern versions of GCC and clang) support this. PR: 263102 (exp-run) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34802
2022-04-12ce,cp: Remove pointless checks for <sys/cdefs.h>John Baldwin
Both of these headers check for _SYS_CDEFS_H_ after including <sys/param.h> which itself includes <sys/cdefs.h>. PR: 263102 (exp-run) Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D34795
2022-04-09ce(4): Remove a double word in a source code commentGordon Bergling
- s/for for/for/ MFC after: 3 days
2021-10-22Retire synchronous PPP kernel driver sppp(4).Gleb Smirnoff
The last two drivers that required sppp are cp(4) and ce(4). These devices are still produced and can be purchased at Cronyx <http://cronyx.ru/hardware/wan.html>. Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no longer support FreeBSD officially. Later they have dropped support for Linux drivers to. As of mid-2020 they don't even have a developer to maintain their Windows driver. However, their support verbally told me that they could provide aid to a FreeBSD developer with documentaion in case if there appears a new customer for their devices. These drivers have a feature to not use sppp(4) and create an interface, but instead expose the device as netgraph(4) node. Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on top of the node and get your synchronous PPP. Alternatively you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC. Actually, last time I used cp(4) back in 2004, using netgraph(4) instead of sppp(4) was already the right way to do. Thus, remove the sppp(4) related part of the drivers and enable by default the negraph(4) part. Further maintenance of these drivers in the tree shouldn't be a big deal. While doing that, remove some cruft and enable cp(4) compilation on amd64. The ce(4) for some unknown reason marks its internal DDK functions with __attribute__ fastcall, which most likely is safe to remove, but without hardware I'm not going to do that, so ce(4) remains i386-only. Reviewed by: emaste, imp, donner Differential Revision: https://reviews.freebsd.org/D32590 See also: https://reviews.freebsd.org/D23928
2021-08-14Fix a few typos in source code commentsGordon Bergling
- s/procesing/processing/ MFC after: 5 days
2021-03-26ce: unifdef NPCI alsoEd Maste
After f9839a42ee5d NPCI is always 1. Reported by: imp
2021-03-25ce: remove long-obsolete FreeBSD version compatibilityEd Maste
Mechanical change via unifdef.
2020-09-01ce: clean up empty lines in .c and .h filesMateusz Guzik
Notes: svn path=/head/; revision=365214
2020-03-20Use a separate copy of machdep.h in cp and ce driversEd Maste
Previously they included sys/dev/cx/machdep.h, but the cx driver was retired in r359178. These drivers haven't had real development for a decade or more so there's no real benefit in sharing this file; just copy it to the ce and cp subdirs. Notes: svn path=/head/; revision=359181
2017-02-23dev/ce: double assignment.Pedro F. Giffuni
The code is not operational right now so just comment away an obviously useless assignment. Fix some typos while here. Found with: coccinelle (da.cocci) Notes: svn path=/head/; revision=314142
2017-02-20sys/dev: Replace zero with NULL for pointers.Pedro F. Giffuni
Makes things easier to read, plus architectures may set NULL to something different than zero. Found with: devel/coccinelle MFC after: 3 weeks Notes: svn path=/head/; revision=313982
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-22As <machine/pmap.h> is included from <vm/pmap.h>, there is no need toSvatopluk Kraus
include it explicitly when <vm/pmap.h> is already included. Reviewed by: alc, kib Differential Revision: https://reviews.freebsd.org/D5373 Notes: svn path=/head/; revision=295880
2015-05-22CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenJung-uk Kim
years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks Notes: svn path=/head/; revision=283291
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-28Convert most BPF_TAP users to BPF_MTAP.Alexander V. Chernikov
MFC after: 2 weeks Notes: svn path=/head/; revision=272266
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
2014-09-19Mechanically convert to if_inc_counter().Gleb Smirnoff
Notes: svn path=/head/; revision=271849
2014-09-10Replace local copy-and-paste implementations of printmbuf() in severalRobert Watson
device drivers with calls to the centralised m_print() implementation. While the formatting and output details differ a little, the content is essentially the same, and it is unlikely anyone has used this debugging output in some time. This change reduces awareness of mbuf cluster allocation (and, especially, the M_EXT flag) outside of the mbuf allocator, which will make it easier to refine the external storage mechanism without disrupting drivers in the future. Style bugs are preserved. Reviewed by: bz, glebius MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=271373
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-01-30Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵Sofian Brabez
device_method_t arrays Reviewed by: cognet Approved by: cognet Notes: svn path=/head/; revision=246128
2012-12-04Mechanically substitute flags from historic mbuf allocator withGleb Smirnoff
malloc(9) flags in sys/dev. Notes: svn path=/head/; revision=243857
2011-12-29Fix clang warnings in sys/dev/ce/if_ce.c and sys/dev/cp/if_cp.c,Dimitry Andric
using jkim's last patch (reviewed by bde) from here: http://docs.freebsd.org/cgi/mid.cgi?201010141558.03154.jkim MFC after: 1 week Notes: svn path=/head/; revision=228963
2010-10-13Revert r213793.Rui Paulo
Notes: svn path=/head/; revision=213795
2010-10-13Don't do a logical AND of the result of strcmp() with a constant.Rui Paulo
Found with: clang Notes: svn path=/head/; revision=213793
2010-05-03Add new tunable 'net.link.ifqmaxlen' to set default send interfaceMaxim Sobolev
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 Notes: svn path=/head/; revision=207554
2009-11-17Always use a private timer instead of if_watchdog and if_timer to driveJohn Baldwin
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. Notes: svn path=/head/; revision=199407
2009-06-09Use new spelling of the NG_*LEN constants.Warner Losh
Notes: svn path=/head/; revision=193813
2009-02-15Remove debug.ce.mpsafenet: we no longer support running the networkRobert Watson
stack with conditional Giant acquisition, and IFF_NEEDSGIANT will be removed in the near future. Notes: svn path=/head/; revision=188663
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-09-27Replace all calls to minor() with dev2unit().Ed Schouten
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 Notes: svn path=/head/; revision=183397
2008-07-01Fix instances of bogus #elsif directive.Diomidis Spinellis
Found by: CScout MFC after: 2 weeks Notes: svn path=/head/; revision=180147
2008-06-30Do not set IFF_DEBUG directly from the driver.Roman Kurakin
MFC after: 1 month. Notes: svn path=/head/; revision=180132
2007-07-27First in a series of changes to remove the now-unused Giant compatibilityRobert Watson
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) Notes: svn path=/head/; revision=171613
2007-03-25Remove ancient preprocessor code. Fix module compilation.Roman Kurakin
Requested by: n_hibma Notes: svn path=/head/; revision=167882
2007-03-21Don't call bus_deactivate_resource() explicitly before callingYoshihiro Takahashi
bus_release_resource(). This is needed for pc98 by upcoming nexus related change. Notes: svn path=/head/; revision=167753
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-12-29Various bpf(4) related fixes to catch places up to the new bpf(4)John Baldwin
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) Notes: svn path=/head/; revision=165632
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-03-01Update low-level code. (to version 1.4)Roman Kurakin
Obtained from: Cronyx Engineering MFC after: 3 days Notes: svn path=/head/; revision=156143
2006-02-03Fix compilation with -Wundef (NBPF is undefined on FreeBSD >4).Ruslan Ermilov
Notes: svn path=/head/; revision=155265
2006-01-30Fix forward variable declaration.Roman Kurakin
Notes: svn path=/head/; revision=155065
2006-01-27Initial import of ce(4) driver for Cronyx Tau-PCI/32 adapters.Roman Kurakin
Not yet connected to the build. Notes: svn path=/head/; revision=154899