Fix misspellings of transmitter/transmittedReviewed by: emaste, bcrSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D16025
Use __builtin for various mem* and b* (e.g. bzero) routines.Some of the routines were using artificially limited builtin already,drop the explicit limit.The use of builtins allows quite often al
Use __builtin for various mem* and b* (e.g. bzero) routines.Some of the routines were using artificially limited builtin already,drop the explicit limit.The use of builtins allows quite often allows the compiler to elide the callor most zeroing to begin with. For instance, if the target object is 32 bytesin size and gets zeroed + has 16 bytes initialized, the compiler can justadd code to zero out the rest.Note not all the primites have asm variants and some of the existing onesare not optimized. Maintaines are strongly encourage to take a look(regardless of this change).
show more ...
sys/dev: Replace zero with NULL for pointers.Makes things easier to read, plus architectures may set NULL to somethingdifferent than zero.Found with: devel/coccinelleMFC after: 3 weeks
sys/dev: minor spelling fixes.Most affect comments, very few have user-visible effects.
Convert rman to use rman_res_t instead of u_longSummary:Migrate to using the semi-opaque type rman_res_t to specify rman resources. Fornow, this is still compatible with u_long.This is step on
Convert rman to use rman_res_t instead of u_longSummary:Migrate to using the semi-opaque type rman_res_t to specify rman resources. Fornow, this is still compatible with u_long.This is step one in migrating rman to use uintmax_t for resources instead ofu_long.Going forward, this could feasibly be used to specify architecture-specificdefinitions of resource ranges, rather than baking a specific integer type intothe API.This change has been broken out to facilitate MFC'ing drivers back to 10 withoutbreaking ABI.Reviewed By: jhbSponsored by: Alex Perez/Inertial ComputingDifferential Revision: https://reviews.freebsd.org/D5075
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenyears for head. However, it is continuously misused as the mpsafe argumentfor callout_init(9). Deprecate the flag and cle
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenyears for head. However, it is continuously misused as the mpsafe argumentfor callout_init(9). Deprecate the flag and clean up callout_init() callsto make them more consistent.Differential Revision: https://reviews.freebsd.org/D2613Reviewed by: jhbMFC after: 2 weeks
Remove break after return.
Don't pass RF_ALLOCATED to bus_alloc_resource().
Convert most BPF_TAP users to BPF_MTAP.MFC after: 2 weeks
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. T
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. There were no API to read this statistic.Sponsored by: NetflixSponsored by: Nginx, Inc.
Mechanically convert to if_inc_counter().
Replace local copy-and-paste implementations of printmbuf() in severaldevice drivers with calls to the centralised m_print() implementation.While the formatting and output details differ a little,
Replace local copy-and-paste implementations of printmbuf() in severaldevice drivers with calls to the centralised m_print() implementation.While the formatting and output details differ a little, the contentis essentially the same, and it is unlikely anyone has used thisdebugging output in some time.This change reduces awareness of mbuf cluster allocation (and,especially, the M_EXT flag) outside of the mbuf allocator, which willmake it easier to refine the external storage mechanism withoutdisrupting drivers in the future.Style bugs are preserved.Reviewed by: bz, glebiusMFC after: 3 daysSponsored by: EMC / Isilon Storage Division
The r48589 promised to remove implicit inclusion of if_var.h soon. Prepareto this event, adding if_var.h to files that do need it. Also, includeall includes that now are included due to implicit po
The r48589 promised to remove implicit inclusion of if_var.h soon. Prepareto this event, adding if_var.h to files that do need it. Also, includeall includes that now are included due to implicit pollution via if_var.hSponsored by: NetflixSponsored by: Nginx, Inc.
Fxi a bunch of typos.PR: misc/174625Submitted by: Jeremy Chadwick <[email protected]>
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arraysReviewed by: cognetApproved by: cognet
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags in sys/dev.
Add new tunable 'net.link.ifqmaxlen' to set default send interfacequeue length. The default value for this parameter is 50, which isquite low for many of today's uses and the only way to modify thi
Add new tunable 'net.link.ifqmaxlen' to set default send interfacequeue length. The default value for this parameter is 50, which isquite low for many of today's uses and the only way to modify thisparameter right now is to edit if_var.h file. Also add read-onlysysctl with the same name, so that it's possible to retrieve thecurrent value.MFC after: 1 month
Always use a private timer instead of if_watchdog and if_timer to drivethe transmit watchdog. These drivers already used a private timer whencompiled to use Netgraph. This change just makes them
Always use a private timer instead of if_watchdog and if_timer to drivethe transmit watchdog. These drivers already used a private timer whencompiled to use Netgraph. This change just makes them always use theprivate timer. Note that these drivers do not compile and are disconnectedfrom the build due to TTY changes.
Use new spelling of the NG_*LEN constants.
if_cx is currently disconnected from the build due to a dependence onthe old TTY implementation; however, take a cut at stripping itsoptional Giant-protected code paths enabled using debug.cx.mpsaf
if_cx is currently disconnected from the build due to a dependence onthe old TTY implementation; however, take a cut at stripping itsoptional Giant-protected code paths enabled using debug.cx.mpsafenet,which will no longer work once IFF_NEEDSGIANT is removed.
Do not set IFF_DEBUG directly from the driver.MFC after: 1 month.
Spelling fix for interupt -> interrupt
First in a series of changes to remove the now-unused Giant compatibilityframework for non-MPSAFE network protocols:- Remove debug_mpsafenet variable, sysctl, and tunable.- Remove NET_NEEDS_GIANT
First in a series of changes to remove the now-unused Giant compatibilityframework 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 stillpresent in subsystems, and will be removed in followup commits.Reviewed by: bz, jhbApproved by: re (kensmith)
Don't call bus_deactivate_resource() explicitly before callingbus_release_resource(). This is needed for pc98 by upcoming nexus relatedchange.
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-currentReviewed by: manyApproved by: re@
1234