summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add machine/sysreg.h to simplify accessing the system control coprocessorandrew2014-09-272-33/+265
| | | | | | | | | | | | | | registers and use it in the ARMv7 CPU functions. The sysreg.h file has been checked by hand, however it may contain errors with the comments on when a register was first introduced. The ARMv7 cpu functions have been checked by compiling both the previous and this version and comparing the md5 of the object files. Submitted by: Svatopluk Kraus <onwahe at gmail.com> Submitted by: Michal Meloun <meloun at miracle.cz> Reviewed by: ian, rpaulo Differential Revision: https://reviews.freebsd.org/D795
* Revert r272189, the committed version was an old version and breaks build.delphij2014-09-271-2/+2
| | | | Pointy hat to: delphij
* Switch primes(6) from using unsigned long to using uint64_t. This fixescperciva2014-09-273-13/+15
| | | | | 'limited range of type' warnings about comparisons on 32-bit systems, and allows 32-bit systems to compute the full range of primes.
* Add kernel support for the TP-LINK MR3020 Atheros MIPS 24k router.sbruno2014-09-272-0/+166
| | | | | | | AR9331 based system. Phabric: https://reviews.freebsd.org/D780 Reviewed by: adrian
* * Split tcp_signature_compute() into 2 pieces:melifaro2014-09-273-54/+116
| | | | | | | | | | | | | | - tcp_get_sav() - SADB key lookup - tcp_signature_do_compute() - actual computation * Fix TCP signature case for listening socket: do not assume EVERY connection coming to socket with TCP_SIGNATURE set to be md5 signed regardless of SADB key existance for particular address. This fixes the case for routing software having _some_ BGP sessions secured by md5. * Simplify TCP_SIGNATURE handling in tcp_input() MFC after: 2 weeks
* cxgbe(4): implement if_get_counter.np2014-09-272-37/+103
|
* Remove an un-needed bit of pre-processor work - it all lives insideadrian2014-09-271-2/+0
| | | | #ifdef RSS.
* Add 3 long options for getting information about mkimg itself:marcel2014-09-272-13/+90
| | | | | | | | | | | | | --version print the version of mkimg and also whether it's 64- or 32-bit. --formats list the supported output formats separated by space. --schemes list the supported partitioning schemes separated by space. Inspired by a patch from: gjb@ MFC after: 1 week Relnotes: yes
* After r271635 mmap(2) requires either MAP_PRIVATE or MAP_SHAREDneel2014-09-271-1/+1
| | | | | | | | for non-anonymous mappings. This gets 'bhyvectl --get-all' working again. Reported by: Anish Gupta (akgupt3@gmail.com)
* Remove a bogus AIC.kevlo2014-09-271-2/+1
| | | | Reviewed by: imp
* Allow the PIC's IMR register to be read before ICW initialisation.grehan2014-09-271-13/+12
| | | | | | | | | | | | | | | | As of git submit e179f6914152eca9, the Linux kernel does a simple probe of the PIC by writing a pattern to the IMR and then reading it back, prior to the init sequence of ICW words. The bhyve PIC emulation wasn't allowing the IMR to be read until the ICW sequence was complete. This limitation isn't required so relax the test. With this change, Linux kernels 3.15-rc2 and later won't hang on boot when calibrating the local APIC. Reviewed by: tychon MFC after: 3 days
* cxgbe(4): explicitly set various if_hw_tso* values.np2014-09-261-0/+4
| | | | MFC after: 3 days
* Add libuutil to dependency list.delphij2014-09-261-2/+2
| | | | | Noticed by: sef MFC after: 3 days
* Make do_dup() static and move relevant macros to kern_descrip.cmjg2014-09-262-8/+8
| | | | No functional changes.
* Make sure the adapter's management queue and the event queue arenp2014-09-261-0/+6
| | | | | | | | available before any uppper layer driver (TOE, iWARP, or iSCSI) registers with the base cxgbe(4) driver. Submitted by: Hariprasad at chelsio dot com Reviewed by: np@
* Don't panic if a resource is allocated twice. Instead, print a warning andjhb2014-09-261-1/+4
| | | | | | | fail the allocation request. Allocations of "reserved" resources such as PCI BARs already fail the request instead of panic'ing in this case. MFC after: 1 week
* Fix a paste-o commited in r272109: we need to get the interrupts for theian2014-09-261-1/+1
| | | | | | child node, not the parent node. Pointed out by: jhibbits@
* Add ipheth(4) to the hardware notes.gavin2014-09-261-0/+2
| | | | MFC after: 6 days
* Remove macros that hide access to struct ifnet fields.glebius2014-09-263-7/+5
|
* Make all lagg protocol methods live in lagg_protos, not in softc. Allglebius2014-09-262-82/+131
| | | | | | | interfaces of a same protocol, use the same methods. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* drop unnecessary ifdef IPSEC's. This file is only compiled when IPSECjmg2014-09-261-13/+0
| | | | | | | | is defined... Differential Revision: D839 Reviewed by: bz, glebius, gnn Sponsered by: EuroBSDCon DevSummit
* Keep list of lagg ports sorted by if_index.ae2014-09-261-3/+13
| | | | | | Obtained from: Yandex LLC MFC after: 1 week Sponsored by: Yandex LLC
* - Whitespace.glebius2014-09-264-108/+106
| | | | - Remove caddr_t.
* Replace the macros used in the previous man(1) commit with literal text,allanjude2014-09-261-9/+9
| | | | | | | | because the macros seem to be specific to groff, and do not render in mandoc Approved by: bcr (mentor) Sponsored by: ScaleEngine Inc.
* Add a line to the post-installation configuration dialog to enable thedes2014-09-261-0/+1
| | | | | | local_unbound service. MFC after: 3 days
* Add smsc(4) to the hardware notes.brueffer2014-09-261-0/+2
|
* Add smsc(4) to the list of drivers use the miibus interface.pluknet2014-09-262-1/+6
| | | | | X-MFC with: r272165 Sponsored by: Nginx, Inc.
* - Provide lagg_proto_attach(), lagg_proto_detach().glebius2014-09-262-51/+69
| | | | | | | | - Make detach a protocol method in lagg_protos. - Simplify code to lookup protocols. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* - Mechanically convert to if_inc_counter() the rest of counters.glebius2014-09-261-31/+40
| | | | | | | - Do not set if_collisions on interrupt, read them in ti_get_counter(). - Add missing bus_dmamap_sync(BUS_DMASYNC_PREREAD) in ti_ioctl2(). [1] Submitted by: mav [1]
* Add MLINKS for if_ipheth(4) and if_smsc(4).gavin2014-09-261-0/+2
| | | | | Submitted by: brueffer MFC after: 6 days
* Correctly enumerate primes between 4295098369 and 3825123056546413050.cperciva2014-09-265-3/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, primes(6) relied solely on sieving with primes up to 65537, with the effect that composite numbers which are the product of two non-16-bit primes would be incorrectly identified as prime. For example, # primes 1099511627800 1099511627820 would output 1099511627803 1099511627807 1099511627813 when in fact only the first of those values is prime. This commit adds strong pseudoprime tests to validate the candidates which pass the initial sieving stage, using bases of 2, 3, 5, 7, 11, 13, 17, 19, and 23. Thanks to papers from C. Pomerance, J.L. Selfridge, and S.S. Wagstaff, Jr.; G. Jaeschke; and Y. Jiang and Y. Deng, we know that the smallest value which passes these tests is 3825123056546413051. At present we do not know how many strong pseudoprime tests are required to prove primality for values larger than 3825123056546413050, so we force primes(6) to stop at that point. Reviewed by: jmg Relnotes: primes(6) now correctly enumerates primes up to 3825123056546413050 MFC after: 7 days Sponsored by: EuroBSDCon devsummit
* Add very basic outline man page for smsc(4).gavin2014-09-262-0/+90
| | | | MFC after: 6 days
* Fix the size of AT91SAM9260_PIT_SIZE.kevlo2014-09-261-1/+1
|
* Fix typos.kevlo2014-09-265-11/+11
|
* xen: add proper copyright attributionroyger2014-09-261-0/+1
| | | | Noted by: jmallett
* - When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE,glebius2014-09-263-94/+49
| | | | | | | | | | then drop lock, run the attach routines, and then set it to specific proto. This removes tons of WITNESS warnings. - Make lagg protocol attach handlers not failing and allocate memory with M_WAITOK. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Add new (untested) device IDs to smsc(4)gavin2014-09-262-0/+34
| | | | MFC after: 1 week
* Make lagg protos a enum.glebius2014-09-261-9/+11
|
* Make lagg protocols detach methods returning void.glebius2014-09-264-39/+16
| | | | | Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Fix the description of the -h option.markj2014-09-261-14/+13
| | | | | Reported by: swills MFC after: 3 days
* Refactor the code a little bit to reduce duplicated code.delphij2014-09-261-102/+87
| | | | | Reviewed by: mjg MFC after: 2 weeks
* Fix description of mutex acquisition.pluknet2014-09-261-2/+8
| | | | | | Reviewed by: kib X-MFC with: r272070 Sponsored by: Nginx, Inc.
* Revert r272122pfg2014-09-251-126/+5
| | | | | | | | | The patch still needs to be more robust and it broke the build on MIPS so revert it for now while all the issues are fixed. Reported by: ache, davide PR: 137307
* Explicitly set errno to 0 before calling strto*.delphij2014-09-251-0/+3
| | | | | Suggested by: mjg MFC after: 2 weeks
* The strtol(3) family of functions would set errno when it hits one.delphij2014-09-251-8/+16
| | | | | | | | Check errno and handle it as invalid input. Obtained from: HardenedBSD Submitted by: David CARLIER <devnexen@gmail.com> MFC after: 2 weeks
* Use a char * as iterator over a bounded string.delphij2014-09-251-4/+3
| | | | MFC after: 1 week
* Use strlcpy(). I don't believe these are real problems but it's betterdelphij2014-09-251-7/+7
| | | | | | | | to use a safe idiom. Reported by: Coverity CID: 1238914 MFC after: 1 week
* Refactor the code a little bit to avoid NULL deference whendelphij2014-09-251-12/+11
| | | | | | | | allocation was failed. Reported by: Coverity CID: 1238915 MFC after: 1 week
* Plug a file descriptor leak.delphij2014-09-251-0/+3
| | | | | | Reported by: Coverity CID: 1238916 MFC after: 1 week
* Being able to access a path do not necessarily mean we have accessdelphij2014-09-251-6/+4
| | | | | | | | | to a directory. So instead of doing this, we just call mkdir(2) directly and test if the returned value is 0 or errno is EISDIR. Reported by: Coverity CID: 1238925 MFC after: 1 week
OpenPOWER on IntegriCloud