summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Now that the flashmap code knows about SPI flash, add it in builds.adrian2016-01-231-2/+2
| | | | | PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com>
* Teach the flashmap code about the SPI flash.adrian2016-01-231-2/+6
| | | | | PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com>
* Add an IOCTL rr_limit to let users fine tuning the number of packets to bearaujo2016-01-234-3/+61
| | | | | | | | | | | | | | | | | | | sent using roundrobin protocol and set a better granularity and distribution among the interfaces. Tuning the number of packages sent by interface can increase throughput and reduce unordered packets as well as reduce SACK. Example of usage: # ifconfig bge0 up # ifconfig bge1 up # ifconfig lagg0 create # ifconfig lagg0 laggproto roundrobin laggport bge0 laggport bge1 \ 192.168.1.1 netmask 255.255.255.0 # ifconfig lagg0 rr_limit 500 Reviewed by: thompsa, glebius, adrian (old patch) Approved by: bapt (mentor) Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D540
* Fix a regression in the .de and .dk whois special casesfanf2016-01-231-7/+15
| | | | | | | | | | Ensure the special cases trigger whether we come via a referral or via the -c option. Match host names case-insensitively. Use the default character set supported by .de (UTF-8) since that is more compatible with the modern world than ISO 8859-1. Persuade them to give us a useful answer whether an internationalized domain name is given in UTF-8 or in punycode.
* A lot of the cleverness in whois is no longer needed!fanf2016-01-232-189/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | The IANA whois server has the right referral information for domain names, IP addresses, and AS numbers, so whois does not need to be able to choose servers itself (except for a few cases where referrals do not work). We can delete a chunk of code, which is always fun. This change improves the referral handling to be less sensitive to all the various formats, and to allow multi-hop referral chains, such as IANA -> registry -> registrar. ARIN queries have the "+" flag added if no flags are present, so we get full details if the query matches multiple objects. The Verisign anti-spam logic is also now suppressed if the user provided a non- trivial query string. Uninformative rubric is now trimmed by default. The -S option turns off trimming, and disables query fettling. The -i option is back to its traditional pre-1999 hostname, since whois.internic.net is more useful than whois.networksolutions.com. Note that the old fallback/default server whois.crsnic.net is an alias for whois.internic.net. The manual is more informative about query syntax.
* Fix for iWARP servers that listen on INADDR_ANY.np2016-01-2211-145/+446
| | | | | | | | | | | | | | | | The iWARP Connection Manager (CM) on FreeBSD creates a TCP socket to represent an iWARP endpoint when the connection is over TCP. For servers the current approach is to invoke create_listen callback for each iWARP RNIC registered with the CM. This doesn't work too well for INADDR_ANY because a listen on any TCP socket already notifies all hardware TOEs/RNICs of the new listener. This patch fixes the server side of things for FreeBSD. We've tried to keep all these modifications in the iWARP/TCP specific parts of the OFED infrastructure as much as possible. Submitted by: Krishnamraju Eraparaju @ Chelsio (with design inputs from Steve Wise) Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4801
* Use MAN= to specify that no man page is providedemaste2016-01-223-3/+3
| | | | | | NO_MAN is deprecated. Reviewed by: imp
* tools/tools/ath/ath_ee_v4k_print: reflect changes from r220589avos2016-01-221-9/+8
| | | | | | | Fix printf() arguments + sort includes Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4045
* In tty_dealloc(), clear the queues. See the comment for a scenariokib2016-01-221-5/+10
| | | | | | | which explains why ttydev_leave() cleanup might not happen. Submitted by: bde MFC after: 3 weeks
* Add a standards compliance note for strtok_r as suggested by cpercival.wblock2016-01-221-1/+6
| | | | | Reviewed by: cpercival MFC after: 1 week
* The struct file f_advice member is overlaid with the devfs f_cdevprivkib2016-01-221-2/+3
| | | | | | | | | | | | | | data. If vnode bypass for devfs file failed, vn_read/vn_write are called and might try to dereference f_advice. Limit the accesses to f_advice to VREG vnodes only, which is the type ensured by posix_fadvise(). The f_advice for regular files is protected by mtxpool lock. Recheck that f_advice is not NULL after lock is taken. Reported and tested by: bde Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
* When devfs dirent is freed, a vnode might still keep a pointer to it,kib2016-01-221-0/+7
| | | | | | | | apparently. Interlock and clear the pointer to avoid free memory dereference. Submitted by: bde (previous version) MFC after: 3 weeks
* Remove printf only useful for debugging.kib2016-01-221-3/+1
| | | | | | Requested by: bde Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
* sh: Clean a readonly local, even if the variable does not exist outside.jilles2016-01-223-0/+12
| | | | | If a local variable has been made read-only, this should not prevent its removal when the function returns.
* Update whois synopsis and usage with new optionsfanf2016-01-222-2/+2
|
* Restore libunwind.cpp to LLVM libunwind build (reverts r294576)emaste2016-01-221-1/+2
| | | | The unw_* functions are not exported, but are used internally.
* sh: Add already working test for local-readonly interaction.jilles2016-01-222-0/+11
|
* Bump .Dd after r294575bjk2016-01-221-1/+1
|
* Fix ix advertise value after media changesmh2016-01-221-4/+10
| | | | | | | | | | | | | When ifconfig sets media then the values displayed by the advertise_speed value are invalidated. Fix this by setting the bits correctly including setting advertise to 0 for media = auto. Reviewed by: sbruno MFC after: 1 week Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D5034
* Add support for RISC-V ISA.br2016-01-222-5/+11
| | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5021
* Drop HP libunwind (unw_*) functions from LLVM libunwindemaste2016-01-221-2/+1
| | | | They are not needed for exception handling.
* A few `whois` usability improvementsfanf2016-01-222-56/+80
| | | | | | | | | Look up AS numbers at ARIN. Handle more referral formats. Suppress spammy nameserver objects when querying the .com and .net whois servers by explicitly querying for domain names by default.
* Add stubs for RISC-V ISA so libunwind can be compiled.br2016-01-227-1/+347
| | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5035
* Add configuration for RISC-V ISA.br2016-01-222-0/+6
| | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5020
* Stop including fdt_common.h in the arm64 code. We don't use anything fromandrew2016-01-224-5/+4
| | | | | | | it, however may have relied on header pollution to pull in the needed headers through it Sponsored by: ABT Systems Ltd
* Add support for RISC-V ISA.br2016-01-222-0/+56
| | | | | | | Reviewed by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5014
* Change the variable to a #define in order to make gcc happy whichbz2016-01-221-1/+1
| | | | | otherwise will complain about "variably modified 'alias' at file scope". Unbreaks the build on gcc platforms.
* sem: Don't free nameinfo that is still in list when open() fails.jilles2016-01-222-1/+38
| | | | | | | | | | This bug could be reproduced easily by calling sem_open() with O_CREAT | O_EXCL on a semaphore that is already open in the process. The struct sem_nameinfo would be freed while still in sem_list and later calls to sem_open() or sem_close() could access freed memory. PR: 206396 MFC after: 5 days
* r294563 was incomplete; re-add the client-side options as well.des2016-01-221-0/+2
|
* Instead of removing the NoneEnabled option, mark it as unsupported.des2016-01-221-0/+1
| | | | (should have done this in r291198, but didn't think of it until now)
* Only define fdt_pic_table on arm, and when not using intrng as this isandrew2016-01-221-0/+2
| | | | the only place that uses it.
* Stop defining fdt_pic_table with ARM_INTRNG, it's unused.andrew2016-01-221-1/+3
|
* Do not generate RSA1 or DSA keys by default.des2016-01-221-2/+2
|
* Stop calling fdt_immr_addr from the xlp startup code. It's used to setandrew2016-01-221-2/+0
| | | | fdt_immr_{va,pa,size}, but these are not used outside a single ARM SoC.
* Hide "soconnect() error" messages under bootverbose.mav2016-01-221-1/+1
| | | | They can be too noisy.
* hyperv/stor: Verify returned inquiry data before further dispatchingsephe2016-01-221-3/+85
| | | | | | | | | | | | | | | | | Windows 10 and Window 2016 will return all zero inquiry data for non-existing slots. If we dispatched them, then a lot of useless (0 sized) disks would be created. So we verify the returned inquiry data (valid type, non-empty vendor/product/revision etc.), before further dispatching. Minor white space cleanup and wording fix. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: adrian, sephe, Jun Su <junsu microsoft com> Approved by: adrian (mentor) Modified by: sephe Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4928
* Switch to syscall; HEAD lacks fbt for kill(2)dteske2016-01-221-4/+3
| | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: 294548
* MFV r294491: ntp 4.2.8p6.delphij2016-01-22201-3500/+6686
|\ | | | | | | | | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so
| * Vendor import of ntp-4.2.8p6.delphij2016-01-21192-3466/+6586
| |
* | hyperv/vmbus: Lookup channel through id tablesephe2016-01-223-38/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Vmbus event handler will need to find the channel by its relative id, when software interrupt for event happens. The original lookup searches the channel list, which is not very efficient. We now create a table indexed by the channel relative id to speed up the channel lookup. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: delphij, adrain, sephe, Dexuan Cui <decui microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4802
* | Fix bad title on script (caused by copy/paste)dteske2016-01-221-1/+1
| | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r294548
* | Add scripts for watching common entry points.dteske2016-01-224-1/+940
| | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
* | Provide busdma stubs for loader/kshimwma2016-01-222-1/+129
| | | | | | | | | | | | | | | | Simple bus space stubs require the VA-PA mapping to be identical. Approved by: hselasky, cognet (mentor) Differential revision: https://reviews.freebsd.org/D4314
* | Fix compilation errors in usb/kshimwma2016-01-222-1/+3
| | | | | | | | | | | | | | | | Remove old header from the include list and declare extern symbol for delay() function. Approved by: hselasky, cognet (mentor) Differential revision: https://reviews.freebsd.org/D5012
* | [flash] Teach mx25l SPI flash driver to interact with fdt_slicer and ↵adrian2016-01-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | geom_flashmap This teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c. This allows systems with SPI flash to benefit from the possibility to define flash 'slices' via FDT, just the same way that it's currently possible for CFI and NAND flashes. Tested: * Carambola 2, AR9331 + SPI NOR flash PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com>
* | Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to bearaujo2016-01-221-9/+6
| | | | | | | | | | | | | | | | | | tunable. Also it gets more close with the original implementation from OpenBSD. Requested by: rodrigc Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4970
* | Remove old generated unwind.h when using LLVM libunwindemaste2016-01-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | When not using LLVM libunwind, unwind.h is a generated header and a stale copy may remain in the OBJDIR after enabling LLVM libunwind. Explicitly remove it. Reported by: bz Reviewed by: bdrewery Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5019
* | - Separate sendfile(2) implementation from uipc_syscalls.c intoglebius2016-01-223-991/+1039
| | | | | | | | | | | | | | | | separate file. Claim my copyright. - Provide more comments, better function and structure names. - Sort out unneeded includes from resulting two files. No functional changes.
* | Provide new socket option TCP_CCALGOOPT, which stands for TCP congestionglebius2016-01-228-6/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | control algorithm options. The argument is variable length and is opaque to TCP, forwarded directly to the algorithm's ctl_output method. Provide new includes directory netinet/cc, where algorithm specific headers can be installed. The new API doesn't yet have any in tree consumers. The original code written by lstewart. Reviewed by: rrs, emax Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D711
* | Add an atomic_fetchadd_64() wrapper on sparc64.jhb2016-01-221-0/+1
| | | | | | | | Reviewed by: marius
OpenPOWER on IntegriCloud