summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add blacklist support to sshdlidl2016-06-079-0/+152
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo (earlier version of changes) Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5915
* ng_mppc(4): Bring netgraph(3) MPPC compression support.pfg2016-06-071-7/+1
| | | | Documentation change missing from r301549.
* ng_mppc(4): Bring netgraph(3) MPPC compression support.pfg2016-06-074-2/+646
| | | | | | | | | | | | | | | Support for compression has been available from July 2007 but it was never imported due to concerns with patents once held by STAC/HiFn. The issues have clearly been resolved so bring it in now. Special thanks to Brett Glass for preserving the code and pointing documentation for the expiration case. Obtained from: mav (through Brett Glass) Relnotes: yes MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6739
* ext2fs: cleanup generation number management.pfg2016-06-072-11/+3
| | | | | | | | | | | | | | Ext2/3/4 manages generation numbers differently than UFS so adopt some rules that should work well. When allocating a new inode, make sure we generate a "good" random value specifically avoiding zero. Don't interfere with the numbers that are already generated in the filesystem: ext2fs doesn't have the backwards compatibility issues where there were no generation numbers. Reviewed by: kevlo MFC after: 1 week
* Document 300779, Dummynet AQM version 0.2.1skreuzer2016-06-071-0/+4
| | | | Approved by: re (gjb, implicit, relnotes)
* Add SR-IOV guest support to the mlx5en driver.hselasky2016-06-075-0/+526
| | | | | | | | | This patch adds the missing pieces needed for device setup using the mlx5en driver inside a virtual machine which is providing hardware access through SR-IOV. Sponsored by: Mellanox Technologies MFC after: 1 week
* Fallback to arc4rand() in the LinuxKPI when read_random() returnshselasky2016-06-072-4/+7
| | | | | | | zero. This can happen for virtual machines. MFC after: 1 week Sponsored by: Mellanox Technologies
* Remove temporary solution for storing interrupt mapping data asskra2016-06-072-157/+11
| | | | | | it's not needed after r301451 and follow-ups r301453, r301539. This makes INTRNG clean of all additions related to various buses.
* cxgbe(4): A couple of fixes to set_sched_queue.np2016-06-071-6/+8
| | | | | | | | | | - Validate the scheduling class against the actual limit (which is chip specific) instead of a magic number. - Return an error if an attempt is made to manipulate the tx queues of a VI that hasn't been initialized. Sponsored by: Chelsio Communications
* Bump date in both manpages.araujo2016-06-072-2/+2
| | | | Reported by: rodrigc
* cxgbe(4): Provide information about traffic classes in the sysctl mib.np2016-06-071-1/+122
| | | | Sponsored by: Chelsio Communications
* INTRNG: As follow up of r301451, implement mapping and configurationmmel2016-06-074-44/+46
| | | | | | | of gpio pin interrupts by new way. Note: This removes last consumer of intr_ddata machinery and we remove it in separate commit.
* net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash propertiessephe2016-06-0713-23/+23
| | | | | | Reviewed by: hps, erj, tuexen Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6688
* [ath3k] add a replacement ath3k firmware loading tool.adrian2016-06-079-307/+1052
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is influenced by the ath3k driver from linux (circa 2013, this is how long I've been sitting on this.) It handles loading in firmware using the newer model, where it assembles the right set of firmware blobs and board configuration based on the device list and querying the device. The older utility could only load in a single image - which sometimes was ath3k-1.fw and sometimes was ath3k-2.fw. However, the ath3k maintainers didn't want to keep adding in binaries that were just derivatives with a separate board config, so they deleted ath3k-2.fw from the Linux firmware repository and instead, well, did this. Now, this has been tested against AR3011 and AR3012 NICs from the AR9285+BT combo up through to the QCA9565+BT combo. It doesn't yet work with the QCAFN222 NIC as that is some newer chip. The firmware can be grabbed from https://github.com/erikarn/ath3kfw/ in the share/firmware/ath3k directory. I'll update this utility over time to support the newer firmware drops (newer than mid-2013) which should pull in the QCNFA222 and subsequent chips. Tested: * AR9285 + BT * AR9287 + BT * AR9485 + BT * AR9462 + BT * QCA9565 + BT
* Add an entry on rc.conf(5) explaining the new optionsaraujo2016-06-072-1/+19
| | | | | | | | | | nis_ypldap_enable and nis_ypldap_flags. Also add an entry on ypldap(8) that it is a feature ready and appears on FreeBSD 11.0. Requested by: rodrigc Relnotes: Yes
* cxgbe(4): Track the state of the hardware traffic schedulers in thenp2016-06-072-0/+30
| | | | | | | driver. This works as long as everyone uses set_sched_class_params to program them. Sponsored by: Chelsio Communications
* After tearing down the interface per-"domain" bits, set the data areabz2016-06-061-1/+3
| | | | | | | | | | to NULL to avoid it being mis-treated on a possible re-attach but also to get a clean NULL pointer derefence in case of errors due to unexpected race conditions elsewhere in the code, e.g., callouts. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* newsyslog: Eliminate unnecessary sleep(10) when -R and -s are specifiedvangyzen2016-06-061-7/+9
| | | | | | | | | | | | | | | | | | After going through the signal work list, during which do_sigwork() is called and essentially does nothing because -s and -R were specified on the command line, newsyslog will sleep for 10 seconds as the (verbose) code says: "Pause 10 seconds to allow daemon(s) to close log file(s)". However, the man page verbiage for -R (and -s) seems quite clear that this sleep() is unnecessary because the daemon was expected to have already closed the log file before calling newsyslog. PR: 210020 Submitted by: David A. Bright <david_a_bright@dell.com> MFC after: 1 week Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D6727
* cxgbe(4): Break up set_sched_class. Validate the channel number andnp2016-06-061-128/+108
| | | | | | | min/max rates against their actual limits (which are chip and port specific) instead of hardcoded constants. Sponsored by: Chelsio Communications
* Make KASSERT message more useful by printing the variables on whichbz2016-06-061-1/+2
| | | | | | | | we assert. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add a `show igi_list` command to DDB to debug IGMP state.bz2016-06-062-0/+44
| | | | | | Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Implement a `show panic` command to DDB which will helpfully print thebz2016-06-063-1/+60
| | | | | | | | | | | | | | | | panic string again if set, in case it scrolled out of the active window. This avoids having to remember the symbol name. Also add a show callout <addr> command to DDB in order to inspect some struct callout fields in case of panics in the callout code. This may help to see if there was memory corruption or to further ease debugging problems. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Reviewed by: jhb (comment only on the show panic initally) Differential Revision: https://reviews.freebsd.org/D4527
* cxgbe(4): Create a reusable struct type for scheduling class parameters.np2016-06-061-13/+15
| | | | Sponsored by: Chelsio Communications
* Defer the creation of ACPI thermal kthreads to a startup sysinit.jhb2016-06-061-35/+44
| | | | | | The SYSINIT runs at SI_SUB_KICK_SCHEDULER after the scheduler is fully initialized and timers are working. This fixes booting in the EARLY_AP_STARTUP case.
* Update blacklist support in ftpd to clarify fd usagelidl2016-06-062-13/+11
| | | | | | | | | | | | | The ftp daemon dups the control socket to stdin and uses that fd throughout the code. Clarify this usage slightly by changing from explicit use of "0" for the fd to a variable, to make it clear what the zero represents in the non-blacklist code. Make the blacklist_notify routine use STDIN_FILENO so as to have less of a "magic number" feel to the code. Reviewed by: cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6716
* cxgbetool: Allow max-rate > 10Gbps for rate-limited traffic.np2016-06-061-2/+2
| | | | Sponsored by: Chelsio Communications
* Turn off blacklistd daemon in defaultslidl2016-06-061-1/+1
| | | | | | | | Reported by: Matteo Riondato ( matteo @ FreeBSD.org ) Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation
* Similarly to r301505 protect the removal of the ifa from the if_addrheadbz2016-06-061-1/+4
| | | | | | | | by a lock (as well as the check that the list is not empty). Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* indent(1): Fix typo.pfg2016-06-061-1/+1
| | | | | | | It's typedef, not typdef. Obtained from: OpenBSD (CVS rev. 1.20) MFC after: 3 days
* xen-netfront: fix initializationroyger2016-06-061-5/+18
| | | | | | | | | | | | | | A couple of mostly cosmetic fixes for the final initialization of netfront: - Switch to "connected" state before starting to kick the rings. - Correctly use "rxq" in the initialization loop (previously rxq was not updated in the loop, and netfront would kick np->rxq[N] several times). - Declare and define xn_connect as static, it's not used outside of this file. Reviewed by: Wei Liu <wei.liu2@citrix.com> Sponsored by: Citrix Systems R&D Differential revision: https://reviews.freebsd.org/D6657
* xen: Correct typo in #undef for symbol NBPLroyger2016-06-061-1/+1
| | | | | Submitted by: Akshay Jaggi <akshay1994.leo@gmail.com> Reviewed by: royger
* Move the callout_reset() to the end of the work not having it stickbz2016-06-061-3/+4
| | | | | | | | before we do anything. Obtained from: projects/vnet MFC after: 2 week Sponsored by: The FreeBSD Foundation
* In if_purgeaddrs() we cannot hold the lock over the entire loopbz2016-06-061-0/+3
| | | | | | | | | | due to called functions (as in other parts of the stack, leave a comment). Put around a lock the removal of the ifa from the list however to reduce the possible race with other places. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Destroy the mutex last. In this case it should not matter, butbz2016-06-061-1/+1
| | | | | | | | | generally cleanup code might still acquire it thus try to be consistent destroying locks late. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* SYSINIT functions do not return a value; switch to void, removebz2016-06-061-6/+4
| | | | | | | | the return value, and mark the unused argument __unused. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Provide a public interface to rt_flushifroutes which takes the addressbz2016-06-062-0/+10
| | | | | | | | family as an argument as well. This will be used to cleanup individual protocols during VNET teardown. Obtained from: projects/vnet Sponsored by: The FreeBSD Foundation
* Make the KASSERT message more helpful by also printing the ifp informationbz2016-06-061-1/+2
| | | | | | | | which we are asserting. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Remove erroneous lock assertionssgalabov2016-06-061-2/+0
| | | | | | | | In mediatek etherswitch support, functions mtkswitch_reg_write32_mt7621 and mtkswitch_reg_read32_mt7621 are called without locks held, so lock assertions fail. Remove the lock assertions. Sponsored by: Smartcom - Bulgaria AD
* Add support to priority code point (PCP) that is an 3-bit fieldaraujo2016-06-067-17/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | which refers to IEEE 802.1p class of service and maps to the frame priority level. Values in order of priority are: 1 (Background (lowest)), 0 (Best effort (default)), 2 (Excellent effort), 3 (Critical applications), 4 (Video, < 100ms latency), 5 (Video, < 10ms latency), 6 (Internetwork control) and 7 (Network control (highest)). Example of usage: root# ifconfig em0.1 create root# ifconfig em0.1 vlanpcp 3 Note: The review D801 includes the pf(4) part, but as discussed with kristof, we won't commit the pf(4) bits for now. The credits of the original code is from rwatson. Differential Revision: https://reviews.freebsd.org/D801 Reviewed by: gnn, adrian, loos Discussed with: rwatson, glebius, kristof Tested by: many including Matthew Grooms <mgrooms__shrew.net> Obtained from: pfSense Relnotes: Yes
* sfxge(4): update TX vFIFO ULL tag location to avoid merge conflictarybchik2016-06-061-2/+2
| | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 1 week
* sfxge(4): pick an RSS bucket for the packet enqueued and select TXQ accordinglyarybchik2016-06-061-0/+18
| | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6723
* sfxge(4): set up the indirection table using the kernel-driven RSS bucket idsarybchik2016-06-061-0/+5
| | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6722
* sfxge(4): bind interrupts to CPUs in accordance with bucket to CPU maparybchik2016-06-061-0/+11
| | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6721
* sfxge(4): restrict the maximum number of RSS channels by the number of RSS ↵arybchik2016-06-061-0/+22
| | | | | | | | | | | | buckets This is done because one has no point to have more channels since they will be unused. Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6720
* sfxge(4): get RSS key to be programmed into NIC from the kernelarybchik2016-06-061-0/+13
| | | | | | | Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6719
* sfxge(4): prepare sfxge to be RSS API awarearybchik2016-06-061-1/+1
| | | | | | | | | | | This change is needed because 'opt_rss.h' is included by multiple source files and RSS macro is defined as 1 within the file during build process if option RSS is enabled in the kernel. Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6718
* hyperv/vmbus: Constify channel messagesephe2016-06-063-38/+44
| | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6708
* hyperv/vmbus: Factor out channel message processingsephe2016-06-064-32/+38
| | | | | | | | This paves the way for further cleanup. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6707
* [bwn] don't use a 1MB CCK RTS frame for 11a OFDM transmissions.adrian2016-06-061-4/+5
|
* hyperv/vmbus: Define type for channel messages.sephe2016-06-063-4/+10
| | | | | | | | And fix message processing; only channel messages are supported. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6706
OpenPOWER on IntegriCloud