]>
CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
tuexen [Sat, 16 Jan 2016 14:48:54 +0000 (14:48 +0000)]
MFC r287444:
Fix a bug where two SHUTDOWN_ACK chunks were sent if a SHUTDOWN chunk was
received acking all outstanding data.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294152
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 14:46:27 +0000 (14:46 +0000)]
MFC r287294:
Use 5 times RTO.Max as the default for the shutdown guard timer
as required by RFC 4960. The sysctl variable can be used to
overwrite this.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294151
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 14:43:27 +0000 (14:43 +0000)]
MFC r287284:
Use the userland exported states and handle them completely.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294150
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 14:41:44 +0000 (14:41 +0000)]
MFC r287282:
Fix the exporting of SCTP association states to userland. Without this,
associations in SHUTDOWN-PENDING were never reported correctly.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294149
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:50:00 +0000 (12:50 +0000)]
MFC r286781:
Allow the path MTU to grow up to the outgoing interface MTU.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294148
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:47:28 +0000 (12:47 +0000)]
MFC r286206:
Don't take the port numbers for packets containing ABORT chunks from
a freed mbuf. Just use them from the stcb.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294147
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:43:02 +0000 (12:43 +0000)]
MFC r285938:
Fix a typo reported by Erik Cederstrand.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294146
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:40:43 +0000 (12:40 +0000)]
MFC r285925:
Provide consistent error causes whenever an ABORT chunk is sent.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294145
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:38:14 +0000 (12:38 +0000)]
MFC r285887:
Improve locking on Mac OS X. This does not change the functionality
on FreeBSD.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294144
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:36:09 +0000 (12:36 +0000)]
MFC r285886:
Fix and improve a debug message. The SID was reported as an SSN.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294143
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:33:45 +0000 (12:33 +0000)]
MFC r285877:
Move including netinet/icmp6.h around to avoid a problem when including
netinet/icmp6.h and net/netmap.h. Both use ni_flags...
This allows to build multistack with SCTP support.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294142
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:20:47 +0000 (12:20 +0000)]
MFC r285837, r285838
Fix an issue with MAC OS locking and also optimize the case
where we are sending back a stream-reset and a sack timer is running, in
that case we should just send the SACK.
Fix silly syntax error emacs chugged in for me.. gesh.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294141
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 12:15:07 +0000 (12:15 +0000)]
MFC r285792:
Fix several problems with Stream Reset.
1) We were not handling (or sending) the IN_PROGRESS case if
the other side (or our side) was not able to reset (awaiting more data).
2) We would improperly send a stream-reset when we should not. Not
waiting until the TSN had been assigned when data was inqueue.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294140
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
tuexen [Sat, 16 Jan 2016 11:19:08 +0000 (11:19 +0000)]
MFC r285237:
Export the ssthresh value per SCTP path via the sysctl interface.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294139
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dchagin [Sat, 16 Jan 2016 07:56:49 +0000 (07:56 +0000)]
MFC r293613:
Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall
instead of vdso. An upcoming linux_base-c6 needs it.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294136
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dchagin [Sat, 16 Jan 2016 07:46:25 +0000 (07:46 +0000)]
MFC r283430:
Teach kdump to understand both linux emulation.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294135
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jpaetzel [Sat, 16 Jan 2016 01:40:46 +0000 (01:40 +0000)]
MFC 293305
Allow /etc/exports to contain usernames/groups with spaces in them.
If you are getting your users/groups from a directory service such
as LDAP or AD it's possible for those usernames or groupnames to
contain spaces.
Submitted by: Sean E. Fagan
Reviewed by: rmacklem
Sponsored by: iXsystems
git-svn-id: svn://svn.freebsd.org/base/stable/10@294124
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
allanjude [Fri, 15 Jan 2016 20:59:57 +0000 (20:59 +0000)]
MFC: r287581
Add an additional check to service(8) -e incase rcvar is blank
Sponsored by: ScaleEngine Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294100
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jilles [Fri, 15 Jan 2016 20:55:44 +0000 (20:55 +0000)]
MFC r293783: futimens/utimensat: Use the new system calls.
Update the __FreeBSD_version check in lib/libc/sys/futimens.c and
lib/libc/sys/utimensat.c. Before this, fallback code using
futimes/futimesat/lutimes was used except when running on a sufficiently
recent 11-current kernel.
Also, update the history section in the man page.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294099
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ngie [Fri, 15 Jan 2016 08:55:33 +0000 (08:55 +0000)]
Revert r294061
A number of pieces needed (netmap(4)) etc are missing, i.e. the MFCs
were incomplete.
Revert the changes so they can be redone cleanly again and to unbreak GENERIC,
LINT, etc
Sponsored by: EMC / Isilon Storage
git-svn-id: svn://svn.freebsd.org/base/stable/10@294082
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Fri, 15 Jan 2016 05:48:28 +0000 (05:48 +0000)]
Document SA-16:07
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@294074
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Fri, 15 Jan 2016 05:38:27 +0000 (05:38 +0000)]
Fix dates for previous errata update.
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/10@294071
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
rpokala [Fri, 15 Jan 2016 04:05:56 +0000 (04:05 +0000)]
[PR 206219] Kernel panic from lagg_ioctl and lagg_port_ioctl
r287723 removed some cleanup from lagg(4), which leads to panics when
changing configuration. Restore the spirit of the code which was removed.
This issue has been refactored out of existence in -HEAD, so this patch is
directly against stable/10.
PR: 206219
Submitted by: Fred Lewis < flewis @ panasas.com >
Reviewed by: hiren, Daniel O'Connor < darius @ dons.net.au >
Approved by: jhb
Sponsored by: Panasas, Inc.
Differential Revision: https://reviews.freebsd.org/D4929
git-svn-id: svn://svn.freebsd.org/base/stable/10@294070
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ngie [Fri, 15 Jan 2016 02:22:02 +0000 (02:22 +0000)]
MFC r293032:
Use randomly generated device names in testcases via mktemp -u instead of using
the hardcoded device name, "test"
git-svn-id: svn://svn.freebsd.org/base/stable/10@294066
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
smh [Fri, 15 Jan 2016 02:14:49 +0000 (02:14 +0000)]
MFC r274503:
Add OBJDUMP to sys.mk.
Sponsored by: Multiplay
git-svn-id: svn://svn.freebsd.org/base/stable/10@294064
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ngie [Fri, 15 Jan 2016 02:13:55 +0000 (02:13 +0000)]
MFC r293028,r293029:
r293028:
- Use geom <class> load instead of g<class> load; g<class> doesn't exist
for all geom classes, e.g. geom_uzip(4)
- These tests require root. Skip all of the tests if they're run as non-root
r293029:
Add functions for managing md(4) devices and cleaning up said md(4) devices
These will be used soon in the various test scripts that source geom_subr.sh
git-svn-id: svn://svn.freebsd.org/base/stable/10@294063
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
sbruno [Fri, 15 Jan 2016 01:26:32 +0000 (01:26 +0000)]
Multiple MFC for ixgbe -- v 3.1.0
r283883
-- update to 3.1.0
r283893
-- update SRIOV API changes related to future possible MFC of SRIOV work
r285590
-- Fix ixgbe(4) SRIOV VF initialization bugs
r285591
-- Remove version check for FLOWID
r285592
-- Update netmap support for ixgbe SRIOV VFs, needs ixgbe_netmap.h merge
r286238
-- Fixup MTU zeroing if INET/INET6 are undefined.
Submitted by: kevin bowling (kevin.bowling@kev009.com)
Reviewed by: smh
Relnotes: Yes
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D4273
git-svn-id: svn://svn.freebsd.org/base/stable/10@294061
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
marius [Fri, 15 Jan 2016 00:05:58 +0000 (00:05 +0000)]
Update stable/10 from 10.2-STABLE to 10.3-PRERELEASE,
marking the official start of the code slush.
Set the default mdoc(7) version to 10.3, and update the
clang(1) TARGET_TRIPLE and BUILD_TRIPLE to reflect 10.3.
Approved by: re (implicit)
git-svn-id: svn://svn.freebsd.org/base/stable/10@294056
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
glebius [Thu, 14 Jan 2016 22:42:43 +0000 (22:42 +0000)]
Merge r294048: fix OpenSSH client information leak.
Security: SA-16:07.openssh
Security: CVE-2016-0777
git-svn-id: svn://svn.freebsd.org/base/stable/10@294049
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jtl [Thu, 14 Jan 2016 22:02:21 +0000 (22:02 +0000)]
MFC r290811:
Fix hwpmc "stalled" behavior
Currently, there is a single pm_stalled flag that tracks whether a
performance monitor was "stalled" due to insufficent ring buffer
space for samples. However, because the same performance monitor
can run on multiple processes or threads at the same time, a single
pm_stalled flag that impacts them all seems insufficient.
In particular, you can hit corner cases where the code fails to stop
performance monitors during a context switch out, because it thinks
the performance monitor is already stopped. However, in reality,
it may be that only the monitor running on a different CPU was stalled.
This patch attempts to fix that behavior by tracking on a per-CPU basis
whether a PM desires to run and whether it is "stalled". This lets the
code make better decisions about when to stop PMs and when to try to
restart them. Ideally, we should avoid the case where the code fails
to stop a PM during a context switch out.
MFC r290813:
Optimizations to the way hwpmc gathers user callchains
Changes to the code to gather user stacks:
* Delay setting pmc_cpumask until we actually have the stack.
* When recording user stack traces, only walk the portion of the ring
that should have samples for us.
MFC r290929:
Change the driver stats to what they really are: unsigned values.
When pmcstat exits after some samples were dropped, give the user an
idea of how many were lost. (Granted, these are global numbers, but
they may still help quantify the scope of the loss.)
MFC r290930:
Improve accuracy of PMC sampling frequency
The code tracks a counter which is the number of events until the next
sample. On context switch in, it loads the saved counter. On context
switch out, it tries to calculate a new saved counter.
Problems:
1. The saved counter was shared by all threads in a process. However, this
means that all threads would be initially loaded with the same saved
counter. However, that could result in sampling more often than once every
X number of events.
2. The calculation to determine a new saved counter was backwards. It
added when it should have subtracted, and subtracted when it should have
added. Assume a single-threaded process with a reload count of 1000
events. Assuming the counter on context switch in was 100 and the counter
on context switch out was 50 (meaning the thread has "consumed" 50 more
events), the code would calculate a new saved counter of 150 (instead of
the proper 50).
Fix:
1. As soon as the saved counter is used to initialize a monitor for a
thread on context switch in, set the saved counter to the reload count.
That way, subsequent threads to use the saved counter will get the full
reload count, assuring we sample at least once every X number of events
(across all threads).
2. Change the calculation of the saved counter. Due to the change to the
saved counter in #1, we simply need to add (modulo the reload count) the
remaining counter time we retrieve from the CPU when a thread is context
switched out.
MFC r291016:
Support a wider history counter in pmcstat(8) gmon output
pmcstat(8) contains an option to output sampling data in a gmon format
compatible with gprof(1). Currently, it uses the default histcounter,
which is an (unsigned short). With large sets of sampling data, it
is possible to overflow the maximum value provided by an (unsigned
short).
This change adds the -e argument to pmcstat. If -e and -g are both
specified, pmcstat will use a histcounter type of uint64_t.
MFC r291017:
Fix the date on the pmcstat(8) man page from r291016.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294046
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
bdrewery [Thu, 14 Jan 2016 21:59:43 +0000 (21:59 +0000)]
MFC r293342:
Always try to upgrade to bmake if not already using it.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294045
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
bdrewery [Thu, 14 Jan 2016 21:58:32 +0000 (21:58 +0000)]
Fix improper use of MK_TESTS here from r264996.
In stable/10, the MK_TESTS=no form is not supported. This was preventing
the bmake bootstrap from working.
Sponsored by: EMC / Isilon Storage Division
git-svn-id: svn://svn.freebsd.org/base/stable/10@294044
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
bdrewery [Thu, 14 Jan 2016 21:53:06 +0000 (21:53 +0000)]
Fix SRCTOP assignment for fmake.
This corrects r292239 which incorrectly used a bmake feature for the fmake
logic.
Sponsored by: EMC / Isilon Storage Division
git-svn-id: svn://svn.freebsd.org/base/stable/10@294043
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
sbruno [Thu, 14 Jan 2016 20:04:44 +0000 (20:04 +0000)]
MFC r289238
Add support for sysctl knobs to live tune the per interrupt rx/tx packet
processing limits in ixgbe(4)
Submitted by: jason wolfe (j-nitrology.com)
Sponsored by: Limelight Networks
git-svn-id: svn://svn.freebsd.org/base/stable/10@294034
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jhb [Thu, 14 Jan 2016 19:47:52 +0000 (19:47 +0000)]
Now that futimens() and utimensat() have been merged, add decoding for
those system calls that was left out of the previous merge of r286381 in
r290052.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294033
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
sbruno [Thu, 14 Jan 2016 18:57:17 +0000 (18:57 +0000)]
MFC r292670
Add support for sysctl knobs to live tune the tx packet processing limits
in igb and fix a wrap-around bug.
Submitted by: Jason (j@nitrology.com)
Sponsored by: Limelight Networks
git-svn-id: svn://svn.freebsd.org/base/stable/10@294030
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
sbruno [Thu, 14 Jan 2016 17:44:45 +0000 (17:44 +0000)]
Fixup option handling after r293778 by wrapping MK_INET6_SUPPORT in a
KERNBUILDDIR check.
Sponsored by: Limelight Networks
git-svn-id: svn://svn.freebsd.org/base/stable/10@294025
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:30:37 +0000 (16:30 +0000)]
MFC r293819
sfxge: cleanup: fix return code types
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294019
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:29:33 +0000 (16:29 +0000)]
MFC r293818
sfxge: cleanup: fix typo in unused EFX_QWORD_IS_SET64
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294018
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:28:21 +0000 (16:28 +0000)]
MFC r293817
sfxge: cleanup: prefast fixes in common code
Submitted by: Andrew Lee <alee at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294017
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:27:43 +0000 (16:27 +0000)]
MFC r293814
sfxge: cleanup: simplify EFX header includes
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294016
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:26:42 +0000 (16:26 +0000)]
MFC r293813
sfxge: define FATSOv2 option descriptors
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294015
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:25:45 +0000 (16:25 +0000)]
MFC r293812
sfxge: add Medford firmware subtypes definitions
Pulled firmware_ids.h from firmwaresrc and applied genfwdef script.
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294014
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:25:10 +0000 (16:25 +0000)]
MFC r293811
sfxge: support MC_CMD_GET_CAPABILITIES_V2
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294013
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:24:18 +0000 (16:24 +0000)]
MFC r293810
sfxge: simplify conversion of NVRAM types to/from partition ids
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294012
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:21:58 +0000 (16:21 +0000)]
MFC r293809
sfxge: simplify MCDI request start
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294010
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:20:52 +0000 (16:20 +0000)]
MFC r293808
sfxge: note VI_SHIFT reported in ALLOC_VIS response
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294009
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:19:58 +0000 (16:19 +0000)]
MFC r293807
sfxge: rework RX prefix handling in the common code
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294008
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:19:01 +0000 (16:19 +0000)]
MFC r293806
sfxge: remove unused common code EFSYS_OPT_RX_HDR_SPLIT
The EFSYS_OPT_RX_HDR_SPLIT optional feature in the common code
implemented the Lookahead Split feature of Windows. This split
received packets at a preconfigured byte offset, and delivered
the header and payload portions to separate receive queues.
Now the common code interface has no callers, so remove it.
Note that this should not be confused with the Header Data Split
feature of Windows, which splits packets at a header boundary.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294007
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:18:04 +0000 (16:18 +0000)]
MFC r293805
sfxge: rename common hunt NIC methods to ef10
Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294006
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:15:19 +0000 (16:15 +0000)]
MFC r293774
sfxge: regenerate MCDI header
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294005
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:14:41 +0000 (16:14 +0000)]
MFC r293773
sfxge: remove obsolete lookahead split RXQ support
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294004
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:14:04 +0000 (16:14 +0000)]
MFC r293772
sfxge: pass context type and num_queues to efx_mcdi_rss_context_alloc
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294003
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:13:18 +0000 (16:13 +0000)]
MFC r293770
sfxge: cleanup: use consistent types for NVRAM partitions
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294002
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:12:14 +0000 (16:12 +0000)]
MFC r293769
sfxge: fix interrupt handling for Medford
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294001
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:10:57 +0000 (16:10 +0000)]
MFC r293768
sfxge: update NVRAM partition lookup for Medford
Prior to Medford, option ROM config was stored with one partition
per network port. Medford stores option ROM config in a single
partition (as an array of configurations, one per PF).
Update the EFXname /port to MCDI partition mapping for this.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@294000
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:10:01 +0000 (16:10 +0000)]
MFC r293767
sfxge: cleanup: improve consistency in efx_check.h
Make error messages consistent, and remove redundant checks.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293999
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:09:09 +0000 (16:09 +0000)]
MFC r293766
sfxge: remove obsolete efx_mac_hash_set() from common code
This API has been replaced by efx_mac_multicast_list_set()
and has no callers.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293998
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:08:32 +0000 (16:08 +0000)]
MFC r293765
sfxge: rework MCDI header version handling
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293997
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:07:29 +0000 (16:07 +0000)]
MFC r293764
sfxge: rename hunt filter methods, types etc. to ef10 and use for Medford
New filters types may be added, but the same machinery should be able to
handle them.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293996
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:06:51 +0000 (16:06 +0000)]
MFC r293763
sfxge: add definitions for compressed satellite images to common code headers
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293995
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:06:17 +0000 (16:06 +0000)]
MFC r293762
sfxge: add new MCDI sensors to common code
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293994
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:05:33 +0000 (16:05 +0000)]
MFC r293761
sfxge: remove unnecessary pulling out of soft bits from RX events
These bits are changed on Medford.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293993
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:04:50 +0000 (16:04 +0000)]
MFC r293758
sfxge: remove obsolete common code PKTFILTER module
The pktfilter module has been obsolete for some time, as
it was replaced by newer features in filter module. With
the removal of the storport driver, this module has no
users and can be removed.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293992
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:03:24 +0000 (16:03 +0000)]
MFC r293757
sfxge: rename hunt MCDI methods to ef10 and use for Medford
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293991
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:02:15 +0000 (16:02 +0000)]
MFC r293756
sfxge: rename hunt nvram methods and use for Medford
Some new partitions have been added, but they shouldn't need to be
handled any differently.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293990
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:01:32 +0000 (16:01 +0000)]
MFC r293755
sfxge: rename Huntington VPD methods to ef10 and use for Medford
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293989
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 16:00:35 +0000 (16:00 +0000)]
MFC r293754
sfxge: rename hunt RX methods to ef10 and use for Medford
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293988
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:59:08 +0000 (15:59 +0000)]
MFC r293753
sfxge: rename hunt TX methods to ef10 and use for Medford
Rename all except hunt_tx_qdesc_tso_create(), which creates a
fw-assisted TSO v1 descriptor which isn't supported on Medford.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293987
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:58:30 +0000 (15:58 +0000)]
MFC r293752
sfxge: rename hunt ev methods to ef10 and use for Medford
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293986
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:57:55 +0000 (15:57 +0000)]
MFC r293751
sfxge: rename hunt interrupt methods to ef10 and use on Medford
All of these apply to both Huntington and Medford.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293985
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:56:53 +0000 (15:56 +0000)]
MFC r293750
sfxge: update SRAM methods to be no-ops on Medford as well
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293984
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:55:54 +0000 (15:55 +0000)]
MFC r293749
sfxge: use NIC config in place of some Huntington specific PIO constants
This should allow these functions to work for Medford as well.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293983
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:55:15 +0000 (15:55 +0000)]
MFC r293748
sfxge: change hunt specific fields of efx_nic_t to ef10
All these fields will be used in shared ef10 code, so put them in an
ef10 member of a per-architecture union, rather that in the per-chip
union.
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293982
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:54:13 +0000 (15:54 +0000)]
MFC r293740
sfxge: update autogenerated monitors lists
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293981
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:52:44 +0000 (15:52 +0000)]
MFC r293734
sfxge: add medford_impl.h, medford_nic.c, ef10_impl.h
Creating some files together to do the build system changes in one go.
Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293980
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:50:13 +0000 (15:50 +0000)]
MFC r293733
sfxge: add Medford sensor support
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293978
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:49:15 +0000 (15:49 +0000)]
MFC r293732
sfxge: use MCDIv2 on Medford
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293976
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:48:10 +0000 (15:48 +0000)]
MFC r293731
sfxge: add Medford PCI IDs to common code
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293975
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:46:53 +0000 (15:46 +0000)]
MFC r293730
sfxge: add sanity checking for EFX_OPT_MEDFORD build option to efx_check.h
Submitted by: Mark Spender <mspender at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293974
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:45:47 +0000 (15:45 +0000)]
MFC r293658
sfxge: add Medford build option disabled by default
Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293973
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:44:07 +0000 (15:44 +0000)]
MFC r292090
sfxge: unify MCDI response polling
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: philip
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293972
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:42:37 +0000 (15:42 +0000)]
MFC r292088
sfxge: simplify MCDI methods
It is a part of MCDI rework to share more code among NIC families.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293971
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:41:03 +0000 (15:41 +0000)]
MFC r292086
sfxge: add tunable for maximum start attetmps after reset
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293970
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:33:50 +0000 (15:33 +0000)]
MFC r292055
sfxge: consolidate privilege check functions
To reduce code duplication in common code, consolidate similar privilege
check functions.
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293969
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:33:13 +0000 (15:33 +0000)]
MFC r292053
sfxge: cleanup: fix header
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293968
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:32:24 +0000 (15:32 +0000)]
MFC r292052
sfxge: simplify privilege checks with macro
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293967
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:30:46 +0000 (15:30 +0000)]
MFC r292010
sfxge: cleanup: removed unused variable
Submitted by: Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293966
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:29:40 +0000 (15:29 +0000)]
MFC r292009
sfxge: cleanup: fix (unused) EFX_OR_BYTE macro
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293965
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:28:46 +0000 (15:28 +0000)]
MFC r292008
sfxge: use MAC spoofing TX and MAC change privileges
Update of common code to provide a query on the MAC_SPOOFING_TX and
CHANGE_MAC privileges instead of the deprecated MAC_SPOOFING privilege.
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293964
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:27:49 +0000 (15:27 +0000)]
MFC r292051
sfxge: [6/6] support for MCDI proxy authorization in common code
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293963
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:26:58 +0000 (15:26 +0000)]
MFC r292050
sfxge: [5/6] rework event completion error handling
Required for MCDI proxy authorization support.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293962
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:26:06 +0000 (15:26 +0000)]
MFC r292007
sfxge: [4/6] rework MCDI response polling
Required for MCDI proxy authorization support.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293961
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:25:17 +0000 (15:25 +0000)]
MFC r291985
sfxge: [3/6] rework MCDI response handling
Required for MCDI proxy authorization support.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293960
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:24:15 +0000 (15:24 +0000)]
MFC r291928
sfxge: [2/6] rework MCDI response polling
Required to support MCDI proxy authorization.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293959
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:23:23 +0000 (15:23 +0000)]
MFC r291927
sfxge: [1/6] add common code MCDI proxy auth build option
Submitted by: Andy Moreton <amoreton at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293958
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:22:31 +0000 (15:22 +0000)]
MFC r291926
sfxge: fix pointer parameter/value signedness mismatch warnings
TLV routines use 'uint8_t *', NVRAM code uses caddr_t. Just cast to
required type to fix the warning.
Required to build with -Werror=pointer-signg.
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293957
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:21:51 +0000 (15:21 +0000)]
MFC r291925
sfxge: fix name conflict with crc32_table from sys/crc32.h
The header is not present on FreeBSD, but exists on OmniOS where sfxge
common code is used as well.
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293956
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:16:24 +0000 (15:16 +0000)]
MFC r291924
sfxge: switch to TxQ creation specific flags
It is better do not mix TxQ creation and receive event flags since only
checksum flags are applicable to TxQ.
Also it will allow to add a new TxQ creation specific flags.
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293955
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
arybchik [Thu, 14 Jan 2016 15:15:01 +0000 (15:15 +0000)]
MFC r291923
sfxge: [Sorrento] support writing of MUM firmware
When writing the MUM firmware the chunk size must be equal to the erase
size.
Submitted by: Laurence Evans <levans at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
git-svn-id: svn://svn.freebsd.org/base/stable/10@293954
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f