summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Merge ACPICA 20120816.jkim2012-08-1644-653/+2193
|\
* | Update to latest git version of dtc to get new dtsv2 support,imp2012-07-247-57/+581
| | | | | | | | | | | | | | | | | | | | | | including the include directive. Fix minor build issue corrected by converting yypush_buffer_state and yypop_buffer_state to yy_set_buffer_state and a hard-coded 100-deep stack. It was easier to fix it here than to import that support into our flex. The new tools and test hardness remain unsupported at the moment.
* | Use M_NOWAIT while holding the pf giant lock.glebius2012-07-151-2/+1
| |
* | Merge ACPICA 20120711.jkim2012-07-1137-450/+965
|\ \ | |/
* | MFV: r237650jkim2012-06-271-11/+15
| | | | | | | | | | | | | | Do not malloc(9) while holding a spin lock, to avoid panic. Reported by: kib (and many others) Tested by: kib (and many others)
* | Add new firmware for the g2a (6205) and g2b (623x) devices.bschmidt2012-06-272-0/+19794
| | | | | | | | MFC after: 3 days
* | Merge ACPICA 20120620.jkim2012-06-2231-187/+990
|\ \ | |/
* | - Updated TOE support in the kernel.np2012-06-195-16/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible)
* | Merge revision 1.715 from OpenBSD:glebius2012-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | date: 2010/12/24 20:12:56; author: henning; state: Exp; lines: +3 -3 in pf_src_connlimit, the indices to sk->addr were swapped. tracked down and diff sent by Robert B Mills <rbmills at sdf.lonestar.org> thanks, very good work! ok claudio Impact is that the "flush" keyword didn't work. Obtained from: OpenBSD MFC after: 1 week
* | Correct table counter functionality to not panic.eri2012-05-313-2/+5
| | | | | | | | | | | | | | | | This was caused by not proper initialization of necessary parameters. PR: 168200 Reviewed by: bz@, glebius@ MFC after: 1 week
* | Merge ACPICA 20120518.jkim2012-05-2429-97/+528
| |
* | Revert r234834 per luigi@ request.melifaro2012-05-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | Cleaner solution (e.g. adding another header) should be done here. Original log: Move several enums and structures required for L2 filtering from ip_fw_private.h to ip_fw.h. Remove ipfw/ip_fw_private.h header from non-ipfw code. Requested by: luigi Approved by: kib(mentor)
* | Move several enums and structures required for L2 filtering from ↵melifaro2012-04-301-1/+0
| | | | | | | | | | | | | | | | | | ip_fw_private.h to ip_fw.h. Remove ipfw/ip_fw_private.h header from non-ipfw code. Approved by: ae(mentor) MFC after: 2 weeks
* | Merge ACPICA 20120420.jkim2012-04-2334-1366/+1607
|\ \ | |/
* | Fix the following compilation warnings in sys/contrib/rdma/rdma_cma.c:dim2012-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/contrib/rdma/rdma_cma.c:1259:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ECONNRESET: ^ @/sys/errno.h:118:20: note: expanded from macro 'ECONNRESET' #define ECONNRESET 54 /* Connection reset by peer */ ^ sys/contrib/rdma/rdma_cma.c:1263:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ETIMEDOUT: ^ @/sys/errno.h:124:19: note: expanded from macro 'ETIMEDOUT' #define ETIMEDOUT 60 /* Operation timed out */ ^ sys/contrib/rdma/rdma_cma.c:1260:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ECONNREFUSED: ^ @/sys/errno.h:125:22: note: expanded from macro 'ECONNREFUSED' #define ECONNREFUSED 61 /* Connection refused */ ^ This is because the switch uses iw_cm_event::status, which is an enum iw_cm_event_status, while ECONNRESET, ETIMEDOUT and ECONNREFUSED are just plain defines from errno.h. It looks like there is only one use of any of the enumeration values of iw_cm_event_status, in: sys/contrib/rdma/rdma_iwcm.c: if (iw_event->status == IW_CM_EVENT_STATUS_ACCEPTED) { So messing around with the enum definitions to fix the warning seems too disruptive; the simplest fix is to cast the argument of the switch to int. Reviewed by: kmacy MFC after: 1 week
* | Fix VIMAGE build.ae2012-04-051-0/+4
| |
* | Merge from OpenBSD:glebius2012-04-041-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | revision 1.173 date: 2011/11/09 12:36:03; author: camield; state: Exp; lines: +11 -12 State expire time is a baseline time ("last active") for expiry calculations, and does _not_ denote the time when to expire. So it should never be added to (set into the future). Try to reconstruct it with an educated guess on state import and just set it to the current time on state updates. This fixes a problem on pfsync listeners where the expiry time could be double the expected value and cause a lot more states to linger.
* | Since pf 4.5 import pf(4) has a mechanism to deferglebius2012-04-032-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | forwarding a packet, that creates state, until pfsync(4) peer acks state addition (or 10 msec timeout passes). This is needed for active-active CARP configurations, which are poorly supported in FreeBSD and arguably a good idea at all. Unfortunately by the time of import this feature in OpenBSD was turned on, and did not have a switch to turn it off. This leaked to FreeBSD. This change make it possible to turn this feature off via ioctl() and turns it off by default. Obtained from: OpenBSD
* | MFV: r233615jkim2012-03-284-109/+61
| | | | | | | | | | | | | | | | Revert r233555 and apply a fix for the reference counting regressions. Tested by: andreast, lme, nwhitehorn, Sevan / Venture37 (venture37 at gmail dot com) Submitted by: Robert Moore (robert dot moore at intel dot com)
* | MFV: r233551jkim2012-03-271-0/+2
| | | | | | | | | | | | Fix two possible memory leaks in error path. Obtained from: ACPICA
* | MFV: r233550jkim2012-03-274-58/+109
| | | | | | | | | | | | | | | | Temporarily revert an upstream commit. This change caused regressions for too many laptop users. Especially, automatic repair for broken _BIF caused strange reference counting issues and kernal panics. This reverts: https://github.com/otcshare/acpica/commit/c995fed15ab41f6feae1299876271ea330f5c1c5
* | Update the firmware to version 0.236bschmidt2012-03-211-145/+145
| | | | | | | | | | Submitted by: PseudoCylon MFC after: 2 weeks
* | Merge ACPICA 20120320.jkim2012-03-2047-325/+3667
|\ \ | |/
* | Import the latest microcode.h which was used to generate the currentbschmidt2012-03-142-12/+3032
| | | | | | | | | | | | firmware files and adjust the Makefile. Obtained from: OpenBSD
* | Update the rt2860's firmware and add a Makefile for the module. Whilebschmidt2012-03-132-3116/+100
| | | | | | | | | | | | | | | | here remove the ucode header file which was used to generate the fw files but by now is outdated. Reviewed by: ray Obtained from: OpenBSD
* | Remove some files not used by the FreeBSD kernel which have been adding quitejmallett2012-03-1328-361410/+6
| | | | | | | | a bit of bloat to the kernel source tree's size.
* | Disable the Simple Executive's error decoding/reporting code.jmallett2012-03-117-5/+19
| |
* | Do not try to use libfdt in FreeBSD.jmallett2012-03-111-0/+2
| |
* | Remove files not needed by FreeBSD.jmallett2012-03-1114-3387/+0
| |
* | Merge the Cavium Octeon SDK 2.3.0 Simple Executive code and update FreeBSD tojmallett2012-03-11286-31793/+293909
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make use of it where possible. This primarily brings in support for newer hardware, and FreeBSD is not yet able to support the abundance of IRQs on new hardware and many features in the Ethernet driver. Because of the changes to IRQs in the Simple Executive, we have to maintain our own list of Octeon IRQs now, which probably can be pared-down and be specific to the CIU interrupt unit soon, and when other interrupt mechanisms are added they can maintain their own definitions. Remove unmasking of interrupts from within the UART device now that the function used is no longer present in the Simple Executive. The unmasking seems to have been gratuitous as this is more properly handled by the buses above the UART device, and seems to work on that basis.
* | Merge from OpenBSD:glebius2012-03-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | revision 1.146 date: 2010/05/12 08:11:11; author: claudio; state: Exp; lines: +2 -3 bzero() the full compressed update struct before setting the values. This is needed because pf_state_peer_hton() skips some fields in certain situations which could result in garbage beeing sent to the other peer. This seems to fix the pfsync storms seen by stephan@ and so dlg owes me a whiskey. I didn't see any storms, but this definitely fixes a useless memory allocation on the receiving side, due to non zero scrub_flags field in a pfsync_state_peer structure.
* | Merge multi-FIB IPv6 support from projects/multi-fibv6/head/:bz2012-02-175-53/+67
| | | | | | | | | | | | | | | | | | | | | | | | Extend the so far IPv4-only support for multiple routing tables (FIBs) introduced in r178888 to IPv6 providing feature parity. This includes an extended rtalloc(9) KPI for IPv6, the necessary adjustments to the network stack, and user land support as in netstat. Sponsored by: Cisco Systems, Inc. Reviewed by: melifaro (basically) MFC after: 10 days
* | Merge ACPICA 20120215.jkim2012-02-16170-813/+1774
|\ \ | |/
* | Allocate our mbuf with m_get2().glebius2012-01-171-24/+10
| |
* | Remove spurious 8bit chars, turning files into plain ASCII.uqs2012-01-153-3/+3
| |
* | Revert to the old behavior of allocating table/table entries usingcsjp2012-01-141-12/+4
| | | | | | | | | | | | | | | | | | | | M_NOWAIT. Currently, the code allows for sleeping in the ioctl path to guarantee allocation. However code also handles ENOMEM gracefully, so propagate this error back to user-space, rather than sleeping while holding the global pf mutex. Reviewed by: glebius Discussed with: bz
* | - Do not enumerate PCIe bus on CN56XX Pass 1 devices to avoid hard hang.gonzo2012-01-131-0/+6
| | | | | | | | | | | | There is known issue with this hardware. Submitted by: Andrew Duane <aduane@juniper.net>
* | Merge ACPICA 20120111.jkim2012-01-11252-413/+965
|\ \ | |/
* | Redo r226660:glebius2012-01-111-35/+27
| | | | | | | | | | | | | | | | | | - Define schednetisr() to swi_sched. - In the swi handler check if there is some data prepared, and if true, then call pfsync_sendout(), however tell it not to schedule swi again. - Since now we don't obtain the pfsync lock in the swi handler, don't use ifqueue mutex to synchronize queue access.
* | Fix some spacing in code under __FreeBSD__.glebius2012-01-111-10/+10
| |
* | Add necessary locking in pfsync_in_ureq().glebius2012-01-111-6/+7
| |
* | Move PF_LOCK_ASSERT() under __FreeBSD__.glebius2012-01-111-1/+1
| |
* | Merge from OpenBSD:glebius2012-01-111-4/+1
| | | | | | | | | | | | | | revision 1.128 date: 2009/08/16 13:01:57; author: jsg; state: Exp; lines: +1 -5 remove prototypes of a bunch of functions that had their implementations removed in pfsync v5.
* | When running with INVARIANTS the mutex(9) code does all necessaryglebius2012-01-111-9/+2
| | | | | | | | asserts for non-recursive mutexes.
* | Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storageglebius2012-01-091-2/+1
| | | | | | | | to another mbuf.
* | Backout of backout: we need SI_SUB_PROTO_DOMAIN for pfsync, sinceglebius2012-01-091-1/+1
| | | | | | | | it needs existing inetdomain on startup.
* | Revert sub argument of MODULE_DECLARE back to r226532.glebius2012-01-092-2/+2
| | | | | | | | Noticed by: bz
* | In FreeBSD we determine presence of pfsync(4) at run-time, notglebius2012-01-093-36/+4
| | | | | | | | | | at compile time, so define NPFSYNC to 1 always. While here, remove unused defines.
* | Bunch of fixes to pfsync(4) module load/unload:glebius2012-01-091-146/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Make the pfsync.ko actually usable. Before this change loading it didn't register protosw, so was a nop. However, a module /boot/kernel did confused users. o Rewrite the way we are joining multicast group: - Move multicast initialization/destruction to separate functions. - Don't allocate memory if we aren't going to join a multicast group. - Use modern API for joining/leaving multicast group. - Now the utterly wrong pfsync_ifdetach() isn't needed. o Move module initialization from SYSINIT(9) to moduledata_t method. o Refuse to unload module, unless asked forcibly. o Improve a bit some FreeBSD porting code: - Use separate malloc type. - Simplify swi sheduling. This change is probably wrong from VIMAGE viewpoint, however pfsync wasn't VIMAGE-correct before this change, too. Glanced at by: bz
* | o Fix panic on module unload, that happened due to mutex beingglebius2012-01-091-52/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | destroyed prior to pfsync_uninit(). To do this, move all the initialization to the module_t method, instead of SYSINIT(9). o Fix another panic after module unload, due to not clearing the m_addr_chg_pf_p pointer. o Refuse to unload module, unless being unloaded forcibly. o Revert the sub argument to MODULE_DECLARE, to the stable/8 value. This change probably isn't correct from viewpoint of VIMAGE, but the module wasn't VIMAGE-correct before the change, as well. Glanced at by: bz
OpenPOWER on IntegriCloud