]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agoMFC r305148:
bdrewery [Tue, 3 Jan 2017 22:51:40 +0000 (22:51 +0000)]
MFC r305148:

  DIRDEPS_BUILD: Add some missing dirctories to the build.

7 years agoMFC r305255:
bdrewery [Tue, 3 Jan 2017 22:49:56 +0000 (22:49 +0000)]
MFC r305255:

  DIRDEPS_BUILD: Fix 'make bootstrap-tools' not using the proper tblgen
  binaries.

7 years agoMFC r305253:
bdrewery [Tue, 3 Jan 2017 22:49:15 +0000 (22:49 +0000)]
MFC r305253:

  META_MODE: Don't expect .meta files for side-effect generated files.

7 years agoMFC r304826:
bdrewery [Tue, 3 Jan 2017 22:48:37 +0000 (22:48 +0000)]
MFC r304826:

  WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta
  mode.

7 years agoMFC r305244:
bdrewery [Tue, 3 Jan 2017 22:46:43 +0000 (22:46 +0000)]
MFC r305244:

  DIRDEPS_BUILD: Add missing crunchgen host tool.

7 years agoMFC r305145:
bdrewery [Tue, 3 Jan 2017 22:46:00 +0000 (22:46 +0000)]
MFC r305145:

  DIRDEPS_BUILD: Avoid cyclic dependency with libc++.

7 years agoMFC r305009:
bdrewery [Tue, 3 Jan 2017 22:45:17 +0000 (22:45 +0000)]
MFC r305009:

  Allow parallelizing clean/cleandepend/depend with all.

7 years agoMFC r304647:
bdrewery [Tue, 3 Jan 2017 22:42:27 +0000 (22:42 +0000)]
MFC r304647:

  Rename ORDERED to BOOTSTRAP since no order is respected in the list.

7 years agoMFC r305216:
bdrewery [Tue, 3 Jan 2017 18:05:23 +0000 (18:05 +0000)]
MFC r305216:

  FAST_DEPEND/META_MODE: Fix several issues with SRCS containing '/'.

7 years agoMFC r305095:
bdrewery [Tue, 3 Jan 2017 17:16:13 +0000 (17:16 +0000)]
MFC r305095:

  AUTO_OBJ: Support SRCS/DPSRCS that contain '/' and require a nested OBJDIR.

7 years agoMFC r309411: Retire long-broken/unused static rtld support
emaste [Tue, 3 Jan 2017 15:59:39 +0000 (15:59 +0000)]
MFC r309411: Retire long-broken/unused static rtld support

rtld-elf has some vestigial support for building as a static executable.
r45501 introduced a partial implementation with a prescient note that it
"might never be enabled." r153515 introduced ELF symbol versioning
support, and removed part of the unused build infrastructure for static
rtld.

GNU ld populates rela relocation addends and GOT entries with the same
values, and rtld's run-time dynamic executable check relied on this.
Alternate toolchains may not populate the GOT entries, which caused
RTLD_IS_DYNAMIC to return false. Simplify rtld by just removing the
unused check.

If we want to restore static rtld support later on we ought to introduce
a build-time #ifdef flag.

PR: 214972

7 years agoMFC r310634: elfcopy: fix PE object section name corruption and crash
emaste [Tue, 3 Jan 2017 15:57:47 +0000 (15:57 +0000)]
MFC r310634: elfcopy: fix PE object section name corruption and crash

Fixed a bug that the PE object section names are generated incorrectly
using the section name table found in the original input ELF object
instead of the intermediate ELF object.

Ticket: #541

Do not try to copy section content from a NULL d_buf when creating
uninitialized data COFF section for PE object.

Ticket: #540

Obtained from: ELF Tool Chain r3507, r3508

7 years agoMFC r310986:
ngie [Tue, 3 Jan 2017 05:43:17 +0000 (05:43 +0000)]
MFC r310986:

snmp_output_resp: style(9): sort variables by alignment

7 years agoMFC r310647:
markj [Tue, 3 Jan 2017 00:25:47 +0000 (00:25 +0000)]
MFC r310647:
Remove an obsolete pragma from dtrace.h.

7 years agoMFC r310865:
ngie [Mon, 2 Jan 2017 17:40:23 +0000 (17:40 +0000)]
MFC r310865:

Fix whitespace in a comment and fixing a spelling error in a comment

7 years agoMFC r310872, r310874
bapt [Mon, 2 Jan 2017 11:58:54 +0000 (11:58 +0000)]
MFC r310872, r310874

r310872:
Make sdiff --left-column work as expected

r310874:
Remove extra entries from the option enum

7 years agoMFC r310616:
kib [Mon, 2 Jan 2017 08:22:40 +0000 (08:22 +0000)]
MFC r310616:
Remove redundancy in vmtotal().

7 years agoMFC r310613:
kib [Mon, 2 Jan 2017 08:20:26 +0000 (08:20 +0000)]
MFC r310613:
Style.

7 years agoMFC r309300,r309363,r309405,r309523,r309590,r310185,r310623:
mm [Mon, 2 Jan 2017 01:41:31 +0000 (01:41 +0000)]
MFC r309300,r309363,r309405,r309523,r309590,r310185,r310623:

Sync libarchive with vendor.

Fixed vendor issues (relevant to FreeBSD)
#825, #832: Add sanity check of tar "uid, "gid" and "mtime" fields
#830, #831, #833, #846: Spelling fixes
#850: Fix issues with reading certain jar files

Fixed issues found by Google OSS-Fuzz:
OSS-Fuzz #15: Fix heap-buffer-overflow in archive_le16dec()
OSS-Fuzz #16: Fix possible hang in uudecode_filter_read()
OSS-Fuzz #139, #145, #152: Fix heap-buffer-overflow in uudecode_bidder_bid()
OSS-Fuzz #220: Reject an 'ar' filename table larger than 1GB or a filename
               larger than 1MB
OSS-Fuzz #227, #230, #239: Fix possible memory leak in archive_read_free()
OSS-Fuzz #237: Fix heap buffer overflow when reading invalid ar archives
OSS-Fuzz #286: Bugfix in archive_strncat_l()

More information:
https://github.com/libarchive/libarchive/issues/[libarchive_issue_number]
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=[oss_fuzz_issue_number]

7 years agoMFC r310820
arybchik [Sun, 1 Jan 2017 19:46:56 +0000 (19:46 +0000)]
MFC r310820

sfxge(4): move queue size checks to after the NIC config has been populated

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310819
arybchik [Sun, 1 Jan 2017 19:45:17 +0000 (19:45 +0000)]
MFC r310819

sfxge(4): cleanup: add efsys_lock_state_t for type of state param in EFSYS_LOCK()

This allows the common code to use the correct type for the lock state
local variable passed to EFSYS_LOCK() and EFSYS_UNLOCK().

On Windows, this allows warning supression pragmas to be removed.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310812
arybchik [Sun, 1 Jan 2017 19:41:17 +0000 (19:41 +0000)]
MFC r310812

sfxge(4): support non-interrupting event queues creation

Poll-mode driver does not use interrupts and number of used event queues
should not be limitted by the number of interrupts allocated for the
NIC.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310811
arybchik [Sun, 1 Jan 2017 19:37:22 +0000 (19:37 +0000)]
MFC r310811

sfxge(4): cleanup: remove now-unused function flags

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310810
arybchik [Sun, 1 Jan 2017 19:35:29 +0000 (19:35 +0000)]
MFC r310810

sfxge(4): cleanup: check deferred packet list tunables once

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310770
arybchik [Sun, 1 Jan 2017 19:33:12 +0000 (19:33 +0000)]
MFC r310770

sfxge(4): cleanup: clarify/unify variable name used for put-list length

get_count is used for get-list.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310764
arybchik [Sun, 1 Jan 2017 19:30:45 +0000 (19:30 +0000)]
MFC r310764

sfxge(4): sync up tlv_layout.h (from firmwaresrc 82cd8a5715e9)

Submitted by:   Matthew Slattery <mslattery at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310762
arybchik [Sun, 1 Jan 2017 19:27:31 +0000 (19:27 +0000)]
MFC r310762

sfxge(4): regenerate MCDI headers from firmwaresrc .yml

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310760
arybchik [Sun, 1 Jan 2017 19:23:52 +0000 (19:23 +0000)]
MFC r310760

sfxge(4): fix typo in pseudo header accessor function names

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310758
arybchik [Sun, 1 Jan 2017 19:21:23 +0000 (19:21 +0000)]
MFC r310758

sfxge(4): delete hunt_phy.c

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310756
arybchik [Sun, 1 Jan 2017 19:18:40 +0000 (19:18 +0000)]
MFC r310756

sfxge(4): do not use enum type when values are bitmask

ICC complains that enumerated type mixed with another type.

Found by DPDK upstream build sanity check.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310755
arybchik [Sun, 1 Jan 2017 19:16:57 +0000 (19:16 +0000)]
MFC r310755

sfxge(4): do not use enum for filter flags

It is not 100% correct to assign non-enum values to enum type
variables.

Found by ICC build (DPDK PMD upstreaming).

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310754
arybchik [Sun, 1 Jan 2017 19:15:08 +0000 (19:15 +0000)]
MFC r310754

sfxge(4): don't use Tx descriptor push with TSO option descriptors

It is not safe to push TSO option descriptors if pacer bypass is
enabled, so to make sure that doesn't happen never push TSO option
descriptors.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310752
arybchik [Sun, 1 Jan 2017 19:13:53 +0000 (19:13 +0000)]
MFC r310752

sfxge(4): allow to have no NIC handle on Rx datapath in DPDK PMD

It is required to minimize RxQ context in the driver or avoid chaising
for the NIC handle in adapter (global per-interface) structure.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310749
arybchik [Sun, 1 Jan 2017 19:11:31 +0000 (19:11 +0000)]
MFC r310749

sfxge(4): use correct port number in sensor decoding

The port mask used for per-port sensors in mcdi_sensor_map
assumes zero-based port numbering. The port mask used in
the code is based on the one-based MCDI port number.

Fix this to lookup the correct per-port sensors, and to
allow reporting of sensor events from higher port numbers.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310748
arybchik [Sun, 1 Jan 2017 19:09:50 +0000 (19:09 +0000)]
MFC r310748

sfxge(4): cleanup: simplify disable scatter logic in ef10_rx_qcreate

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310747
arybchik [Sun, 1 Jan 2017 19:07:41 +0000 (19:07 +0000)]
MFC r310747

sfxge(4): provide a way to find out which MAC stats are supported

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310746
arybchik [Sun, 1 Jan 2017 19:06:02 +0000 (19:06 +0000)]
MFC r310746

sfxge(4): make the common code determine the number of PFs

Submitted by:   Ivan Malov <Ivan.Malov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310745
arybchik [Sun, 1 Jan 2017 19:04:40 +0000 (19:04 +0000)]
MFC r310745

sfxge(4): make the common code retrieve the number of FATSOv2 contexts

Submitted by:   Ivan Malov <Ivan.Malov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310234:
kib [Sun, 1 Jan 2017 11:38:34 +0000 (11:38 +0000)]
MFC r310234:
Improve vm_object_scan_all_shadowed() to also check swap backing objects.

7 years agoMFC r310554:
kib [Sun, 1 Jan 2017 11:19:17 +0000 (11:19 +0000)]
MFC r310554:
Some optimizations for kqueue timers.

7 years agoMFC r310552:
kib [Sun, 1 Jan 2017 11:09:51 +0000 (11:09 +0000)]
MFC r310552:
Some style.

7 years agoMFC r310996:
ngie [Sun, 1 Jan 2017 04:45:06 +0000 (04:45 +0000)]
MFC r310996:

Look for list.h in ${.CURDIR} to unbreak the build with a ports-based copy
of llvm38 on ^/stable/11 (oh, the bugs you find when you set CC,CXX,CPP
manually and it skips the bootstrap stage for the toolchain...)

7 years agoMFC r310763:
ngie [Sun, 1 Jan 2017 00:41:57 +0000 (00:41 +0000)]
MFC r310763:

Use uint32_t instead of u_int32_t for or_last_change and services in "struct systemg"

This is being done to match "struct systemg" in snmpmod(3)

No functional change

7 years agoMFC r310498,r310591:
ngie [Sun, 1 Jan 2017 00:36:52 +0000 (00:36 +0000)]
MFC r310498,r310591:

r310498:

Allow SNMPv3 authNoPriv and noAuthNoPriv protocols to discover snmpEngineTime
as discussed in RFC-5343

This fixes interoperability with net-snmp.

Tested with the following invocations of snmpwalk (from net-snmp):

- noAuthNoPriv:

  % snmpwalk -v 3 -n '' -u public localhost snmpEngineTime

- authNoPriv:

  % snmpwalk -v 3 -n '' -u bsnmp -A bsnmptest -l authNoPriv -a sha localhost \
    localhost snmpEngineTime

- authPriv:

  % snmpwalk -v 3 -n '' -u bsnmp -A bsnmptest -l authPriv -a sha -x des \
    -X bsnmptest localhost snmpEngineTime

Obtained from: Isilon OneFS (5ec6d772cacbc, with minor tweaks)

r310591:

Update engine time using update_snmpd_engine_time(..)

7 years agoMFC 310336:
jhb [Sat, 31 Dec 2016 17:05:09 +0000 (17:05 +0000)]
MFC 310336:
Don't spin in pause() during early boot for kthreads other than thread0.

pause() uses a spin loop to simulate a sleep during early boot.  However,
we only need this for thread0 to get far enough in the boot process to
enable timers (at which point pause() can sleep).  For other kthreads,
sleeping in pause() is ok as the callout will be scheduled and will
eventually fire once thread0 initializes timers.

7 years agoMFC r309307,r309308:
mjg [Sat, 31 Dec 2016 13:10:08 +0000 (13:10 +0000)]
MFC r309307,r309308:

    vfs: avoid VOP_ISLOCKED in the common case in lookup

==

    vfs: fix a whitespace nit in r309307

7 years agoMFC r309111:
mjg [Sat, 31 Dec 2016 13:07:09 +0000 (13:07 +0000)]
MFC r309111:

    wait: avoid relocking the child if proc_to_reap returns 1

    proc_to_reap would always unlock. However, if it returned 1, kern_wait6
    would immediately lock it again. Save the dance.

7 years agoMFC r307653:
mjg [Sat, 31 Dec 2016 13:05:48 +0000 (13:05 +0000)]
MFC r307653:

    Mark a bunch of mpsafe sysctls as such.

    This gives me a sysctl Giant-free buildworld.

7 years agoMFC r305856:
mjg [Sat, 31 Dec 2016 13:04:12 +0000 (13:04 +0000)]
MFC r305856:

    linprocfs: garbage collect meminfo fields not present in linux

    In particular memshared not only does not exist in linux, it was
    extremely expensive to calculate.

7 years agoMFC r304927:
mjg [Sat, 31 Dec 2016 12:58:26 +0000 (12:58 +0000)]
MFC r304927:

    vfs: provide a common exit point in namei for error cases

    This shortens the function, adds the SDT_PROBE use for error cases and
    consistenly unrefs rootdir last.

7 years agoBump copyright year.
bapt [Sat, 31 Dec 2016 12:52:23 +0000 (12:52 +0000)]
Bump copyright year.

Happy New Year 2017!

7 years agoMFC r303921:
mjg [Sat, 31 Dec 2016 12:49:20 +0000 (12:49 +0000)]
MFC r303921:

    ktrace: do a lockless check on fork to see if tracing is enabled

    This saves 2 lock acquisitions in the common case.

7 years agoMFC r303921:
mjg [Sat, 31 Dec 2016 12:47:41 +0000 (12:47 +0000)]
MFC r303921:

    sigio: do a lockless check in funsetownlist

    There is no need to grab the lock first to see if sigio is used, and it
    typically is not.

7 years agoMFC r305482:
mjg [Sat, 31 Dec 2016 12:39:34 +0000 (12:39 +0000)]
MFC r305482:

    cv: do a lockless check for no waiters in cv_signal and cv_broadcastpri

    In case of some consumers like zfs there are no waiters vast majority of
    the time

7 years agoMFC r305378,r305379,r305386,r305684,r306224,r306608,r306803,r307650,r307685,
mjg [Sat, 31 Dec 2016 12:32:50 +0000 (12:32 +0000)]
MFC r305378,r305379,r305386,r305684,r306224,r306608,r306803,r307650,r307685,
r308407,r308665,r308667,r309067:

    cache: put all negative entry management code into dedicated functions

==
    cache: manage negative entry list with a dedicated lock

    Since negative entries are managed with a LRU list, a hit requires a
    modificaton.

    Currently the code tries to upgrade the global lock if needed and is
    forced to retry the lookup if it fails.

    Provide a dedicated lock for use when the cache is only shared-locked.

==

    cache: defer freeing entries until after the global lock is dropped

    This also defers vdrop for held vnodes.

==

    cache: improve scalability by introducing bucket locks

    An array of bucket locks is added.

    All modifications still require the global cache_lock to be held for
    writing. However, most readers only need the relevant bucket lock and in
    effect can run concurrently to the writer as long as they use a
    different lock. See the added comment for more details.

    This is an intermediate step towards removal of the global lock.

==

    cache: get rid of the global lock

    Add a table of vnode locks and use them along with bucketlocks to provide
    concurrent modification support. The approach taken is to preserve the
    current behaviour of the namecache and just lock all relevant parts before
    any changes are made.

    Lookups still require the relevant bucket to be locked.

==

    cache: ignore purgevfs requests for filesystems with few vnodes

    purgevfs is purely optional and induces lock contention in workloads
    which frequently mount and unmount filesystems.

    In particular, poudriere will do this for filesystems with 4 vnodes or
    less. Full cache scan is clearly wasteful.

    Since there is no explicit counter for namecache entries, the number of
    vnodes used by the target fs is checked.

    The default limit is the number of bucket locks.

== (by kib)

    Limit scope of the optimization in r306608 to dounmount() caller only.
    Other uses of cache_purgevfs() do rely on the cache purge for correct
    operations, when paths are invalidated without unmount.

==

    cache: split negative entry LRU into multiple lists

    This splits the ncneg_mtx lock while preserving the hit ratio at least
    during buildworld.

    Create N dedicated lists for new negative entries.

    Entries with at least one hit get promoted to the hot list, where they
    get requeued every M hits.

    Shrinking demotes one hot entry and performs a round-robin shrinking of
    regular lists.

==

    cache: fix up a corner case in r307650

    If no negative entry is found on the last list, the ncp pointer will be
    left uninitialized and a non-null value will make the function assume an
    entry was found.

    Fix the problem by initializing to NULL on entry.

== (by kib)

    vn_fullpath1() checked VV_ROOT and then unreferenced
    vp->v_mount->mnt_vnodecovered unlocked.  This allowed unmount to race.
    Lock vnode after we noticed the VV_ROOT flag.  See comments for
    explanation why unlocked check for the flag is considered safe.

==

    cache: fix a race between entry removal and demotion

    The negative list shrinker can demote an entry with only hotlist + neglist
    locks held. On the other hand entry removal possibly sets the NCF_DVDROP
    without aformentioned locks held prior to detaching it from the respective
    netlist., which can lose the update made by the shrinker.

==

    cache: plug a write-only variable in cache_negative_zap_one

==

    cache: ensure that the number of bucket locks does not exceed hash size

    The size can be changed by side effect of modifying kern.maxvnodes.

    Since numbucketlocks was not modified, setting a sufficiently low value
    would give more locks than actual buckets, which would then lead to
    corruption.

    Force the number of buckets to be not smaller.

    Note this should not matter for real world cases.

7 years agoMFC r309893,r309929:
mjg [Sat, 31 Dec 2016 12:06:27 +0000 (12:06 +0000)]
MFC r309893,r309929:

    vfs: add vrefact, to be used when the vnode has to be already active

    This allows blind increment of relevant counters which under contention
    is cheaper than inc-not-zero loops at least on amd64.

    Use it in some of the places which are guaranteed to see already active
    vnodes.

==

    vfs: use vrefact in getcwd and fchdir

7 years agoMFC r310742
arybchik [Sat, 31 Dec 2016 11:30:18 +0000 (11:30 +0000)]
MFC r310742

sfxge(4): fix common code for non-Siena builds

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310741
arybchik [Sat, 31 Dec 2016 11:28:47 +0000 (11:28 +0000)]
MFC r310741

sfxge(4): fix misuse of siena_build_filter in common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310719
arybchik [Sat, 31 Dec 2016 11:27:58 +0000 (11:27 +0000)]
MFC r310719

sfxge(4): cleanup: remove last use of deprecated function flags with privilege check

The function flags were changed to mirror the privileges, but
the privileges are preferred.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310717
arybchik [Sat, 31 Dec 2016 11:26:29 +0000 (11:26 +0000)]
MFC r310717

sfxge(4): move BIST methods from hunt_phy.c to ef10_phy.c

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310716
arybchik [Sat, 31 Dec 2016 11:24:59 +0000 (11:24 +0000)]
MFC r310716

sfxge(4): add UEFI ROM support to the common code

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310715
arybchik [Sat, 31 Dec 2016 11:23:43 +0000 (11:23 +0000)]
MFC r310715

sfxge(4): fix GET_RXDP_CONFIG usage for multi-PF on Medford

On Medford, using MC_CMD_GET_RXDP_CONFIG to query the RX end
padding setting is in the ADMIN group, and so fails for
unprivileged functions. In that case, assume the largest size
supported by Medford hardware (256bytes) to prevent overrun.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310714
arybchik [Sat, 31 Dec 2016 11:23:03 +0000 (11:23 +0000)]
MFC r310714

sfxge(4): support Medford bootcfg partition layout in common code

For Siena and Huntington, the per-port bootcfg (aka expcfg) is
stored in a dedicated 4Kbyte partition for each port.

For Medford, the per-PF bootcfg is stored in a 2Kbyte sector
within a single shared partition. Update the common code to support
the new bootcfg layout.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310713
arybchik [Sat, 31 Dec 2016 11:21:49 +0000 (11:21 +0000)]
MFC r310713

sfxge(4): add possibility to control event queue performance profile

It is ignored on SFN5xxx/6xxx (aka Siena).

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310709
arybchik [Sat, 31 Dec 2016 11:19:40 +0000 (11:19 +0000)]
MFC r310709

sfxge(4): fix invalid type of eft_unicst_filter_count

Found by clang when boolean_t is defined as bool for DPDK PMD.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310708
arybchik [Sat, 31 Dec 2016 11:18:22 +0000 (11:18 +0000)]
MFC r310708

sfxge(4): do not initialize enumerated type variable to another type

Fix build warning generated by ICC.

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310704
arybchik [Sat, 31 Dec 2016 11:17:43 +0000 (11:17 +0000)]
MFC r310704

sfxge(4): translate MC_CMD_ERR_ERANGE to host errno value

This is needed because MCDI command MC_CMD_REKEY can return
MC_CMD_ERR_ERANGE.

Submitted by:   Tom Millington <tmillington at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310699
arybchik [Sat, 31 Dec 2016 11:16:35 +0000 (11:16 +0000)]
MFC r310699

sfxge(4): rename hunt_bist_* methods to ef10_bist_*

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310696
arybchik [Sat, 31 Dec 2016 11:15:25 +0000 (11:15 +0000)]
MFC r310696

sfxge(4): cleanup: improve prefast annotations

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310695
arybchik [Sat, 31 Dec 2016 11:14:03 +0000 (11:14 +0000)]
MFC r310695

sfxge(4): fix defined-but-not-used warning if neither VPD nor NVRAM opt
enabled

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310694
arybchik [Sat, 31 Dec 2016 11:13:23 +0000 (11:13 +0000)]
MFC r310694

sfxge(4): cleanup: add missing spaces

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310693
arybchik [Sat, 31 Dec 2016 11:12:26 +0000 (11:12 +0000)]
MFC r310693

sfxge(4): cleanup: avoid unspecified unsigned

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310692
arybchik [Sat, 31 Dec 2016 11:11:04 +0000 (11:11 +0000)]
MFC r310692

sfxge(4): enclose macro complex value in parenthesis

Found by DPDK checkpatches.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310691
arybchik [Sat, 31 Dec 2016 11:10:01 +0000 (11:10 +0000)]
MFC r310691

sfxge(4): make strings array pointer itself immutable

Found by DPDK checkpatches.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310690
arybchik [Sat, 31 Dec 2016 11:09:01 +0000 (11:09 +0000)]
MFC r310690

sfxge(4): cleanup: add const qualifier to const array pointer

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310689
arybchik [Sat, 31 Dec 2016 11:07:44 +0000 (11:07 +0000)]
MFC r310689

sfxge(4): cleanup: avoid spaces before TAB

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310688
arybchik [Sat, 31 Dec 2016 11:06:19 +0000 (11:06 +0000)]
MFC r310688

sfxge(4): cleanup: avoid space just before TAB in efx_types.h

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310687
arybchik [Sat, 31 Dec 2016 11:05:04 +0000 (11:05 +0000)]
MFC r310687

sfxge(4): cleanup: use TAB to indent

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310686
arybchik [Sat, 31 Dec 2016 11:03:54 +0000 (11:03 +0000)]
MFC r310686

sfxge(4): cleanup: add missing space between type and pointer symbol

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310685
arybchik [Sat, 31 Dec 2016 11:02:33 +0000 (11:02 +0000)]
MFC r310685

sfxge(4): cleanup: open brace should be on a type name line

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310681
arybchik [Sat, 31 Dec 2016 11:01:11 +0000 (11:01 +0000)]
MFC r310681

sfxge(4): cleanup: remove unnecessary spaces

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310684
arybchik [Sat, 31 Dec 2016 11:00:35 +0000 (11:00 +0000)]
MFC r310684

sfxge(4): cleanup: remove trailing whitespaces

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310683
arybchik [Sat, 31 Dec 2016 10:59:22 +0000 (10:59 +0000)]
MFC r310683

sfxge(4): cleanup: pointer symbol should go together with struct member name

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310682
arybchik [Sat, 31 Dec 2016 10:57:24 +0000 (10:57 +0000)]
MFC r310682

sfxge(4): cleanup: avoid C99 // comments

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

7 years agoMFC r310668:
ngie [Sat, 31 Dec 2016 10:41:51 +0000 (10:41 +0000)]
MFC r310668:

style(9) fixes: clean up leading whitespace

7 years agoMFC r310500,r310660:
ngie [Sat, 31 Dec 2016 10:40:02 +0000 (10:40 +0000)]
MFC r310500,r310660:

r310500:

Minor style(9) fixes

- Trailing whitespace cleanup
- Sort variables in snmp_dialog(..) by alignment

No functional change

r310660:

style(9): fix whitespace in pdu_encode_secparams(..)

7 years agoMFC r310667:
ngie [Sat, 31 Dec 2016 10:37:39 +0000 (10:37 +0000)]
MFC r310667:

style(9) fixes: clean up leading whitespace

7 years agoMFC r310662,r310663:
ngie [Sat, 31 Dec 2016 10:36:07 +0000 (10:36 +0000)]
MFC r310662,r310663:

r310662:

style(9): snmp_send_packet(..): fix whitespace

r310663:

style(9): ip_get(..): clean up whitespace

7 years agoMFC r310669:
ngie [Sat, 31 Dec 2016 10:34:04 +0000 (10:34 +0000)]
MFC r310669:

style(9): clean up whitespace

7 years agoMFC r310648:
ngie [Sat, 31 Dec 2016 10:32:49 +0000 (10:32 +0000)]
MFC r310648:

style(9): clean up trailing whitespace

7 years agoMFC r310666,r310675:
ngie [Sat, 31 Dec 2016 10:28:59 +0000 (10:28 +0000)]
MFC r310666,r310675:

r310666:

style(9) fixes

- Clean up trailing whitespace
- Fix variable type alignment in storage_OS_get_swap(..)

r310675:

Fix the build by moving the initializers for len/nswapdev down below the
declarations

Pointyhat to: ngie

7 years agoMFC r310662:
ngie [Sat, 31 Dec 2016 10:27:10 +0000 (10:27 +0000)]
MFC r310662:

style(9): snmp_send_packet(..): fix whitespace

7 years agoMFC r310728:
ngie [Sat, 31 Dec 2016 10:25:55 +0000 (10:25 +0000)]
MFC r310728:

Install {asn1,bsnmpagent,bsnmpclient,bsnmplib}.3 as all of the APIs
they document

Also, alphabetically sort MAN

7 years agoMFC r310654:
ngie [Sat, 31 Dec 2016 10:23:52 +0000 (10:23 +0000)]
MFC r310654:

Install snmpmod.3 as all of the bsnmpd APIs it documents

7 years agoMFC r310642:
tuexen [Sat, 31 Dec 2016 10:08:44 +0000 (10:08 +0000)]
MFC r310642:

Consistent handling of errors reported from the lower layer.

7 years agoMFC r310000:
loos [Sat, 31 Dec 2016 02:02:42 +0000 (02:02 +0000)]
MFC r310000:

Remove a too strict test and instead, just filter the passed flags with the
supported capabilities.

Spotted by: yamori813@yahoo.co.jp (Hiroki Mori)

7 years agoMFC r309717:
loos [Sat, 31 Dec 2016 02:00:51 +0000 (02:00 +0000)]
MFC r309717:

Fix the typos and style(9) in comment.

7 years agoMFC r309461:
loos [Sat, 31 Dec 2016 01:58:04 +0000 (01:58 +0000)]
MFC r309461:

Allow simultaneous access to switch device, there is no reason to prevent
it.

Remove bogus wrappers and use the kernel defaults.

While here, use DEVMETHOD_END.

Obtained from: pfSense
Sponsored by: Rubicon Communications, LLC (Netgate)

7 years agoMFC r309345:
loos [Sat, 31 Dec 2016 01:54:48 +0000 (01:54 +0000)]
MFC r309345:

The RX_FREEBUFFER registers are a write to increment field.
Writing the full queue size to it every time was makeing it overflow with a
lot of bogus values.

This fixes the interrupt storms on irq 40.

MFC r309347:

MDIO_PHYACCESS_ACK is only valid for read access, remove it from
miibus_writereg.

Reduce the DELAY() between reads while waiting for MII access.

Spotted by: yongari

Sponsored by: Rubicon Communications, LLC (Netgate)

7 years agoMFC r309113:
loos [Sat, 31 Dec 2016 01:51:41 +0000 (01:51 +0000)]
MFC r309113:

Add the etherswitch(4) support for TI CPSW.
Adds VLAN and port management abilities for etherswitchcfg(8).

The code is conditionally enabled for now, because it is not necessary on
single ethernet use cases.

Obtained from: pfSense
Sponsored by: Rubicon Communications, LLC (Netgate)