net: clean up empty lines in .c and .h files
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorpro
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
show more ...
Change the callout to supply -1 to indicate we are not changingCPU, also add protection against invalid CPU's as well assplit c_flags and c_iflags so that if a user plays with the activeflag (the
Change the callout to supply -1 to indicate we are not changingCPU, also add protection against invalid CPU's as well assplit c_flags and c_iflags so that if a user plays with the activeflag (the one expected to be played with by callers in MPSAFE) withouta lock, it won't adversely affect the callout system by causing a corruptlist. This also means that all callers need to use the macros and *not*play with the falgs directly (like netgraph used to).Differential Revision: htts://reviews.freebsd.org/D1894Reviewed by: .. timed out but looked at by jhb, imp, adrian hselasky tested by hiren and netflix.Sponsored by: Netflix Inc.
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid testingM_EXT itself. Update all callers to use the return value.With this change, very few network device drivers remain aware ofM_EXT; the primary exceptions lie in mbuf-chain pretty printers fordebugging, and in a few cases, custom mbuf and cluster allocationimplementations.NB: This is a difficult-to-test change as it touches many drivers forwhich I don't have physical devices. Instead we've gone for intensivereview, but further post-commit review would definitely be appreciatedto spot errors where changes could not easily be made mechanically,but were largely mechanical in nature.Differential Revision: https://reviews.freebsd.org/D1440Reviewed by: adrian, bz, gnnSponsored by: EMC / Isilon Storage Division
Mechanically remove the last stray remains of spl* calls from net*/*.They have been Noop's for a long time now.
Node constructor methods are supposed to be called in syscallcontext always. Convert nodes to consistently use M_WAITOK flagfor memory allocation.Reviewed by: julian
Use the ISO standard function variable vs. a GCC'ism.
/* -> /*- for license, minor formatting changes
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.This is done to keep both versions in RELENG_5 and support both APIs.Reviewed by: scottlApproved by: julian (mentor),
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.This is done to keep both versions in RELENG_5 and support both APIs.Reviewed by: scottlApproved by: julian (mentor), implicitly
Cancel pending timeout before scheduling a new one. This fixesitem leak, I've introduced with previous change.Approved by: julian (mentor)
Adapt to the new ng_timeout/ng_untimeout arguments. These now usethe callout instead of the timeout interface.Submitted by: glebius
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>MFC after: 1 week
Netgraph part of the NgATM signalling AA layer. These nodes canalso be used as a general-purpose transport protocol above anypacket layer (IP, UDP).