summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge: r269884rodrigc2014-10-113-43/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | Complete the usr.bin/yacc kyua integration work I originally submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* Merge: r258931rodrigc2014-10-111-2/+6
| | | | | | | | | Add missing bits from the vendor's 2005-05-04 change to contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
* MFC r271784 - Fix the handling of EOP in status descriptors for if_igb(4)adrian2014-10-112-9/+8
| | | | | | | | | | | | | and don't double-free mbufs. Like ixgbe(4) chipsets, EOP is only set on the final descriptor in a chain of descriptors. So, to free the whole list of descriptors, we should free the current slot _and_ the assembled list of descriptors that make up the fragment list. The existing code was setting discard once it saw EOP + an error status; it then freed all the subsequent descriptors until the next EOP. That's totally the wrong order.
* MFC r271645 - Set DROP_EN on each RX queue if transmit flow-control is disabled.adrian2014-10-111-0/+13
| | | | | | | | | | | | | | | | | This allows the NIC to drop frames on the receive queue and not cause the MAC to block on receiving to _any_ queue. Tested: igb0@pci0:5:0:0: class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'I350 Gigabit Network Connection' class = network subclass = ethernet Discussed with: Eric Joyner <eric.joyner@intel.com> MFC after: 1 week Sponsored by: Norse Corp, Inc.
* MFC r271649 - Disable flow-director support until it's been debuggedadrian2014-10-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and verified. The flowdirector feature shares on-chip memory with other things such as the RX buffers. In theory it should be configured in a way that doesn't interfere with the rest of operation. In practice, the RX buffer calculation didn't take the flow-director allocation into account and there'd be overlap. This lead to various garbage frames being received containing what looks like internal NIC state. What _I_ saw was traffic ending up in the wrong RX queues. If I was doing a UDP traffic test with only one NIC ring receiving traffic, everything is fine. If I fired up a second UDP stream which came in on another ring, there'd be a few percent of traffic from both rings ending up in the wrong ring. Ie, the RSS hash would indicate it was supposed to come in ring X, but it'd come in ring Y. However, when the allocation was fixed up, the developers at Verisign still saw traffic stalls. The flowdirector feature ends up fiddling with the NIC to do various attempts at load balancing connections by populating flow table rules based on sampled traffic. It's likely that all of that has to be carefully reviewed and made less "magic". So for now the flow director feature is disabled (which fixes both what I was seeing and what they were seeing) until it's all much more debugged and verified. Tested: * (me) 82599EB 2x10G NIC, RSS UDP testing. * (verisign) not sure on the NIC (but likely 82599), 100k-200k/sec TCP transaction tests. Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com> Sponsored by: Verisign, Inc.
* MFC r271648 - The error bits are not valid with EOP=0; so intermediaryadrian2014-10-112-8/+1
| | | | | | | fragments should not be discarded. Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com> Sponsored by: Verisign, Inc.
* Merge r271647 - Fix a double-free of mbufs in rx_ixgbe_discard().adrian2014-10-111-6/+7
| | | | | | | | fmp->buf at the free point is already part of the chain being freed, so double-freeing is counter-productive. Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com> Sponsored by: Verisign, Inc.
* Merge: r268812rodrigc2014-10-111-0/+2
| | | | Add the mtree entry for yacc tests
* MFC r272885:hrs2014-10-111-8/+1
| | | | | Do not add late flag when file= is specified because it has a bad side-effect. The specified file should exist before the fstab line.
* Merge: r272769rodrigc2014-10-1112-399/+705
| | | | | | Import byacc 20141006 PR: 193499
* Merge: 272655rodrigc2014-10-11104-1497/+8019
| | | | Import byacc 20141005 from vendor
* Merge: r272649rodrigc2014-10-113-1/+8
| | | | | | | | use calloc in get_line() when allocating line to ensure it is fully initialized, fixes a later uninitialized value in copy_param() (FreeBSD #193499). PR: 193499 Submitted by: Thomas E. Dickey <tom@invisible-island.net>
* Merge: r268811rodrigc2014-10-11124-15657/+508
| | | | | | | Update to byacc 20140715 PR: 191020 Submitted by: gcooper (yaneurabeya@gmail.com)
* MFC r272538:kib2014-10-111-5/+4
| | | | | Slightly reword comment. Move code, which is described by the comment, after it.
* MFC r272536:kib2014-10-115-0/+58
| | | | Add kernel option KSTACK_USAGE_PROF.
* Switch stable/10 back to -PRERELEASE now that releng/10.1 isgjb2014-10-111-1/+1
| | | | | | branched. Sponsored by: The FreeBSD Foundation
* MFC r272487:ae2014-10-111-0/+3
| | | | Add UUID of FreeBSD slice to GPT scheme.
* MFC r272762: Correct scale factor for T terabyte suffixemaste2014-10-111-1/+1
| | | | PR: 194250
* MFC r271879:pfg2014-10-103-5/+7
| | | | | | | | | | | awk: Use random(3) instead of rand(3) While none of them is considered even near to cryptographic level, random(3) is a better random generator than rand(3). Use random(3) for awk as is done in other systems. PR: 193147
* MFC 270828,271487,271495:jhb2014-10-105-10/+241
| | | | | Add sysctls to export the BIOS SMAP and EFI memory maps along with handlers in the sysctl(8) binary to format them.
* MFC r272713:bz2014-10-101-1/+1
| | | | | | | | | | | Since introducing the extra mapping in r250103 (head) for architectural performance events we have actually counted 'Branch Instruction Retired' when people asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask mnemonic. Reviewed by: jimharris Discussed with: gnn, rwatson Sponsored by: DARPA/AFRL
* MFC r272474:smh2014-10-103-6/+58
| | | | | | Fix various issues with zvols Sponsored by: Multiplay
* MFC r271589:smh2014-10-102-10/+87
| | | | | | | | | Added missing ZFS sysctls This also includes small additional direct changes as it still uses the old way of handling tunables. Sponsored by: Multiplay
* MFC r271754:smh2014-10-102-19/+0
| | | | | | Remove unused ZFS ARC functions Sponsored by: Multiplay
* MFC r271802:smh2014-10-105-2/+51
| | | | | | | | | | | | Add dtrace probe support for zfs SET_ERROR(..) MFC r271873: Fix static kernel build with options ZFS MFC r271819: Remove sys/types.h include as per style (9) Sponsored by: Multiplay
* MFC r270759:smh2014-10-104-54/+150
| | | | | | | | | | | | Refactor ZFS ARC reclaim logic to be more VM cooperative MFC r270861: Ensure that ZFS ARC free memory checks include cached pages MFC r272483: Refactor ZFS ARC reclaim checks and limits Sponsored by: Multiplay
* MFC r272393:hrs2014-10-091-5/+38
| | | | | | Resurrect set_rcvar() as a function to define a rc.conf variable. It defines a variable and its default value in load_rc_config() just after rc.conf is loaded. "rcvar" command shows the current and the default values.
* MFC r271921:hrs2014-10-091-1/+1
| | | | Fix a typo.
* MFC r271919:hrs2014-10-095-7/+35
| | | | | | | Fix a bug which could make routed(8) daemon exit by sending a special RIP query from a remote machine, and disable accepting it by default. This requests a routed(8) daemon to dump routing information base for debugging purpose. An -i flag to enable it has been added.
* MFC r271909:hrs2014-10-091-8/+2
| | | | | Revert changes in r269180. It could cause -c N option to enter an infinite loop if no reply packet is received.
* MFC r271663:hrs2014-10-092-4/+4
| | | | Fix a typo; master server for iprop service should be singular.
* MFC r271628:hrs2014-10-091-5/+5
| | | | Use generic SYSCTL_* macro instead of deprecated SYSCTL_VNET_*.
* MFC r271545, 271610:hrs2014-10-094-18/+38
| | | | | Make net.inet.ip.sourceroute, net.inet.ip.accept_sourceroute, and net.inet.ip.process_options vnet-aware.
* MFC r271411:hrs2014-10-091-1/+6
| | | | | | Fix a bug which could break extended attributes in a dump output. This occurred when a file was >892kB long and had a large data (>1kB) in the extended attributes.
* MFC r271410:hrs2014-10-091-6/+10
| | | | Fix header output when -P is specified and (ncpus - 1) != maxid.
* MFC r271145:hrs2014-10-091-4/+4
| | | | | Fix a bug which prevented mount.fstab parameter from being converted when jail_JID_devfs_enable=NO.
* MFC r270836:hrs2014-10-091-0/+2
| | | | Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
* MFC r270783:hrs2014-10-091-26/+24
| | | | | Return false status only when adding a route is failed. It could erroneously return false due to an afexists() check loop in routing_start().
* MFC r270782:hrs2014-10-0910-48/+167
| | | | | | | | | | | | | | | | | | | | | | | | | Restructure rc.d scripts for kerberos5 daemons: - Rename $kerberos5_server_enable with $kdc_enable and rename rc.d/kerberos with rc.d/kdc. - Rename $kadmin5_server_enable with $kadmind_enable. - Rename ${kerberos5,kpasswdd}_server with ${kdc,kpasswdd}_program. - Fix rc.d/{kadmind,kerberos,kpasswdd,kfd} scripts not to change variables after load_rc_config(). - Add rc.d/ipropd_master and rc.d/ipropd_slave scripts. These are for iprop-master(8) and iprop-slave(8). Keytab used for iprop service is defined in ipropd_{master,slave}_keytab (/etc/krb5.keytab by default). - Add dependency on rc.d/kdc to SERVERS. rc.d/kdc must be invoked as early as possible before scripts divided by rc.d/SERVERS. Note that changes to rc.d/{kdc,kpasswdd,kadmind} are backward-compatible with the old configuration variables: ${kerberos5,kpasswdd,kadmin5}_server{,_enable,_flags}.
* MFC r270780:hrs2014-10-093-25/+18
| | | | | | | | Fix rc.d/gssd script to define the default values in a standard way. MFC r270781: - Add a warning message when an IPv6 address is specified with no prefixlen. - Use a parameter argument in jls(8) instead of doing grep.
* MFC r270234:hrs2014-10-091-0/+2
| | | | | | Recover sin6_scope_id of gateway addresses in riprecv() by using the if_index where a RIP packet was received. This fixes a bug which prevented gateway addresses in fe80::/64 from being added.
* MFC r269054:hrs2014-10-092-0/+4
| | | | | | | | Fix EtherIP. TOS field must be initialized when the inner protocol is PF_LINK, and multicast/broadcast flag should always be dropped because the outer protocol uses unicast even when the inner address is not for unicast. It had been broken since r236951 when gif_output() started to use IFQ_HANDOFF().
* MFC r266267, r267636:hrs2014-10-091-2/+2
| | | | | Fix an issue in range specification handling when a "-foo" is specified in ifconfig_IF_aliasN.
* MFC r266248:hrs2014-10-091-2/+16
| | | | | | | | Cancel DAD for an ifa when the ifp has ND6_IFF_IFDISABLED as early as possible and do not clear IN6_IFF_TENTATIVE. If IFDISABLED was accidentally set after a DAD started, TENTATIVE could be cleared because no NA was received due to IFDISABLED, and as a result it could prevent DAD when manually clearing IFDISABLED after that.
* MFC r265225:hrs2014-10-091-7/+10
| | | | | | Move configuration of IPv6 NDP flags to a point before handling ifconfig_IF. This fixes a race that a non-IPv4 interface can get an EUI64 LLA even if it has IFDISABLED nd6 flag at boot time.
* MFC r266177:hrs2014-10-091-3/+6
| | | | | | | - Do not override sin6_scope_id in LLA when it is already set to non-zero. This fixes destination list in output of netstat -r. - Plug a memory leak. - Add RTM_VERSION check.
* MFC r257036:hrs2014-10-091-6/+12
| | | | | | | | | | | | Return 0 if: 1. "-u N" specified, no -f, and mdN found, 2. no -u, "-f /pathname" specified, and mdN associated with /pathname found, 3. "-u N" specified, "-f /pathname" specified, and both of them found, 4. "-l" specified and no -f, 5. "-l" specified, "-f /pathname" specified, and /pathname found. otherwise return -1.
* MFC r256715:hrs2014-10-091-1/+2
| | | | Use long explicitly for the time difference.
* MFC r256695:hrs2014-10-093-10/+42
| | | | | | - Add relative specification in expiration time. - Add proto3 option for RTF_PROTO3. - Use %lu for members of struct rt_metrics.
* MFC r258580:hrs2014-10-0926-996/+690
| | | | | | | | | | | | | | | | | | | | | Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009. MFC r258581, 258582: Replace Sun Industry Standards Source License for Sun RPC code with a 3-clause BSD license as specified by Oracle America, Inc. in 2010. This license change was approved by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation. MFC r259117, 259118: Replace Sun RPC license with a 3-clause BSD license. This license change was approved in 2010 by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation. MFC r259417: Replace Sun RPC license for TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009. The code in question in this file was copied from lib/libc/rpc/pmap_getport.c.
OpenPOWER on IntegriCloud