summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Check vplabel for NULL before dereferencing it. Fixes a panicbrueffer2012-05-031-0/+3
| | | | | | | | when running atop with MAC_MLS enabled. Submitted by: Richard Kojedzinszky <krichy@tvnetwork.hu> Reviewed by: rwatson MFC after: 1 week
* - add code to run pkt-gen on top of libpcap so we can see theluigi2012-05-031-25/+108
| | | | | | | difference from a native API - add some testing options, such as conditional prefetching and packet copy.
* - correct a bug in pcap_dispatch(): a count of 0 means infinity.luigi2012-05-031-5/+41
| | | | | | | | | - in pcap_dispatch(), issue a prefetch on the buffer before the callback, this may save a little bit of time if the client is very fast. - in pcap_inject(), use a fast copy routine, which also helps saving a few nanoseconds with fast clients.
* Fix multiple OpenSSL vulnerabilities.bz2012-05-0311-39/+162
| | | | | | | Security: CVE-2011-4576, CVE-2011-4619, CVE-2011-4109 Security: CVE-2012-0884, CVE-2012-2110 Security: FreeBSD-SA-12:01.openssl Approved by: so (bz,simon)
* Grammar and markup fixes.bjk2012-05-031-32/+40
| | | | | PR: docs/159854 Approved by: hrs (mentor)
* When callout_reset_on() cannot immediately migrate a callout since itkib2012-05-032-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | is running on other cpu, the CALLOUT_PENDING flag is temporarily cleared. Then, callout_stop() on this, in fact active, callout fails because CALLOUT_PENDING is not set, and callout_stop() returns 0. Now, in sleepq_check_timeout(), the failed callout_stop() causes the sleepq code to execute mi_switch() without even setting the wmesg, since the switch-out is supposed to be transient. In fact, the thread is put off the CPU for full timeout interval, instead of being put on runq immediately. Until timeout fires, the process is unkillable for obvious reasons. Fix this by marking the migrating callouts with CALLOUT_DFRMIGRATION flag. The flag is cleared by callout_stop_safe() when the function detects a migration, besides returning the success. The softclock() rechecks the flag for migrating callout and cancels its execution if the flag was cleared meantime. PR: misc/166340 Reported, debugging traces provided and tested by: Christian Esken <christian.esken trivago com> Reviewed by: avg, jhb MFC after: 1 week
* Fix another RFC 6458 issue. Spotted by Irene Ruengeler.tuexen2012-05-032-2/+2
| | | | MFC after: 3 days
* MFp4:davidxu2012-05-033-1/+10
| | | | | | | Enqueue thread in LIFO, this can cause starvation, but it gives better performance. Use _thr_queuefifo to control the frequency of FIFO vs LIFO, you can use environment string LIBPTHREAD_QUEUE_FIFO to configure the variable.
* Revert r234834 per luigi@ request.melifaro2012-05-036-82/+85
| | | | | | | | | | | 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)
* In the new world order, multiphy is now when the phymask is 0x0.adrian2012-05-031-1/+2
| | | | This makes the TP-WN1043ND (ar913x based) work again.
* fixed a unionfs_readdir math issuedaichi2012-05-031-1/+1
| | | | | PR: 132987 Submitted by: Matthew Fleming <mfleming@isilon.com>
* Fix a totally bone-headed, last minute bounds check snafu that somehowadrian2012-05-031-3/+5
| | | | | | I must've missed when booting a test kernel. This has been validated on the AR7161.
* Add optional -o argument to the `graid label ` to specify some metadatamav2012-05-037-17/+74
| | | | | format options. Use it for specifying byte order for the DDF metadata: big-endian defined by specification and little-endian used by Adaptec.
* Relax restriction on direct tx to child portsemaste2012-05-031-13/+3
| | | | | | | | | | | | | Lagg(4) restricts the type of packet that may be sent directly to a child port, to avoid undesired output from accidental misconfiguration. Previously only ETHERTYPE_PAE was permitted. BPF writes to a lagg(4) child port are presumably intentional, so just allow them, while still blocking other packets that should take the aggregation path. PR: kern/138620 Approved by: thompsa@
* Prefer the use of csup to cvsup when talking about the binary.eadler2012-05-022-14/+14
| | | | | | | PR: docs/167459 Submitted by: "Bryan Drewery" <bryan@shatow.net> Approved by: bcr MFC after: 1 week
* Add YY_NO_INPUT so clang doesn't complain about "input" not being used.jamie2012-05-021-0/+1
|
* Update man page date to the date of the last commit.monthadar2012-05-021-1/+1
| | | | Approved by: adrian
* Added D_TRACKCLOSE to sndstat_cdevsw to fix the situation whenpho2012-05-021-42/+37
| | | | | | | | | | | | | | another process is in open() or stat() for the device node, then close() from the owning process does not result in cdevsw close method call. This fixes the pemanent "Device busy" seen. Changed the sndstat_lock from mutex to sx. This allows to extend the region covered by the lock, to include the uiomove() call in sndstat_read() and bufptr increment. This fixes the "panic: sbuf_put_byte called with finished or corrupt sbuf" seen. In collaboration with: kib MFC after: 1 week
* Fix comment about what board this is really for left over from earlyimp2012-05-021-5/+1
| | | | cut and paste.
* Fix so that ,usr and ,os work correctly with fixed function (IAF)gnn2012-05-021-1/+2
| | | | | | counters. MFC after: 1 week
* Catch-up with r232853 and remove platform APIs which are not used by anybz2012-05-021-25/+0
| | | | | | | | | code and which had only stub implementations or no implementation on all platforms. Makes gxemul compile. Hinted by: rwatson MFC after: 3 weeks X-MFC by: rwatson:
* - Don't log messages saying that accounting is being disabled and enabledjhb2012-05-022-10/+17
| | | | | | | | | | if the accounting log file is atomically replaced with a new file (such as during log rotation). - Simplify accounting log rotation a bit. There is no need to re-run accton(8) after renaming the new log file to it's real name. PR: kern/167321 Tested by: Jeremy Chadwick
* mips/mips64eb became mips/mips64 while I wasn't looking (whoops), so updaterwatson2012-05-021-1/+1
| | | | | | | GXEMUL kernel config for the new world order. Spotted by: bz MFC after: 3 weeks
* Bump __FreeBSD_version due to jemalloc import.jasone2012-05-021-1/+1
|
* The PIT is really 16 bytes long (0x10) not 10 bytes long. Doesn'timp2012-05-021-1/+1
| | | | | | matter much, since these defines are unused... Obtained from: AT91SAM9G20 datasheet
* Clean up various aspects of the MIPS generic busspace implementation:rwatson2012-05-021-25/+110
| | | | | | | | | | | | | | | | | | | | | | | | 1) Always implement missing bus space methods using a panic() stub rather than a NULL pointer. This appeared not to trip up any existing device drivers, but due to the nature of the devices I'm supporting locally, I'm making use of some of the more obscure busspace methods, and panic() is a preferred failure mode. For example, do this for the setregion methods. 2) Hook up several existing busspace method implementations that were provided in the file, but not actually present in the methods structure. Especially, single-byte bus I/O routines. This should allow bugs to be fixed in the Atheros 802.11 driver. There are still some remaining unimplemented methods that would be desirable to implement -- especially, 64-bit I/O calls that would observably accelerate device performance on FPGA-based soft CPU cores that are typically clocked an order of magnitude slower than conventional hard core CPUs, but that remains for another day. MFC after: 3 weeks Discussed with: jmallett, scottl Sponsored by: DARPA, AFRL
* Merge a rudimentary gxemul "oldtestmips" port. This consists almostrwatson2012-05-026-0/+587
| | | | | | | | | | | | | | | | | | | | | | entirely of one machdep file lifted from the MALTA port, as well as a low-level console and tty driver for the gxemul debugging console device (the emulators stdio). As with many low-level embedded and hypervisor console devices, it is polled only, so we drive TTY I/O from a callout; we are perhaps a bit too aware of the MIPS physical maps in order to attach the console before newbus comes to life. The sample kernel configuration depends on an MD-based root file system, which is not provided. However, any 64-bit, big-endian userspace image (such as one generated for MALTA) should work. This will hopefully be supplemented by additional device drivers for gxemul-specific hardware simulations from Juli Mallett. We have found oldtestmips quite useful for testing and improving aspects of the MIPS port, so it's worth supporting better in FreeBSD. Requested by: theraven, jmallett Sponsored by: DARPA, AFRL MFC after: 3 weeks
* Implement PLL configuration override support, similar to what openwrtadrian2012-05-022-3/+57
| | | | implements.
* Disable the pll_1000 hint for now, the upcoming work enables it and itadrian2012-05-021-1/+1
| | | | breaks without the switch PHY code.
* * Force the ethernet MII configuration to be RGMIIadrian2012-05-021-3/+3
| | | | | | | * Populate the "pll_1000" field, which will soon be used to override the PLL configuration from the default value. Obtained from: Linux OpenWRT
* Allow the MII mode to be overridden via 'hint.arge.X.miimode'.adrian2012-05-022-0/+25
| | | | | | It takes a number at the moment, rather than a string. Some of the Linux board configurations specify the MII mode explicitly.
* Add a missing newline.adrian2012-05-021-0/+1
|
* Remove some redundant register loads.kientzle2012-05-021-9/+2
| | | | Discussed on: arm@
* Further ar71xx MII support improvements.adrian2012-05-025-52/+61
| | | | | | | | | | | | | | | * Flesh out the PLL configuration fetch function, which will return the PLL configuration based on the unit number and speed. * Remove the PLL speed config logic from the AR71xx/AR91xx chip PLL config function - pass in a 'pll' value instead. * Modify arge_set_pll() to: + fetch the PLL configuration + write the PLL configuration + update the MII speed configuration. This will allow if_arge to override the PLL configuration as required. Obtained from: Linux/Atheros/OpenWRT
* MII related infrastructure changes.adrian2012-05-025-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new method to set the MII mode - GMII, RGMII, RMII, MII. + arge0 supports all four (two for non-Gige interfaces.) + arge1 only supports two (one for non-gige interfaces.) * Set the MII clock speed when changing the MAC PLL speed. + Needed for AR91xx and AR71xx; not needed for AR724x. Tested: * AR71xx only, I'll do AR913x testing tonight and fix whichever issues creep up. TODO: * Implement the missing AR7242 arge0 PLL configuration, but don't adjust the MII speed accordingly. * .. the AR7240/AR7241 don't require this, so make sure it's not set accidentally. Bugs (not fixed here): * Statically configured arge speeds are still broken - investigate why that is on the AP96 board. Autonegotiate is working fine, but there still seems to be an occasionally heavy packet loss issue. Obtained from: Linux/Atheros/OpenWRT
* Introduce an enum which encapsulates the PHY interface types that can beadrian2012-05-021-1/+7
| | | | configured.
* - Add missing locking in at91_usart_getc().marius2012-05-011-117/+157
| | | | | | | | | | | | | | | | | | | | | | | | - Align the RX buffers on the cache line size, otherwise the requirement of partial cache line flushes on every are pretty much guaranteed. [1] - Make the code setting the RX timeout match its comment (apparently, start and stop bits were missed in the previous calculation). [1] - Cover the busdma operations in at91_usart_bus_{ipend,transmit}() with the hardware mutex, too, so these don't race against each other. - In at91_usart_bus_ipend(), reduce duplication in the code dealing with TX interrupts. - In at91_usart_bus_ipend(), turn the code dealing with RX interrupts into an else-if cascade in order reduce its complexity and to improve its run-time behavior. - In at91_usart_bus_ipend(), add missing BUS_DMASYNC_PREREAD calls on the RX buffer map before handing things over to the hardware again. [1] - In at91_usart_bus_getsig(), used a variable of sufficient width for storing the contents of USART_CSR. - Use KOBJMETHOD_END. - Remove an unused header. Submitted by: Ian Lepore [1] Reviewed by: Ian Lepore MFC after: 1 week
* Add in the MII configuration parameters for the AR71xx.adrian2012-05-011-4/+15
| | | | Obtained from: Linux/OpenWRT
* Improve spare disks support. Unluckily, for some reason Adaptec 1430SAmav2012-05-011-68/+134
| | | | | RAID BIOS doesn't want to understand spare disks created by graid. But at least spares created by BIOS are working fine now.
* Add initial support for booting from ZFS on sparc64. At least on Sun Firemarius2012-05-019-43/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | V100, the firmware is known to be broken and not allowing to simultaneously open disk devices, causing attempts to boot from a mirror or RAIDZ to cause a crash. This will be worked around later. The firmwares of newer sun4u models don't seem to exhibit this problem though. Steps for ZFS booting: 1. create VTOC8 label # gpart create -s vtoc8 da0 2. add partitions, f.e.: # gpart add -t freebsd-zfs -s 60g da0 # gpart add -t freebsd-swap da0 resulting in something like: # gpart show => 0 143331930 da0 VTOC8 (68G) 0 125821080 1 freebsd-zfs (60G) 125821080 17510850 2 freebsd-swap (8.4G) 3. create zpool # zpool create bunker da0a or for mirror/RAIDZ (after preparing additional disks as in steps 1. + 2.): # zpool create bunker mirror da0a da1a # zpool create bunker raidz da0a da1a da2a ... 4. set bootfs # zpool set bootfs=bunker bunker 5. install zfsboot # zpool export bunker # gpart bootcode -p /boot/zfsboot da0 6. write zfsloader to the ZFS Boot Block (so far, there's no dedicated tool for this, so dd(1) has to be used for this purpose) When using mirror/RAIDZ, step 4. and the dd(1) invocation should be repeated for the additional disks in order to be able to boot from another disk in case of failure. # sysctl kern.geom.debugflags=0x10 # dd if=/boot/zfsloader of=/dev/da0a bs=512 oseek=1024 conv=notrunc # zpool import bunker 7. install system on ZFS filesystem Don't forget to set 'zfs_load="YES"' and vfs.root.mountfrom="zfs:bunker" in loader.conf as well as 'zfs_enable="YES"'in rc.conf. 8. copy zpool.cache to the ZFS filesystem cp -p /boot/zfs/zpool.cache /bunker/boot/zfs/zpool.cache 9. set mountpoint # zfs set mountpoint=/ bunker 10. Now, given that aliases for all disks in the zpool exists (check with the `devalias` command on the boot monitor prompt) and disk0 corresponds to da0 (likewise for additional disks), the system can be booted from the ZFS with: {1} ok boot disk0 PR: 165025 Submitted by: Gavin Mu
* Add a command for showing the heap usage.marius2012-05-011-0/+12
| | | | | | PR: 165025 Submitted by: Gavin Mu MFC after: 1 week
* Update HWMP Proactive code and mesh route flags.monthadar2012-05-011-20/+10
| | | | | | | | | | | | | * Modified hwmp_recv_preq: o cleaned up code, removed rootmac variable because preq->origaddr is the root when we recevie a Proactive PREQ; o Modified so that a PREP in response of a Proactive PREQ is unicast, a PREP is ALWAYS unicast; * Modified hwmp_recv_prep: o Before we mark a route to be valid we should remove the discovery flag and then mark it valid in such a way we wont lose the isgate flag; Approved by: adrian
* * Modified ifconfig to show the IEEE80211_MESHRT_FLAGS_DISCOVER flag with a 'D';monthadar2012-05-011-0/+2
| | | | Approved by: adrian
* PREQ discovery update.monthadar2012-05-014-17/+82
| | | | | | | | | | | | | | * Added a new discovery flag IEEE80211_MESHRT_FLAGS_DISCOVER; * Modified ieee80211_ioctl.h to include IEEE80211_MESHRT_FLAGS_DISCOVER; * Added hwmp_rediscover_cb, which will be called by a timeout to do rediscovery if we have not reach max number of preq discovery; * Modified hwmp_discover to setup a callout for path rediscovery; * Added to ieee80211req_mesh_route to have a back pointer to ieee80211vap for the discovery callout context; * Modified mesh_rt_add_locked arguemnt from ieee80211_mesh_state to ieee80211vap, this because we have to initialize the above back pointer; Approved by: adrian
* * Added new command to ifconfig to activate Mesh Gate Announcement calledmonthadar2012-05-012-0/+20
| | | | | | meshgate with corresponding explanation; Approved by: adrian
* Net80211s update: Mesh Gate Announcement and removal of Portal Announcement.monthadar2012-05-015-25/+27
| | | | | | | | | | | | | | | * Renamed IEEE80211_ELEMID_MESHPANN to IEEE80211_ELEMID_MESHGANN according to amendment; * Added IEEE80211_IOC_MESH_GATE that controls whether Mesh Gate Announcement is activated or not; * Renamed all flags from Portal to Gate in HWMP frames; * Removed IEEE80211_ACTION_MESHPANN enum cause its part of the Mesh Action category now as per amendment; * Renamed IEEE80211_MESHFLAGS_PORTAL to IEEE80211_MESHFLAGS_GATE in ieee80211_mesh_state flags; * Modified ieee80211_hwmp.c/ieee80211_mesh.c to use new GATE flags; Approved by: adrian
* RANN updatemonthadar2012-05-012-18/+83
| | | | | | | | | * Introduced a new HWMP sysctl, Root Confirmation Interval; * Added hr_lastrootconf to hwmp_route, is for ratecheck for a specific ROOT; * We missed reading RANN.interval subfield from a RANN frame before; * Updated hwmp_recv_rann according to amendment, see comments; Approved by: adrian
* PERR update to be called from mesh code.monthadar2012-05-013-2/+76
| | | | | | | | | | | | * Added mpp_senderror for Mesh Path Selection protocol; * Added hwmp_senderror that will send an HWMP PERR according to the supplied reason code; * Call mpp_senderror when deleting a route with correct reason code for whether the route is marked proxy or not; * Call mpp_senderror when trying to forward an individually addressed frame and there is no forwarding information; Approved by: adrian
* * Modified PERR acceptance criteria according to amendment;monthadar2012-05-011-25/+82
| | | | | | * Modified how PERR is handled and propagated according to amendment; Approved by: adrian
* Updated PREQ propagation code;monthadar2012-05-011-74/+65
| | | | | | | | | * When receiving a Proactive PREQ dont return after processing it but propagate; * When we propagate we should not enforce ratechecking; * Added checking for multiple pred ID detection; * Storing proxy orig address when PREQ is not for us; Approved by: adrian
OpenPOWER on IntegriCloud