summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Remove function redeclaration. It was upstreamed but lost somehow.jkim2009-06-021-8/+0
| | |
| * | Canonify include paths again.jkim2009-06-02175-706/+706
| | |
| * | Fix include path fixup for contrib/dev/acpica/include/platform/*.h.jkim2009-06-021-0/+5
| | |
| * | MFV: ACPICA 20090521jkim2009-06-02239-15290/+37027
| |\ \ | | |/
| | * flatten acpica vendor areaavg2009-05-19201-146106/+0
| | | | | | | | | | | | | | | | | | | | | | | | do it for current ('dist') and previous versions; disable keywords expansion at the same time Reviewed by: attilio Approved by: rpaulo
* | | Move "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERICrwatson2009-06-051-1/+0
|/ / | | | | | | | | | | | | | | and used in a large number of files, but also because an increasing number of incorrect uses of MAC calls were sneaking in due to copy-and-paste of MAC-aware code without the associated opt_mac.h include. Discussed with: pjd
* | V_loif is not an array but a pure pointer, so treat it as such.zec2009-06-011-1/+1
| | | | | | | | | | Reviewed by: bz Approved by: julian (mentor)
* | driver for Marvell 88W8363 Wireless LAN controllersam2009-06-014-0/+2341
| |
* | Add hierarchical jails. A jail may further virtualize its environmentjamie2009-05-272-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by creating a child jail, which is visible to that jail and to any parent jails. Child jails may be restricted more than their parents, but never less. Jail names reflect this hierarchy, being MIB-style dot-separated strings. Every thread now points to a jail, the default being prison0, which contains information about the physical system. Prison0's root directory is the same as rootvnode; its hostname is the same as the global hostname, and its securelevel replaces the global securelevel. Note that the variable "securelevel" has actually gone away, which should not cause any problems for code that properly uses securelevel_gt() and securelevel_ge(). Some jail-related permissions that were kept in global variables and set via sysctls are now per-jail settings. The sysctls still exist for backward compatibility, used only by the now-deprecated jail(2) system call. Approved by: bz (mentor)
* | tbr_timeout() is a timer driven function[1]. While the previous commitbz2009-05-181-10/+21
| | | | | | | | | | | | | | | | | | made LINT happy this does the proper looping over all vnets as we are only called `globally' and not once per vnet instance. Reported by: zec [1] Missed by: bz [1] in r192264 Reviewed by: zec
* | Add a missing INIT_VNET_NET() to get VIMAGE closer to full LINT again.bz2009-05-171-0/+1
| |
* | Makefile to record the technique by which the .uu files are generatedsam2009-05-091-0/+24
| | | | | | | | from the Intel-distributed .fw files
* | update to v3.1sam2009-05-093-7460/+7464
| |
* | In preparation for turning on options VIMAGE in next commits,zec2009-04-261-0/+3
| | | | | | | | | | | | | | | | rearrange / replace / adjust several INIT_VNET_* initializer macros, all of which currently resolve to whitespace. Reviewed by: bz (an older version of the patch) Approved by: julian (mentor)
* | Change if_output to take a struct route as its fourth argument in orderkmacy2009-04-164-7/+7
| | | | | | | | | | | | to allow passing a cached struct llentry * down to L2 Reviewed by: rwatson
* | Update stats in struct icmpstat and icmp6stat using four newrwatson2009-04-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | macros: ICMPSTAT_ADD(), ICMPSTAT_INC(), ICMP6STAT_ADD(), and ICMP6STAT_INC(), rather than directly manipulating the fields of these structures across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. In on case, icmp6stat members are manipulated indirectly, by icmp6_errcount(), and this will require further work to fix for per-CPU stats. MFC after: 3 days
* | Update stats in struct udpstat using two new macros, UDPSTAT_ADD()rwatson2009-04-121-3/+3
| | | | | | | | | | | | | | | | | | and UDPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days
* | Update stats in struct ipstat using four new macros, IPSTAT_ADD(),rwatson2009-04-111-4/+4
| | | | | | | | | | | | | | | | | | IPSTAT_INC(), IPSTAT_SUB(), and IPSTAT_DEC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days
* | Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() andrwatson2009-04-111-3/+3
| | | | | | | | | | | | | | | | TCPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days
* | Add uath(4) wireless USB driver for Atheros AR5005UG and AR5005UXweongyo2009-04-041-0/+3359
| | | | | | | | | | | | chipsets. Reviewed by: sam
* | For all files including net/vnet.h directly include opt_route.h andbz2009-02-273-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | net/route.h. Remove the hidden include of opt_route.h and net/route.h from net/vnet.h. We need to make sure that both opt_route.h and net/route.h are included before net/vnet.h because of the way MRT figures out the number of FIBs from the kernel option. If we do not, we end up with the default number of 1 when including net/vnet.h and array sizes are wrong. This does not change the list of files which depend on opt_route.h but we can identify them now more easily.
* | Move the include of vinet.h further up before the ipfilter includes.bz2009-02-271-3/+3
| |
* | Shuffle the vimage.h includes or add where missing.bz2009-02-271-1/+3
| |
* | Change the functions to ANSI in those cases where it breaks promotionrdivacky2009-02-241-4/+1
| | | | | | | | | | | | | | | | to int rule. See ISO C Standard: SS6.7.5.3:15. Approved by: kib (mentor) Reviewed by: warner Tested by: silence on -current
* | Revert my previous two changes.ed2009-01-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even though the code seems to be FreeBSD kernel code, it isn't compiled on FreeBSD. I could have known this, because I was a little amazed that I couldn't find a prototype of pfopen()/pfclose() somewhere else, because it isn't marked as static. Apart from that, removing these functions wouldn't have been harmful anyway, because there are some other strange things about them (the implementation isn't consistent with the prototype at the top). Still, it's better to leave it, because it makes merging code back to older branches a little harder. Requested by: mlaier
* | Remove pfopen() and pfclose() entirely.ed2009-01-251-12/+0
| | | | | | | | | | | | It turns out I was patching functions that weren't used by pf(4) anyway. They still seem to use `struct proc *' instead of `struct thread *'. They weren't listed in pf_cdevsw.
* | Remove unneeded checking for invalid minor numbers from pf(4).ed2009-01-251-4/+0
| | | | | | | | | | | | | | | | Because it is not possible to access the pf(4) character device through any other device node as the one in devfs, there is no need to check for unknown device minor numbers. Approved by: mlaier
* | Change __FreeBSD_version to prepare for merging r184102.jkim2009-01-211-1/+1
| |
* | Check for ipprotosw.h more precisely.bz2008-12-231-1/+3
| | | | | | | | | | | | It hasn't been needed for more than 5 years, since r120386. MFC after: 4 weeks
* | MFH @ 186335sam2008-12-204-18/+22
|\ \
| * | This main goals of this project are:qingli2008-12-152-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
| * | Like for tcp_subr.c in r186057 make the MD5 context a function localbz2008-12-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | variable in this copy of the code[1]. While here prefix the variables with 'pf_' to avoid file static global variables with colliding names that are or will be virtualized. Discussed with: rwatson, silby [1]
| * | Second round of putting global variables, which were virtualizedbz2008-12-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but formerly missed under VIMAGE_GLOBAL. Put the extern declarations of the virtualized globals under VIMAGE_GLOBAL as the globals themsevles are already. This will help by the time when we are going to remove the globals entirely. Sponsored by: The FreeBSD Foundation
* | | Merge WIP from p4:sam2008-12-131-440/+673
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o recognize ixp435 cpu o change memory layout for for ixp4xx to not assume memory is aliases to 0x10000000 (Cambria/ixp435 memory starts at zero) o handle 64 irqs for ixp435 o dual EHCI USB 2.0 controller integral to ixp435 o overhaul NPE code for ixp435 and better MAC+MII naming o updated NPE firmware (including NPE-A image for ixp435/ixp465) o Gateworks Cambria board support: - IDE compact flash - MCU - front panel LED on i2c bus - Octal LED latch Sanity-tested with NFS-root on Avila and Cambria boards. Requires pending boot2 mods for CF-boot on Cambria.
* | Conditionally compile out V_ globals while instantiating the appropriatezec2008-12-101-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | container structures, depending on VIMAGE_GLOBALS compile time option. Make VIMAGE_GLOBALS a new compile-time option, which by default will not be defined, resulting in instatiations of global variables selected for V_irtualization (enclosed in #ifdef VIMAGE_GLOBALS blocks) to be effectively compiled out. Instantiate new global container structures to hold V_irtualized variables: vnet_net_0, vnet_inet_0, vnet_inet6_0, vnet_ipsec_0, vnet_netgraph_0, and vnet_gif_0. Update the VSYM() macro so that depending on VIMAGE_GLOBALS the V_ macros resolve either to the original globals, or to fields inside container structures, i.e. effectively #ifdef VIMAGE_GLOBALS #define V_rt_tables rt_tables #else #define V_rt_tables vnet_net_0._rt_tables #endif Update SYSCTL_V_*() macros to operate either on globals or on fields inside container structs. Extend the internal kldsym() lookups with the ability to resolve selected fields inside the virtualization container structs. This applies only to the fields which are explicitly registered for kldsym() visibility via VNET_MOD_DECLARE() and vnet_mod_register(), currently this is done only in sys/net/if.c. Fix a few broken instances of MODULE_GLOBAL() macro use in SCTP code, and modify the MODULE_GLOBAL() macro to resolve to V_ macros, which in turn result in proper code being generated depending on VIMAGE_GLOBALS. De-virtualize local static variables in sys/contrib/pf/net/pf_subr.c which were prematurely V_irtualized by automated V_ prepending scripts during earlier merging steps. PF virtualization will be done separately, most probably after next PF import. Convert a few variable initializations at instantiation to initialization in init functions, most notably in ipfw. Also convert TUNABLE_INT() initializers for V_ variables to TUNABLE_FETCH_INT() in initializer functions. Discussed at: devsummit Strassburg Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* | - convert radix node head lock from mutex to rwlockkmacy2008-12-071-0/+2
| | | | | | | | | | | | | | | | - make radix node head lock not recursive - fix LOR in rtexpunge - fix LOR in rtredirect Reviewed by: sam
* | Rather than using hidden includes (with cicular dependencies),bz2008-12-028-2/+18
| | | | | | | | | | | | | | | | | | | | | | directly include only the header files needed. This reduces the unneeded spamming of various headers into lots of files. For now, this leaves us with very few modules including vnet.h and thus needing to depend on opt_route.h. Reviewed by: brooks, gnn, des, zec, imp Sponsored by: The FreeBSD Foundation
* | Switch to ath hal source code. Note this removes the ath_halsam2008-12-0183-195147/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module; the ath module now brings in the hal support. Kernel config files are almost backwards compatible; supplying device ath_hal gives you the same chip support that the binary hal did but you must also include options AH_SUPPORT_AR5416 to enable the extended format descriptors used by 11n parts. It is now possible to control the chip support included in a build by specifying exactly which chips are to be supported in the config file; consult ath_hal(4) for information.
* | Unhide declarations of network stack virtualization structs fromzec2008-11-282-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | underneath #ifdef VIMAGE blocks. This change introduces some churn in #include ordering and nesting throughout the network stack and drivers but is not expected to cause any additional issues. In the next step this will allow us to instantiate the virtualization container structures and switch from using global variables to their "containerized" counterparts. Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* | Fix a number of style issues in the MALLOC / FREE commit. I've tried todes2008-10-231-14/+16
| | | | | | | | | | be careful not to fix anything that was already broken; the NFSv4 code is particularly bad in this respect.
* | Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-239-104/+109
| | | | | | | | MFC after: 3 months
* | Turn off CPU frequency change notifiers when the TSC is P-state invariantjkim2008-10-211-0/+6
| | | | | | | | | | or it is forced by setting 'kern.timecounter.invariant_tsc' tunable to non-zero.
* | Cache so_cred as inp_cred in the inpcb.bz2008-10-041-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | This means that inp_cred is always there, even after the socket has gone away. It also means that it is constant for the lifetime of the inp. Both facts lead to simpler code and possibly less locking. Suggested by: rwatson Reviewed by: rwatson MFC after: 6 weeks X-MFC Note: use a inp_pspare for inp_cred
* | Step 1.5 of importing the network stack virtualization infrastructurezec2008-10-027-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the vimage project, as per plan established at devsummit 08/08: http://wiki.freebsd.org/Image/Notes200808DevSummit Introduce INIT_VNET_*() initializer macros, VNET_FOREACH() iterator macros, and CURVNET_SET() context setting macros, all currently resolving to NOPs. Prepare for virtualization of selected SYSCTL objects by introducing a family of SYSCTL_V_*() macros, currently resolving to their global counterparts, i.e. SYSCTL_V_INT() == SYSCTL_INT(). Move selected #defines from sys/sys/vimage.h to newly introduced header files specific to virtualized subsystems (sys/net/vnet.h, sys/netinet/vinet.h etc.). All the changes are verified to have zero functional impact at this point in time by doing MD5 comparision between pre- and post-change object files(*). (*) netipsec/keysock.c did not validate depending on compile time options. Implemented by: julian, bz, brooks, zec Reviewed by: julian, bz, brooks, kris, rwatson, ... Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* | Replace all calls to minor() with dev2unit().ed2008-09-272-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
* | Merge ath again (addition of wisoc files).rpaulo2008-09-053-0/+4829
|\ \
| * | Flatten the vendor-sys/ath tree for future imports.rpaulo2008-08-2782-137923/+0
| | |
| * | Workaround the detect-merge-conflicts.sh script and 's/^======$/&='.rpaulo2008-08-271-1/+1
| | |
* | | Merge fix for P4 expansion from vendor branch.rpaulo2008-09-051-1/+1
| | |
* | | Merge ath_hal 0.10.5.10 to head.rpaulo2008-08-2876-120629/+176586
| | | | | | | | | | | | Approved by: sam
OpenPOWER on IntegriCloud