svn commit: r341325 - in head: share/man/man4 sys/dev/sfxge sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:10:43 2018 New Revision: 341325 URL: https://svnweb.freebsd.org/changeset/base/341325 Log: sfxge(4): support Medford2 Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18286 Modified: head/share/man

svn commit: r341326 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:10:54 2018 New Revision: 341326 URL: https://svnweb.freebsd.org/changeset/base/341326 Log: sfxge(4): ensure EvQ poll stops when abort is requested If an event handler requested an abort, only the inner loop was guarenteed to be broken out of - the oute

svn commit: r341323 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:10:20 2018 New Revision: 341323 URL: https://svnweb.freebsd.org/changeset/base/341323 Log: sfxge(4): correct annotations where NULL input is OK Correct annotations where NULL input can be permitted Submitted by: Richard Houldsworth Sponsored by

svn commit: r341321 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:58 2018 New Revision: 341321 URL: https://svnweb.freebsd.org/changeset/base/341321 Log: sfxge(4): use transceiver ID when reading info In efx_mcdi_phy_module_get_info() probe the transceiver identification byte rather than assume the module matche

svn commit: r341327 - head/sys/dev/sfxge

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:11:05 2018 New Revision: 341327 URL: https://svnweb.freebsd.org/changeset/base/341327 Log: sfxge(4): rollback last seen VLAN TCI if Tx packet is dropped Early processing of a packet on transmit may change last seen VLAN TCI in the queue context. If suc

svn commit: r341322 - head/sys/dev/sfxge

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:10:09 2018 New Revision: 341322 URL: https://svnweb.freebsd.org/changeset/base/341322 Log: sfxge(4): support new link modes in the driver Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. Differential Revision: https://re

svn commit: r341324 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:10:32 2018 New Revision: 341324 URL: https://svnweb.freebsd.org/changeset/base/341324 Log: sfxge(4): update external port number calculation Revise the external port calculation to support all X2 port modes. The previous algorithm could not handle di

svn commit: r341320 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:46 2018 New Revision: 341320 URL: https://svnweb.freebsd.org/changeset/base/341320 Log: sfxge(4): add accessor to whole link status Add a function which makes an MCDI GET_LINK request and packages up the results. Currently, the get-link function i

svn commit: r341319 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:34 2018 New Revision: 341319 URL: https://svnweb.freebsd.org/changeset/base/341319 Log: sfxge(4): guard Rx scale code with corresponding option Previously only some of the code was guarded by this which caused a build error when EFSYS_OPT_RX_SCALE i

svn commit: r341316 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:11 2018 New Revision: 341316 URL: https://svnweb.freebsd.org/changeset/base/341316 Log: sfxge(4): support improvements to bandwidth calculations Change the interface to ef10_nic_get_port_mode_bandwidth() so more NIC information can be used to infer

svn commit: r341317 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:23 2018 New Revision: 341317 URL: https://svnweb.freebsd.org/changeset/base/341317 Log: sfxge(4): infer port mode bandwidth from max link speed Limit the port mode bandwidth calculations by the maximum reported link speed. This system detects 25G vs

svn commit: r341315 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:09:00 2018 New Revision: 341315 URL: https://svnweb.freebsd.org/changeset/base/341315 Log: sfxge(4): add X2 port modes to bandwidth calculator Add cases for the new port modes supported by X2 NICs. Lane bandwidth is calculated for pre-X2 cards so is an

svn commit: r341314 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:08:50 2018 New Revision: 341314 URL: https://svnweb.freebsd.org/changeset/base/341314 Log: sfxge(4): update to current port mode terminology >From Medford onwards, the newer constants enumerating port modes should be used. Submitted by: Richard

svn commit: r341311 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:08:16 2018 New Revision: 341311 URL: https://svnweb.freebsd.org/changeset/base/341311 Log: sfxge(4): make last byte of module information available Adjust bounds so the interface supports reading the last available byte of data. Submitted by: Ri

svn commit: r341309 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:07:54 2018 New Revision: 341309 URL: https://svnweb.freebsd.org/changeset/base/341309 Log: sfxge(4): fix MAC Tx stats for less or equal to 64 bytes This statistic should include 64byte and smaller frames. Fix EF10 calculation to match Siena code.

svn commit: r341313 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:08:38 2018 New Revision: 341313 URL: https://svnweb.freebsd.org/changeset/base/341313 Log: sfxge(4): adjust PHY module info interface Adjust data types in interface to permit the complete module information buffer to be obtained in a single call.

svn commit: r341307 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:07:31 2018 New Revision: 341307 URL: https://svnweb.freebsd.org/changeset/base/341307 Log: sfxge(4): improve handling of legacy RSS hash flags Client drivers may use either legacy flags, for example, EFX_RX_HASH_TCPIPV4, or generalised flags, for examp

svn commit: r341305 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:07:09 2018 New Revision: 341305 URL: https://svnweb.freebsd.org/changeset/base/341305 Log: sfxge(4): check buffer size for hash flags The efx_rx_scale_hash_flags_get interface is unsafe, as it does not have an argument for the size of the output buffer

svn commit: r341312 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:08:27 2018 New Revision: 341312 URL: https://svnweb.freebsd.org/changeset/base/341312 Log: sfxge(4): expose PHY module device address constants Rearrange so the valid addresses are visible to the caller. Submitted by: Richard Houldsworth Sponso

svn commit: r341306 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:07:20 2018 New Revision: 341306 URL: https://svnweb.freebsd.org/changeset/base/341306 Log: sfxge(4): simplify the code to parse RSS hash type RSS mode bits can be accessed a lot easier in the hash type value provided that the variable type is uint32_t.

svn commit: r341301 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:24 2018 New Revision: 341301 URL: https://svnweb.freebsd.org/changeset/base/341301 Log: sfxge(4): prevent access to the NIC config before probe NIC config is initialized during NIC probe. Submitted by: Mark Spender Sponsored by: Solarflare

svn commit: r341304 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:58 2018 New Revision: 341304 URL: https://svnweb.freebsd.org/changeset/base/341304 Log: sfxge(4): use simpler code to check hash algorithm type The API which is used to list supported hash flags verifies hash algorithm choice before writing the outp

svn commit: r341310 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:08:05 2018 New Revision: 341310 URL: https://svnweb.freebsd.org/changeset/base/341310 Log: sfxge(4): add helper API to make Geneve filter spec Submitted by: Vijay Srivastava Sponsored by: Solarflare Communications, Inc. Differential Revision: h

svn commit: r341302 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:35 2018 New Revision: 341302 URL: https://svnweb.freebsd.org/changeset/base/341302 Log: sfxge(4): fix a typo in unicast filter insertion comment Submitted by: Ivan Malov Sponsored by: Solarflare Communications, Inc. MFC after: 1 week D

svn commit: r341308 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:07:43 2018 New Revision: 341308 URL: https://svnweb.freebsd.org/changeset/base/341308 Log: sfxge(4): modify phy caps to indicate FEC request The capability bits to request FEC modes are implicitly valid when the corresponding FEC mode is a supported ca

svn commit: r341295 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:05:12 2018 New Revision: 341295 URL: https://svnweb.freebsd.org/changeset/base/341295 Log: sfxge(4): avoid usage of too big arrays on stack Found by PreFAST static analysis. Submitted by: Martin Harvey Sponsored by: Solarflare Communications,

svn commit: r341303 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:46 2018 New Revision: 341303 URL: https://svnweb.freebsd.org/changeset/base/341303 Log: sfxge(4): add support to get active FEC type Submitted by: Vijay Srivastava Sponsored by: Solarflare Communications, Inc. Differential Revision: https://

svn commit: r341300 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:13 2018 New Revision: 341300 URL: https://svnweb.freebsd.org/changeset/base/341300 Log: sfxge(4): fix ID retrieval in v3 licensing Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential

svn commit: r341298 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:05:49 2018 New Revision: 341298 URL: https://svnweb.freebsd.org/changeset/base/341298 Log: sfxge(4): add routine to check for hardware presence Add efx_nic_hw_unavailable() routine to check for hardware presence before continuing with NIC operations.

svn commit: r341294 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:05:00 2018 New Revision: 341294 URL: https://svnweb.freebsd.org/changeset/base/341294 Log: sfxge(4): generalise EF10 NVRAM buffer interface The SFN driver's PartitionControl WMI object requires an API to parse and filter partition data in TLV format, p

svn commit: r341296 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:05:23 2018 New Revision: 341296 URL: https://svnweb.freebsd.org/changeset/base/341296 Log: sfxge(4): add information if TSO workaround is required In SF bug 61297 it's been confirmed that the hardware does not always calculate the TCP checksum correctl

svn commit: r341297 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:05:36 2018 New Revision: 341297 URL: https://svnweb.freebsd.org/changeset/base/341297 Log: sfxge(4): fix out of bounds read when dereferencing sdup Introduce and use macro to make sure that MCDI buffers allocated on stack are rounded up properly.

svn commit: r341299 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:06:01 2018 New Revision: 341299 URL: https://svnweb.freebsd.org/changeset/base/341299 Log: sfxge(4): add API to inform libefx of hardware removal The efx_nic_hw_unavailable() checks ensure that if the NIC hardware has failed or has been physically remo

svn commit: r341293 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:04:48 2018 New Revision: 341293 URL: https://svnweb.freebsd.org/changeset/base/341293 Log: sfxge(4): add accessor for default port mode Extend efx_mcdi_get_port_modes() to optionally pass on the default port mode field. This provides a more direct way

svn commit: r341292 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:04:37 2018 New Revision: 341292 URL: https://svnweb.freebsd.org/changeset/base/341292 Log: sfxge(4): add buffer editing functions to boot config Functions to process the DHCP option list format used by the expansion ROM config buffers, to support extra

svn commit: r341291 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:04:25 2018 New Revision: 341291 URL: https://svnweb.freebsd.org/changeset/base/341291 Log: sfxge(4): add API to retrieve sensor limits Submitted by: Martin Harvey Sponsored by: Solarflare Communications, Inc. Differential Revision: https://revi

svn commit: r341290 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 07:04:13 2018 New Revision: 341290 URL: https://svnweb.freebsd.org/changeset/base/341290 Log: sfxge(4): check size of memory to read sensors data to Size of provided memory should be consistent with specified size. Submitted by: Martin Harvey Spon

svn commit: r341289 - stable/10/etc/rc.d

2018-11-29 Thread Cy Schubert
Author: cy Date: Fri Nov 30 06:47:01 2018 New Revision: 341289 URL: https://svnweb.freebsd.org/changeset/base/341289 Log: This is a direct commit to the stable/10 branch. This would have been MFC r340754 except that etc/rc.d has been moved in HEAD which would have resulted in a tree conflict

svn commit: r341288 - stable/11/etc/rc.d

2018-11-29 Thread Cy Schubert
Author: cy Date: Fri Nov 30 06:45:53 2018 New Revision: 341288 URL: https://svnweb.freebsd.org/changeset/base/341288 Log: This is a direct commit to the stable/11 branch. This would have been MFC r340754 except that etc/rc.d has been moved in HEAD which would have resulted in a tree conflict

svn commit: r341287 - stable/12/libexec/rc/rc.d

2018-11-29 Thread Cy Schubert
Author: cy Date: Fri Nov 30 06:44:32 2018 New Revision: 341287 URL: https://svnweb.freebsd.org/changeset/base/341287 Log: MFC r340754: Allow forced start of ipmon in special cases where testing is desired (or other special cases) and when ipfilter is disabled in rc.conf but started by o

svn commit: r341286 - in head/sys: dev/sfxge/common modules/sfxge

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 05:54:30 2018 New Revision: 341286 URL: https://svnweb.freebsd.org/changeset/base/341286 Log: sfxge(4): add generated description of sensors Description of sensors is generated from firmware sources. Submitted by: Martin Harvey Sponsored by: Sol

svn commit: r341285 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 05:54:19 2018 New Revision: 341285 URL: https://svnweb.freebsd.org/changeset/base/341285 Log: sfxge(4): remove probes when a Tx queue is too full No need for probe messages when a TxQ is too full for a post to be done. Existing drivers check if there i

svn commit: r341284 - head/sys/dev/sfxge/common

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 05:54:07 2018 New Revision: 341284 URL: https://svnweb.freebsd.org/changeset/base/341284 Log: sfxge(4): refactor monitors support Remove obsolete monitor types since Falcon SFN4000 series adapters no longer supported by libefx. Rename MCDI monitors to b

svn commit: r341283 - in head/sys: dev/sfxge/common modules/sfxge

2018-11-29 Thread Andrew Rybchenko
Author: arybchik Date: Fri Nov 30 05:50:01 2018 New Revision: 341283 URL: https://svnweb.freebsd.org/changeset/base/341283 Log: sfxge(4): move empty efsys definitions to EFX headers Move empty definitions for platform-specific annotations from efsys.h to EFX headers. Submitted by:

svn commit: r341282 - in head/sys: kern vm

2018-11-29 Thread Eric van Gyzen
Author: vangyzen Date: Fri Nov 30 04:59:43 2018 New Revision: 341282 URL: https://svnweb.freebsd.org/changeset/base/341282 Log: Include path for tmpfs objects in vm.objects sysctl This applies the fix in r283924 to the vm.objects sysctl added by r283624 so the output will include the vnod

svn commit: r341281 - head/sys/vm

2018-11-29 Thread Eric van Gyzen
Author: vangyzen Date: Fri Nov 30 04:18:31 2018 New Revision: 341281 URL: https://svnweb.freebsd.org/changeset/base/341281 Log: Add assertions and comment to vm_object_vnode() Reviewed by: kib MFC after:2 weeks Sponsored by: Dell EMC Isilon Differential Revision:https://r

svn commit: r341280 - head/sys/contrib/ipfilter/netinet

2018-11-29 Thread Cy Schubert
Author: cy Date: Fri Nov 30 04:15:56 2018 New Revision: 341280 URL: https://svnweb.freebsd.org/changeset/base/341280 Log: Clean up a rather useless conditional structure member definition. MFC after:1 week Modified: head/sys/contrib/ipfilter/netinet/ip_fil.h Modified: head/sys/contr

svn commit: r341279 - head/sys/contrib/ipfilter/netinet

2018-11-29 Thread Cy Schubert
Author: cy Date: Fri Nov 30 04:15:42 2018 New Revision: 341279 URL: https://svnweb.freebsd.org/changeset/base/341279 Log: Clean up a redundant non-redefinition of IFNAMSIZ. IFNAMSIZ is defined in net/if.h, therefore the condition is never met and confusing to those who follow. MFC after

svn commit: r341278 - head/lib/libthr/thread

2018-11-29 Thread Eric van Gyzen
Author: vangyzen Date: Fri Nov 30 03:02:49 2018 New Revision: 341278 URL: https://svnweb.freebsd.org/changeset/base/341278 Log: Use _thr_isthreaded() and _thr_setthreaded() wrappers ...instead of directly using the global variable. MFC after:2 weeks Sponsored by: Dell EMC Isilon

svn commit: r341277 - head/lib/libthr/thread

2018-11-29 Thread Eric van Gyzen
Author: vangyzen Date: Fri Nov 30 03:01:32 2018 New Revision: 341277 URL: https://svnweb.freebsd.org/changeset/base/341277 Log: _thr_setthreaded() cannot fail; change return type to void Also remove logic to avoid unnecessary stores to the global variable. Thread creation and destruction

Re: svn: head/usr.bin: . trim

2018-11-29 Thread Maxim Sobolev
For those interested, dd(1) patch is here: https://reviews.freebsd.org/D18382 Feedback is much appreciated. Thanks! -Max On Thu, Nov 29, 2018 at 5:01 PM Alexey Dokuchaev wrote: > On Thu, Nov 29, 2018 at 10:36:02AM -0800, Maxim Sobolev wrote: > > Interesting. I have a similar functionality impl

svn commit: r341276 - head/stand/common

2018-11-29 Thread Maxim Sobolev
Author: sobomax Date: Fri Nov 30 02:14:41 2018 New Revision: 341276 URL: https://svnweb.freebsd.org/changeset/base/341276 Log: When handling CMD_CRIT error set command_errmsg to NULL after we dump it out, so that it does not result in error message printed twice. OK load doodoo can't fi

svn commit: r341275 - in stable/11: sys/dev/netmap tests/sys/kqueue/libkqueue

2018-11-29 Thread David Bright
Author: dab Date: Fri Nov 30 02:06:30 2018 New Revision: 341275 URL: https://svnweb.freebsd.org/changeset/base/341275 Log: MFC r337812,r337814,r337820,r341068: Fix several memory leaks (r337812 & r337814). The libkqueue tests have several places that leak memory by using an idiom lik

svn commit: r341274 - stable/12/tests/sys/kqueue/libkqueue

2018-11-29 Thread David Bright
Author: dab Date: Fri Nov 30 01:45:54 2018 New Revision: 341274 URL: https://svnweb.freebsd.org/changeset/base/341274 Log: MFC r341068: Make whitespace more consistent in libkqueue tests. After r337820, which "corrected" some spaces-instead-of-tab whitespace issues in the libkqueue t

RE: svn: head/usr.bin: . trim

2018-11-29 Thread Cy Schubert
Agreed. --- Sent using a tiny phone keyboard. Apologies for any typos and autocorrect. Also, this old phone only supports top post. Apologies. Cy Schubert or The need of the many outweighs the greed of the few. --- -Original Message- From: Alexey Dokuchaev Sent: 29/11/2018 17:01 To: Ma

Re: svn: head/usr.bin: . trim

2018-11-29 Thread Alexey Dokuchaev
On Thu, Nov 29, 2018 at 10:36:02AM -0800, Maxim Sobolev wrote: > Interesting. I have a similar functionality implemented as an option for > the dd utility in my pipeline (conv=erase). Which probably makes a better place rather than adding 4-letter program, commonly named ("trim" is a simple word),

svn commit: r341273 - in head: lib/libc/amd64/string sys/amd64/amd64

2018-11-29 Thread Mateusz Guzik
Author: mjg Date: Fri Nov 30 00:47:36 2018 New Revision: 341273 URL: https://svnweb.freebsd.org/changeset/base/341273 Log: amd64: remove stale attribution for memmove work While the routine started as expanded bcopy, it is now entirely rewritten. Sponsored by: The FreeBSD Foundation M

svn commit: r341272 - in head: lib/libc/amd64/string sys/amd64/amd64

2018-11-29 Thread Mateusz Guzik
Author: mjg Date: Fri Nov 30 00:45:10 2018 New Revision: 341272 URL: https://svnweb.freebsd.org/changeset/base/341272 Log: amd64: tidy up copying backwards in memmove For non-ERMS case the code used handle possible trailing bytes with movsb first and then followed it up with movsq. This a

svn commit: r341271 - releng/12.0/sys/conf

2018-11-29 Thread Glen Barber
Author: gjb Date: Fri Nov 30 00:00:51 2018 New Revision: 341271 URL: https://svnweb.freebsd.org/changeset/base/341271 Log: Update releng/12.0 from RC2 to RC3 as part of the 12.0-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Modified: releng/12.0/sys/

svn commit: r341270 - head/sys/dev/cxgbe

2018-11-29 Thread John Baldwin
Author: jhb Date: Thu Nov 29 23:14:54 2018 New Revision: 341270 URL: https://svnweb.freebsd.org/changeset/base/341270 Log: Make most of the CLIP code conditional on #ifdef INET6. This fixes builds of kernels without INET6 such as LINT-NOINET6. Reported by: arybchik Reviewed by: np

svn commit: r341268 - in head/sys: dts/arm64/overlays modules/dtb/allwinner

2018-11-29 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 29 22:35:23 2018 New Revision: 341268 URL: https://svnweb.freebsd.org/changeset/base/341268 Log: arm64: allwinner: Add a dtbo to have cpu operating points This enables cpufreq on A64 boards. MFC after:1 month Added: head/sys/dts/arm64/overlays/sun50i-a

svn commit: r341269 - head/release/arm64

2018-11-29 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 29 22:36:36 2018 New Revision: 341269 URL: https://svnweb.freebsd.org/changeset/base/341269 Log: release: arm64: Add opp dtbo to PINE* boards MFC after:1 month Modified: head/release/arm64/PINE64-LTS.conf head/release/arm64/PINE64.conf head/release/arm6

svn commit: r341267 - releng/12.0/sys/contrib/ck/include/gcc/sparcv9

2018-11-29 Thread Marius Strobl
Author: marius Date: Thu Nov 29 22:00:20 2018 New Revision: 341267 URL: https://svnweb.freebsd.org/changeset/base/341267 Log: MFV: r341039, MFC: r341041, MF12: r341264 Import CK as of 21d3e319407d19dece16ee317c757ffc54a452bc, which makes its sparcv9 atomics compatible with the FreeBSD ker

svn commit: r341266 - in releng/12.0: . sys/modules/iavf

2018-11-29 Thread Marius Strobl
Author: marius Date: Thu Nov 29 21:59:09 2018 New Revision: 341266 URL: https://svnweb.freebsd.org/changeset/base/341266 Log: MFC: r341016, MF12: r341261 - Add a belated UPDATING entry for the ixlv(4) -> iavf(4) rename in r339338. - Likewise, add ixlv.4.gz to OLD_FILES, - and link if_ix

svn commit: r341265 - head/sys/contrib/ipfilter/netinet

2018-11-29 Thread Cy Schubert
Author: cy Date: Thu Nov 29 21:20:53 2018 New Revision: 341265 URL: https://svnweb.freebsd.org/changeset/base/341265 Log: Remove an old comment/code and replace with a comment that directly references a NetBSD commit. MFC after:1 week Modified: head/sys/contrib/ipfilter/netinet/ip_

svn commit: r341264 - stable/12/sys/contrib/ck/include/gcc/sparcv9

2018-11-29 Thread Marius Strobl
Author: marius Date: Thu Nov 29 21:10:18 2018 New Revision: 341264 URL: https://svnweb.freebsd.org/changeset/base/341264 Log: MFV: r341039, MFC: r341041 Import CK as of 21d3e319407d19dece16ee317c757ffc54a452bc, which makes its sparcv9 atomics compatible with the FreeBSD kernel by using in

svn commit: r341263 - in head/sys: compat/cloudabi32 compat/cloudabi64 compat/freebsd32 kern sys

2018-11-29 Thread Brooks Davis
Author: brooks Date: Thu Nov 29 21:00:56 2018 New Revision: 341263 URL: https://svnweb.freebsd.org/changeset/base/341263 Log: Add helper functions to copy strings into struct image_args. Given a zeroed struct image_args with an allocated buf member, exec_args_add_fname() must be called to

svn commit: r341262 - releng/12.0/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:59:18 2018 New Revision: 341262 URL: https://svnweb.freebsd.org/changeset/base/341262 Log: MFstable/12 r341259: Add some additional length checks to the IPv4 fragmentation code. Approved by: re (gjb) Modified: releng/12.0/sys/netinet/ip_reass.c rele

svn commit: r341261 - in stable/12: . sys/modules/iavf

2018-11-29 Thread Marius Strobl
Author: marius Date: Thu Nov 29 20:48:38 2018 New Revision: 341261 URL: https://svnweb.freebsd.org/changeset/base/341261 Log: MFC: r341016 - Add a belated UPDATING entry for the ixlv(4) -> iavf(4) rename in r339338. - Likewise, add ixlv.4.gz to OLD_FILES, - and link if_ixlv.ko to if_iav

svn commit: r341260 - stable/11/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:38:23 2018 New Revision: 341260 URL: https://svnweb.freebsd.org/changeset/base/341260 Log: MFC r340483 (by jtl): Add some additional length checks to the IPv4 fragmentation code. Modified: stable/11/sys/netinet/ip_reass.c stable/11/sys/netinet/ip_var.h Di

svn commit: r341259 - stable/12/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:25:47 2018 New Revision: 341259 URL: https://svnweb.freebsd.org/changeset/base/341259 Log: MFC r340483 (by jtl): Add some additional length checks to the IPv4 fragmentation code. Modified: stable/12/sys/netinet/ip_reass.c stable/12/sys/netinet/ip_var.h Di

svn commit: r341258 - stable/10/sys/netinet

2018-11-29 Thread Ed Maste
Author: emaste Date: Thu Nov 29 20:14:09 2018 New Revision: 341258 URL: https://svnweb.freebsd.org/changeset/base/341258 Log: MFC r340260: Avoid buffer underwrite in icmp_error icmp_error allocates either an mbuf (with pkthdr) or a cluster depending on the size of data to be quoted in the

svn commit: r341257 - head/bin/dd

2018-11-29 Thread Maxim Sobolev
Author: sobomax Date: Thu Nov 29 19:28:01 2018 New Revision: 341257 URL: https://svnweb.freebsd.org/changeset/base/341257 Log: Replace hand-crafted naive byte-by-byte zero block detection routine with macro based around memcmp(). The latter is expected to be some 8 times faster on a modern 6

svn commit: r341256 - head/sys/kern

2018-11-29 Thread Konstantin Belousov
Author: kib Date: Thu Nov 29 19:13:10 2018 New Revision: 341256 URL: https://svnweb.freebsd.org/changeset/base/341256 Log: If BENEATH is specified, always latch the topping directory vnode. It is possible that we started with a relative path but during the lookup, found an absolute symlin

svn commit: r341255 - head/sys/arm64/rockchip/clk

2018-11-29 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 29 19:11:35 2018 New Revision: 341255 URL: https://svnweb.freebsd.org/changeset/base/341255 Log: arm64: rockchip: armclk: Do not change parent freq if CLK_SET_DRYRUN is set MFC after:3 days Modified: head/sys/arm64/rockchip/clk/rk_clk_armclk.c Modified: he

Re: svn commit: r341254 - head/sys/dev/extres/clk

2018-11-29 Thread Emmanuel Vadot
On Thu, 29 Nov 2018 19:06:06 + (UTC) Emmanuel Vadot wrote: > Author: manu > Date: Thu Nov 29 19:06:05 2018 > New Revision: 341254 > URL: https://svnweb.freebsd.org/changeset/base/341254 > > Log: > extres: clk: Fix clk_set_assigned > > ofw_bus_parse_xref_list_get_length doesn't returns

svn commit: r341254 - head/sys/dev/extres/clk

2018-11-29 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 29 19:06:05 2018 New Revision: 341254 URL: https://svnweb.freebsd.org/changeset/base/341254 Log: extres: clk: Fix clk_set_assigned ofw_bus_parse_xref_list_get_length doesn't returns the number of elements, fix this. While here when setting the clock to the assi

svn commit: r341253 - in head/stand: common i386/libi386 libsa uboot/lib

2018-11-29 Thread Maxim Sobolev
Author: sobomax Date: Thu Nov 29 18:37:48 2018 New Revision: 341253 URL: https://svnweb.freebsd.org/changeset/base/341253 Log: The libstand's panic() appends its own '\n' to the message, so that users of the API don't need to supply one. MFC after:2 weeks Modified: head/stand/comm

Re: svn: head/usr.bin: . trim

2018-11-29 Thread Maxim Sobolev
Interesting. I have a similar functionality implemented as an option for the dd utility in my pipeline (conv=erase). -Max On Thu, Nov 29, 2018 at 6:21 AM Eugene Grosbein wrote: > Author: eugen > Date: Thu Nov 29 14:21:26 2018 > New Revision: 341232 > URL: https://svnweb.freebsd.org/changeset/ba

Re: svn commit: r341233 - head/usr.bin/trim

2018-11-29 Thread John Baldwin
On 11/29/18 6:49 AM, Eugene Grosbein wrote: > Author: eugen > Date: Thu Nov 29 14:49:33 2018 > New Revision: 341233 > URL: https://svnweb.freebsd.org/changeset/base/341233 > > Log: > trim(1): unbreak build after r341232 for platforms using gcc and not clang > > MFC after: 1 month > > Modi

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Eugene Grosbein
29.11.2018 23:25, Warner Losh wrote: > There were many other things that I'd planned on commenting on once this hit > Phabricator. Is it possible to upload the whole new file to Phabricator and not as silly "diff" against /dev/null? ___ svn-src-all@f

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Warner Losh
On Thu, Nov 29, 2018 at 11:08 AM Eugene Grosbein wrote: > 30.11.2018 0:52, Warner Losh wrote: > > > It could work on files within a filesystem, but not in its current > state. ftruncate, however, is a better match there. None of the filesystems > support the DIOCDELETE ioctl. > > However, both of

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Eugene Grosbein
30.11.2018 0:52, Warner Losh wrote: > It could work on files within a filesystem, but not in its current state. > ftruncate, however, is a better match there. None of the filesystems support > the DIOCDELETE ioctl. However, both of UFS and ZFS issue BIO_DELETE while freeing their fs blocks, do

svn commit: r341252 - releng/12.0/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 18:02:35 2018 New Revision: 341252 URL: https://svnweb.freebsd.org/changeset/base/341252 Log: MFstable/12 r341250: Fix age_old_log() after r337468. PR: 233633 Approved by: re (gjb) Modified: releng/12.0/usr.sbin/newsyslog/newsyslog.c Director

svn commit: r341251 - releng/12.0/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:54:03 2018 New Revision: 341251 URL: https://svnweb.freebsd.org/changeset/base/341251 Log: MFstable/12 r341249: Update the free page count when blacklisting pages. Approved by: re (gjb) Modified: releng/12.0/sys/vm/vm_page.c Directory Properties: re

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Warner Losh
On Thu, Nov 29, 2018 at 10:04 AM John Nielsen wrote: > > On Nov 29, 2018, at 7:21 AM, Eugene Grosbein wrote: > > > > Author: eugen > > Date: Thu Nov 29 14:21:26 2018 > > New Revision: 341232 > > URL: https://svnweb.freebsd.org/changeset/base/341232 > > > > Log: > > Add new small tool trim(1) to

svn commit: r341250 - stable/12/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:42:30 2018 New Revision: 341250 URL: https://svnweb.freebsd.org/changeset/base/341250 Log: MFC r341248: Fix age_old_log() after r337468. PR: 233633 Modified: stable/12/usr.sbin/newsyslog/newsyslog.c Directory Properties: stable/12/ (props changed

svn commit: r341249 - stable/12/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:35:37 2018 New Revision: 341249 URL: https://svnweb.freebsd.org/changeset/base/341249 Log: MFC r341247: Update the free page count when blacklisting pages. PR: 231296 Approved by: re (gjb, insta-MFC) Modified: stable/12/sys/vm/vm_page.c Di

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Conrad Meyer
Hi Eugene, On Thu, Nov 29, 2018 at 6:22 AM Eugene Grosbein wrote: > > Author: eugen > Date: Thu Nov 29 14:21:26 2018 > New Revision: 341232 > URL: https://svnweb.freebsd.org/changeset/base/341232 > > Log: > Add new small tool trim(1) to delete contents for blocks on flash > based storage devi

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Eugene Grosbein
29.11.2018 23:45, John Nielsen wrote: > I’m curious, would this also be useful for virtual disks or SAN/NAS devices > backed by thinly-provisioned storage? It won't work for for files residing on UFS/ZFS, if you mean that. And you can verify that easily: just make extra file and try to trim it

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread John Nielsen
> On Nov 29, 2018, at 7:21 AM, Eugene Grosbein wrote: > > Author: eugen > Date: Thu Nov 29 14:21:26 2018 > New Revision: 341232 > URL: https://svnweb.freebsd.org/changeset/base/341232 > > Log: > Add new small tool trim(1) to delete contents for blocks on flash > based storage devices that use

svn commit: r341248 - head/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 16:49:56 2018 New Revision: 341248 URL: https://svnweb.freebsd.org/changeset/base/341248 Log: Fix age_old_log() after r337468. We can no longer use sizeof() to get the path buffer's size. Apply a straightforward fix for now with the aim of MFCing soon.

svn commit: r341247 - head/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 16:31:01 2018 New Revision: 341247 URL: https://svnweb.freebsd.org/changeset/base/341247 Log: Update the free page count when blacklisting pages. Otherwise the free page count will not accurately reflect the physical page allocator's state. On 11 this can t

Re: svn commit: r341233 - head/usr.bin/trim

2018-11-29 Thread Warner Losh
On Thu, Nov 29, 2018 at 7:49 AM Eugene Grosbein wrote: > Author: eugen > Date: Thu Nov 29 14:49:33 2018 > New Revision: 341233 > URL: https://svnweb.freebsd.org/changeset/base/341233 > > Log: > trim(1): unbreak build after r341232 for platforms using gcc and not > clang > > MFC after:1 mo

Re: svn commit: r341232 - in head/usr.bin: . trim

2018-11-29 Thread Warner Losh
On Thu, Nov 29, 2018 at 7:21 AM Eugene Grosbein wrote: > Author: eugen > Date: Thu Nov 29 14:21:26 2018 > New Revision: 341232 > URL: https://svnweb.freebsd.org/changeset/base/341232 > > Log: > Add new small tool trim(1) to delete contents for blocks on flash > based storage devices that use

svn commit: r341246 - head/usr.sbin/trim

2018-11-29 Thread Eugene Grosbein
Author: eugen Date: Thu Nov 29 16:13:46 2018 New Revision: 341246 URL: https://svnweb.freebsd.org/changeset/base/341246 Log: trim.8: fix contents after rename from trim.1 MFC after:1 month Modified: head/usr.sbin/trim/trim.8 Modified: head/usr.sbin/trim/trim.8 ==

svn commit: r341245 - head/usr.sbin/trim

2018-11-29 Thread Eugene Grosbein
Author: eugen Date: Thu Nov 29 16:10:54 2018 New Revision: 341245 URL: https://svnweb.freebsd.org/changeset/base/341245 Log: trim(8): fix Makefile after rename from trim(1). MFC after:1 month Modified: head/usr.sbin/trim/Makefile Modified: head/usr.sbin/trim/Makefile ===

svn commit: r341244 - head/usr.sbin/trim

2018-11-29 Thread Eugene Grosbein
Author: eugen Date: Thu Nov 29 16:09:24 2018 New Revision: 341244 URL: https://svnweb.freebsd.org/changeset/base/341244 Log: Rename trim.1 to trim.8 too. MFC after:1 month Added: head/usr.sbin/trim/trim.8 - copied unchanged from r341243, head/usr.sbin/trim/trim.1 Deleted: head

svn commit: r341243 - in head: usr.bin usr.bin/trim usr.sbin usr.sbin/trim

2018-11-29 Thread Eugene Grosbein
Author: eugen Date: Thu Nov 29 16:08:16 2018 New Revision: 341243 URL: https://svnweb.freebsd.org/changeset/base/341243 Log: Move trim(1) from usr.bin to usr.sbin to become trim(8). Requested by: se MFC after:1 month Added: head/usr.sbin/trim/ - copied from r341242, head/usr.b

svn commit: r341242 - releng/12.0/sys/net

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 15:58:14 2018 New Revision: 341242 URL: https://svnweb.freebsd.org/changeset/base/341242 Log: MFstable/12 r341238: Plug routing sysctl leaks. Approved by: re (gjb) Modified: releng/12.0/sys/net/if.h releng/12.0/sys/net/route.h releng/12.0/sys/net/rts

  1   2   >