nfe: clean up empty lines in .c and .h files
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that arestill not MPSAFE (or already are but aren’t properly mark
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that arestill not MPSAFE (or already are but aren’t properly marked).Use it in preparation for a general review of all nodes.This is non-functional change that adds annotations to SYSCTL_NODE andSYSCTL_PROC nodes using one of the soon-to-be-required flags.Mark all obvious cases as MPSAFE. All entries that haven't been markedas MPSAFE before are by default marked as NEEDGIANTApproved by: kib (mentor, blanket)Commented by: kib, gallatin, melifaroDifferential Revision: https://reviews.freebsd.org/D23718
show more ...
Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that processincoming packets in taskqueue context.Reviewed by: hselaskyDifferential Revision: https://reviews.freebsd.org/D23518
Convert to if_foreach_llmaddr() KPI.
Add support for the nForce MCP89 adapter.PR: 234015Submitted by: Andrejs Bogdanovs <[email protected]>MFC after: 1 week
sys/dev: use our nitems() macro when it is avaliable through param.h.No functional change, only trivial cases are done in this sweep,Drivers that can get further enhancements will be done independ
sys/dev: use our nitems() macro when it is avaliable through param.h.No functional change, only trivial cases are done in this sweep,Drivers that can get further enhancements will be done independently.Discussed in: freebsd-current
Cleanup unnecessary semicolons from the kernel.Found with devel/coccinelle.
Remove taskqueue_enqueue_fast().taskqueue_enqueue() was changed to support both fast and non-fasttaskqueues 10 years ago in r154167. It has been a compat shim eversince. It's time for the compa
Remove taskqueue_enqueue_fast().taskqueue_enqueue() was changed to support both fast and non-fasttaskqueues 10 years ago in r154167. It has been a compat shim eversince. It's time for the compat shim to go.Submitted by: Howard Su <[email protected]>Reviewed by: sepheDifferential Revision: https://reviews.freebsd.org/D5131
Follow up to r225617. In order to maximize the re-usability of kernel codein userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv().This fixes a namespace collision with libc sy
Follow up to r225617. In order to maximize the re-usability of kernel codein userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv().This fixes a namespace collision with libc symbols.Submitted by: kmacyTested by: make universe
Eliminate unnecessary checking for M_EXT on mbufs returned by m_getjcl().Reviewed by: bz, glebius, yongariMFC after: 3 daysSponsored by: EMC / Isilon Storage DivisionDifferential Revision: https
Eliminate unnecessary checking for M_EXT on mbufs returned by m_getjcl().Reviewed by: bz, glebius, yongariMFC after: 3 daysSponsored by: EMC / Isilon Storage DivisionDifferential Revision: https://reviews.freebsd.org/D938
- Remove empty wrappers ether_poll_[de]register_drv(). [1]- Move polling(9) declarations out of ifq.h back to if_var.h they are absolutely unrelated to queues.Submitted by: Mikhail <mp lenta.ru>
- Remove empty wrappers ether_poll_[de]register_drv(). [1]- Move polling(9) declarations out of ifq.h back to if_var.h they are absolutely unrelated to queues.Submitted by: Mikhail <mp lenta.ru> [1]
- Use if_inc_counter() to increment various counters.- Do not ever set a counter to a value. For those counters that we don't increment, but return directly from hardware create cases in if_get_
- Use if_inc_counter() to increment various counters.- Do not ever set a counter to a value. For those counters that we don't increment, but return directly from hardware create cases in if_get_counter() method.Sponsored by: NetflixSponsored by: Nginx, Inc.
It is actually possible to have if_t a typedef to non-void type,and keep both converted to drvapi and non-converted driverscompilable.o Make if_t typedef to struct ifnet *.o Remove shim function
It is actually possible to have if_t a typedef to non-void type,and keep both converted to drvapi and non-converted driverscompilable.o Make if_t typedef to struct ifnet *.o Remove shim functions.Sponsored by: NetflixSponsored by: Nginx, Inc.
Fix multicast, broken by the conversion of the nfe(4) driver to thedriver API.Submitted by: Mikhail <[email protected]>
Fixed build with DEVICE_POLLING.
Convert nfe(4) to use the driver API.Submitted by: Mikhail <[email protected]>
Don't bother clearing maps for static DMA allocations to NULL. Instead,leave them as purely opaque values that are only set by bus_dmamem_alloc().
Remove some unused variables.Found with: Clang Static AnalyzerMFC after: 2 weeks
Add workaround for MCP61 Ethernet controller found on MSI K9motherboard. PHY hardware used for the controller responded atall possible addresses which in turn resulted in having 32 PHYsfor the co
Add workaround for MCP61 Ethernet controller found on MSI K9motherboard. PHY hardware used for the controller responded atall possible addresses which in turn resulted in having 32 PHYsfor the controller. If driver detects "MSI K9N6PGM2-V2 (MS-7309)"motherboard, tell miibus(4) PHY is located at 0.Tested by: Chris H
Increase the number of TX DMA segments from 32 to 35. It turnedout 32 is not enough to support a full sized TSO packet.While I'm here fix a long standing bug introduced in r169632 inbce(4) where
Increase the number of TX DMA segments from 32 to 35. It turnedout 32 is not enough to support a full sized TSO packet.While I'm here fix a long standing bug introduced in r169632 inbce(4) where it didn't include L2 header length of TSO packet inthe maximum DMA segment size calculation.In collaboration with: rmacklemMFC after: 2 weeks
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.
Fix clearing MAC stats registers. Previously it cleared everyfourth register.Submitted by: Paul A. Patience <[email protected]>Approved by: re (gjb)
Fix a typo when accounting for tx_broadcast statistics.Submitted by: Paul A. Patience <paul-a patience polymtl ca>MFC after: 2 weeksApproved by: re (hrs)
Change local variable tso_segsz to tsosegsz to avoid mbuf.h macro conflicts.Sponsored by: The FreeBSD Foundation
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags in sys/dev.
1234