summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r299595arybchik2016-06-041-4/+14
| | | | | | | | | | | | | | | sfxge(4): comment on when we assume multicast chaining is available It's the same on Medford as Huntington. Multicast chaining is not always on, even with Medford, as it's not supported by low latency firmware. Unlike the Linux driver, we don't need to support virtulization with firmware released before support for multicast chaining was added. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299594arybchik2016-06-042-5/+42
| | | | | | | | | | | | | | | | sfxge(4): avoid duplicate delivery of packets when changing multicast mode with multicast chaining enabled With multicast chaining, if e.g. a specific multicast filter is inserted and the multicast mis-match filter is then inserted, both may match a packet and cause it to be delivered. Copy the behaviour of the Linux driver, which is to remove the old filters first, on the basis that customers are more likely to be able to handle drops than duplicates (see bug49178 comment 4). Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299518arybchik2016-06-041-39/+83
| | | | | | | | | | | | sfxge(4): update multicast filter insertion algorithm When the multicast filters we're allowed to insert are controlled by the hypervisor, it may be that we can insert some but not others. So we need to have fallbacks where we insert any filters we can without rolling back when one fails to insert. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299517arybchik2016-06-0418-216/+216
| | | | | | | sfxge(4): cleanup: constify common code method tables Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299411arybchik2016-06-042-49/+65
| | | | | | | | | | | sfxge(4): update unicast filter insertion algorithm As unicast filters are not chained, we should always try to insert the specific filter for our MAC address, and then try to insert the unicast mis-match filter if that fails or all unicast has been requested. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299410arybchik2016-06-044-6/+6
| | | | | | | | | | sfxge(4): fix efx_filter_reconfigure parameter type This caused signed/unsigned errors in some subsequent patches. The only value passed to this is a uint32_t. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299407arybchik2016-06-047-88/+6
| | | | | | | sfxge(4): make efx_sram_test Siena-only Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299406arybchik2016-06-043-2/+8
| | | | | | | sfxge(4): add new Emerald board sensors to common code Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299405arybchik2016-06-042-42/+21
| | | | | | | sfxge(4): simplify efx_mac_select Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299404arybchik2016-06-043-19/+2
| | | | | | | sfxge(4): remove Falcon specific EV_GLOBAL support Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299403arybchik2016-06-045-60/+16
| | | | | | | sfxge(4): remove Falcon-specific code paths from common code Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299344arybchik2016-06-042-5/+1
| | | | | | | sfxge(4): cleanup: remove unneeded include files Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299340arybchik2016-06-042-57/+0
| | | | | | | sfxge(4): cleanup: remove unused efx_infer_family() Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299339arybchik2016-06-041-2/+1
| | | | | | | sfxge(4): cleanup: remove obsolete common code module Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299338, r299345arybchik2016-06-042-2/+2
| | | | | | | sfxge(4): cleanup: fix typos Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299337arybchik2016-06-041-11/+4
| | | | | | | sfxge(4): cleanup efx_check.h comments and error messages Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299320-r299328, r299330-r299336arybchik2016-06-0414-848/+112
| | | | | | | sfxge(4): remove EFSYS_OPT_FALCON and related EFSYS_OPT_ options Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299402arybchik2016-06-042-0/+428
| | | | | | | | | | | sfxge(4): add TLV format buffer manipulation functions for V3 licensing The licensing partition for V3 licensing will use the standard TLV format, so Medford licensing operations on the staging buffer are implemented using the TLV functions. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299319arybchik2016-06-041-28/+217
| | | | | | | | | | | | | sfxge(4): add TLV item manipulation functions to common code Add creation, deletion and checksumming operations to the private copy of TLV functions in the common code. Functions added in preparation for V3 licensing support, as licensing keys are stored in the TLV format. Missing support for multiple segment partitions added. Annotations for Windows code analysis also updated. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299318arybchik2016-06-045-4/+62
| | | | | | | | | | | sfxge(4): restructure TLV buffer validation Move TLV buffer validation into ef10-specific function and add accessor function which also converts the partition ID to the internal representation. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299254arybchik2016-06-044-40/+3
| | | | | | | | | sfxge(4): remove EFSYS_OPT_PCIE_TUNE With the removal of Falcon support, this is now dead code. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299253arybchik2016-06-044-19/+30
| | | | | | | | | | | | | sfxge(4): disable common code support for Falcon This patch ensures that client code will fail to build with Falcon support. Following patches remove Falcon support code entirely. sfxge(4) has never supported Falcon. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299252arybchik2016-06-042-4/+3
| | | | | | | sfxge(4): cleanup: fix obsolete EFSYS_OPT_PHY_BIST option Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299251arybchik2016-06-041-2/+2
| | | | | | | sfxge(4): Siena no longer supports EFSYS_OPT_PCIE_TUNE Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r299250arybchik2016-06-044-50/+0
| | | | | | | sfxge(4): remove unused efx_nic_pcie_extended_sync() Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r301105arybchik2016-06-043-24/+24
| | | | | | sfxge(4): cope with code duplication on SW events composition Sponsored by: Solarflare Communications, Inc.
* MFC r301075arybchik2016-06-043-19/+16
| | | | | | sfxge(4): avoid code duplication in SW events definition Sponsored by: Solarflare Communications, Inc.
* MFC r301067arybchik2016-06-042-18/+20
| | | | | | | | | sfxge(4): move definition of the SW events to sfxge.h Tx flush done event is defined and Rx-specific header is not a good place for it. Sponsored by: Solarflare Communications, Inc.
* MFC r301065arybchik2016-06-041-1/+5
| | | | | | | | | sfxge(4): zero should be used as RxQ label in SW event The buggy code was using the rxq index but should use the evq label associated with the rxq. It was missed in r298735. Sponsored by: Solarflare Communications, Inc.
* MFC r300365:kib2016-06-041-5/+0
| | | | | Remove zero assignments in the cdev allocator. cdp memory is requested with M_ZERO.
* MFC r300364:kib2016-06-041-13/+17
| | | | | | | | | | Improve handling of rdev->si_mountpt on mount and unmount of FFS volumes. Treat the field as a semaphore protecting availability of the device for mounting. Do no access devvp->v_rdev without the vnode lock owned. Protect change of the devvp->v_bufobj bo_ops vector with the vnode lock.
* MFC r300376:pfg2016-06-041-6/+3
| | | | | | | | | | | | | | | | ndis(4): Better mimic the behavior of rand() on Windows. In ndis(4) we expose a rand() function that was constantly reseeding with a time depending function every time it was called. This essentially broke the reasoning behind seeding, and rendered srand() a no-op. Keep it simple, just use random() and srandom() as it's meant to work. It would have been tempting to just go for arc4random() but we want to mimic Microsoft, and we don't need crypto-grade randomness here. PR: 209616
* MFC r301101:gjb2016-06-041-1/+0
| | | | | | | Turn off nfsv4acls for arm/armv6 builds, which has an impact on performance, especially with SD cards on certain SoCs. Sponsored by: The FreeBSD Foundation
* MFC r294832:hselasky2016-06-031-0/+30
| | | | | | | Implement ether_addr_equal(), ether_addr_equal_64bits() and random_ether_addr() for the LinuxKPI. Sponsored by: Mellanox Technologies
* MFC r300489:hselasky2016-06-031-1/+1
| | | | | | | Use DELAY() instead of _sleep() when SCHEDULER_STOPPED() is set inside pause_sbt(). This allows pause() to continue working during a panic() which is not invoking KDB. This is useful when debugging graphics drivers using the LinuxKPI.
* MFC r300282:hselasky2016-06-031-120/+226
| | | | | | | | | | Verify one sysctl parameter at a time. When a mlx5en sysctl parameter is updated only verify the changed one instead of all. No functional change. Sponsored by: Mellanox Technologies Tested by: Netflix
* MFC r300280:hselasky2016-06-033-19/+29
| | | | | | | | | | | Optimise use of doorbell and remove redundant NOPs Store the last doorbell write in the mlx5e_sq structure and write the doorbell to the hardware when the transmit routine finishes transmitting all queued mbufs. Sponsored by: Mellanox Technologies Tested by: Netflix
* MFC r300277:hselasky2016-06-034-39/+185
| | | | | | | | | | | | | | | | | | | Implement TX completion event interleaving. This patch implements a sysctl which allows setting a factor, N, for how many work queue elements can be generated before requiring a completion event. When a completion event happens the code simulates N completion events instead of only one. When draining a transmit queue, N-1 NOPs are transmitted at most, to force generation of the final completion event. Further a timer is running every HZ ticks to flush any remaining data off the transmit queue when the tx_completion_fact > 1. The goal of this feature is to reduce the PCI bandwidth needed when transmitting data. Sponsored by: Mellanox Technologies Tested by: Netflix
* MFC r301247: MFV r301238:delphij2016-06-03159-3085/+4301
| | | | | | | | | ntp 4.2.8p8. Security: CVE-2016-4957, CVE-2016-4953, CVE-2016-4954 Security: CVE-2016-4955, CVE-2016-4956 Security: FreeBSD-SA-16:24.ntp Relnotes: yes
* MFC r300667:hselasky2016-06-033-2/+32
| | | | | | Check for signals when locking the USB enumeration thread from userspace, so that USB applications can be killed if an enumeration thread should be stuck for various reasons.
* MFC r299060:hselasky2016-06-031-1/+3
| | | | | | Extend the UQ_NO_STRINGS quirk to also cover the USB language string descriptor. This fixes enumeration of some older Samsung Galaxy S3 phones.
* For EILSEQ case in mbsnrtowcs() and wcsnrtombs() update src to point toache2016-06-032-0/+3
| | | | | | | the character after the one this conversion stopped at. PR: 209907 Submitted by: Roel Standaert <roel@abittechnical.com> (partially)
* MFC r300322, 300340:pfg2016-06-031-5/+2
| | | | | | | | | | ed(1): Cleanups for the DES mode. - Use arc4random_buf(3). - Prevent a segmentation fault when ed receives a signal while being in getpass(). [1] Obtained from: OpenBSD [1] (CVS Rev. 1.15)
* MFC r300304:pfg2016-06-031-2/+2
| | | | | | gas/config/tc-arm.c: Minor re-sorting to match upstream history. No functional change.
* MFC r266941, r266955truckman2016-06-036-15/+105
| | | | | | | | | | | | | | | | | | | | | | | | | Needed for anticipated dummynet AQM MFC next week. r266941 | hiren | 2014-06-01 00:28:24 -0700 (Sun, 01 Jun 2014) | 9 lines ECN marking implenetation for dummynet. Changes include both DCTCP and RFC 3168 ECN marking methodology. DCTCP draft: http://tools.ietf.org/html/draft-bensley-tcpm-dctcp-00 Submitted by: Midori Kato (aoimidori27@gmail.com) Worked with: Lars Eggert (lars@netapp.com) Reviewed by: luigi, hiren r266955 | hiren | 2014-06-01 13:19:17 -0700 (Sun, 01 Jun 2014) | 5 lines DNOLD_IS_ECN introduced by r266941 is not required. DNOLD_* flags are for compat with old binaries. Suggested by: luigi Discussed with: hiren Relnotes: yes
* MFC r299121asomers2016-06-022-8/+26
| | | | | | mpr(4) and mps(4) shouldn't indefinitely retry for "terminated ioc" errors Sponsored by: Spectra Logic Corp
* Add missing file from r301145asomers2016-06-021-0/+2
| | | | | | | | This is a direct commit to stable/10, because it's fixing a mistake made in an MFC. I forgot to commit etc/mtree/BSD.tests.dist. Pointyhat to: asomers Sponsored by: Spectra Logic Corp
* MFC r300758:kib2016-06-021-0/+5
| | | | Prevent parallel object collapses.
* MFC r300756:kib2016-06-021-9/+6
| | | | Style.
* MFC r300705 (compensating for fortune moving from games to usr.bin)truckman2016-06-011-3/+9
| | | | | | | | | Avoid buffer overflow when copying the input file name and appending .dat. Check the return value from fread() to be sure that it was successful. Reported by: Coverity CID: 1006709, 1009452
OpenPOWER on IntegriCloud