summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Revert previous commit...kevlo2012-10-105-5/+5
| | | | Pointyhat to: kevlo (myself)
* Prefer NULL over 0 for pointerskevlo2012-10-095-5/+5
|
* A step in resolving mess with byte ordering for AF_INET. After this change:glebius2012-10-061-2/+2
| | | | | | | | | | | | | | | | | | | - All packets in NETISR_IP queue are in net byte order. - ip_input() is entered in net byte order and converts packet to host byte order right _after_ processing pfil(9) hooks. - ip_output() is entered in host byte order and converts packet to net byte order right _before_ processing pfil(9) hooks. - ip_fragment() accepts and emits packet in net byte order. - ip_forward(), ip_mloopback() use host byte order (untouched actually). - ip_fastforward() no longer modifies packet at all (except ip_ttl). - Swapping of byte order there and back removed from the following modules: pf(4), ipfw(4), enc(4), if_bridge(4). - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version - __FreeBSD_version bumped. - pfil(9) manual page updated. Reviewed by: ray, luigi, eri, melifaro Tested by: glebius (LE), ray (BE)
* Fix pseudo checksum calculation.fjoe2012-09-271-1/+3
| | | | | | | | | This fixes ipfilter w/ network controllers that implement only partial rx csum offloading. PR: 106438 Obtained from: upstream MFC after: 1 week
* Fix panic introduced by me in r240835, when zero weightglebius2012-09-251-4/+5
| | | | | | was passed to wtab_alloc(). Reported by: Kim Culhan <w8hdkim gmail.com>
* Use M_NOWAIT in wtab_alloc(), too. Convert panic() toglebius2012-09-221-6/+9
| | | | | | | a soft failure here. wtab_alloc() is used by red_alloc(), which can fail. Reported by: Kim Culhan <w8hdkim gmail.com>
* Fix an obvious typo.pjd2012-09-221-1/+1
|
* Convert more M_WAITOK malloc() to M_NOWAIT.glebius2012-09-223-8/+8
| | | | Reported by: Kim Culhan <w8hdkim gmail.com>
* Remove #ident macro.rpaulo2012-09-211-3/+2
| | | | | | | | | | | | | | | -This line, and those below, will be ignored-- > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M altq/altq/altq_rmclass.c
* Fix typo: s/pakcet/packetkevlo2012-09-201-1/+1
|
* Merge ACPICA 20120913.jkim2012-09-1930-278/+721
|
* Do more than r236298 did in the projects/pf branch: use M_NOWAIT inglebius2012-09-183-19/+11
| | | | | | | | | | | | | altq_add() and its descendants. Currently altq(4) in FreeBSD is configured via pf(4) ioctls, which can't configure altq(4) w/o holding locks. Fortunately, altq(4) code in spife of using M_WAITOK is ready to receive NULL from malloc(9), so change is mostly mechanical. While here, utilize M_ZERO instead of bzero(). A large redesign needed to achieve M_WAITOK usage when configuring altq(4). Or an alternative (not pf(4)) configuration interface should be implemented. Reported by: pluknet
* o Create directory sys/netpfil, where all packet filters shouldglebius2012-09-1415-21900/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reside, and move there ipfw(4) and pf(4). o Move most modified parts of pf out of contrib. Actual movements: sys/contrib/pf/net/*.c -> sys/netpfil/pf/ sys/contrib/pf/net/*.h -> sys/net/ contrib/pf/pfctl/*.c -> sbin/pfctl contrib/pf/pfctl/*.h -> sbin/pfctl contrib/pf/pfctl/pfctl.8 -> sbin/pfctl contrib/pf/pfctl/*.4 -> share/man/man4 contrib/pf/pfctl/*.5 -> share/man/man5 sys/netinet/ipfw -> sys/netpfil/ipfw The arguable movement is pf/net/*.h -> sys/net. There are future plans to refactor pf includes, so I decided not to break things twice. Not modified bits of pf left in contrib: authpf, ftp-proxy, tftp-proxy, pflogd. The ipfw(4) movement is planned to be merged to stable/9, to make head and stable match. Discussed with: bz, luigi
* Merge the projects/pf/head branch, that was worked on for last six months,glebius2012-09-0819-9477/+4498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into head. The most significant achievements in the new code: o Fine grained locking, thus much better performance. o Fixes to many problems in pf, that were specific to FreeBSD port. New code doesn't have that many ifdefs and much less OpenBSDisms, thus is more attractive to our developers. Those interested in details, can browse through SVN log of the projects/pf/head branch. And for reference, here is exact list of revisions merged: r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330, r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656, r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782, r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868, r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223, r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456, r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505, r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168, r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230, r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398, r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548, r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672, r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169, r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442, r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522, r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661, r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212. I'd like to thank people who participated in early testing: Tested by: Florian Smeets <flo freebsd.org> Tested by: Chekaluk Vitaly <artemrts ukr.net> Tested by: Ben Wilber <ben desync.com> Tested by: Ian FREISLICH <ianf cloudseed.co.za>
* 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
OpenPOWER on IntegriCloud