199094 Commits

Author SHA1 Message Date
whu
a27bc4386d Fix a i386 build failure cause by commit r283280. 2015-05-22 11:20:59 +00:00
whu
30cd3b9808 MFC r282212:
Microsoft vmbus, storage and other related driver enhancements for HyperV.
    - Vmbus multi channel support.
    - Vector interrupt support.
    - Signal optimization.
    - Storvsc driver performance improvement.
    - Scatter and gather support for storvsc driver.
    - Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.

PR:     195238
Submitted by:   whu
Reviewed by:    royger
Approved by:    royger
Relnotes:       yes
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D2575
2015-05-22 09:03:55 +00:00
kib
b453b29575 MFC r282944:
Decrement p_boundary_count in the single-threading thread, during making
other thread runnable.  This guarantees that upon return from the
thread_single_end(), p_boundary_count is zero.
2015-05-22 08:11:31 +00:00
delphij
05c61f3a94 MFC r282613: MFV r282611: netcat from OpenBSD 5.7. 2015-05-21 21:45:37 +00:00
pfg
a7546825c6 MFC r282863:
Adjust visibility macros.

The GCC visibility attributes were introduced in GCC 4.0.
Apparently the "protected" attribute was introduced only
until GCC 4.2, but we are not currently using it.
2015-05-21 20:39:39 +00:00
emaste
60bdd635db MFC r258431: Disable amd64 boot time memory test by default
The page presence memory test takes a long time on large memory systems
  and has little value on contemporary amd64 hardware.

Relnotes:	Yes
Reviewed by:	jhb, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D1544
2015-05-21 19:40:31 +00:00
emaste
a071e4290a MFC r282144: crunchide: add basic string table sanity checks
Reported by:	Coverity Scan
CID:		978805, 980919
Sponsored by:	The FreeBSD Foundation
2015-05-21 19:16:28 +00:00
delphij
51f0c42396 MFC r282932: MFV r282927,r282928,r282930 (kientzle):
Don't segfault when reading malformed cpio archives.
2015-05-21 19:05:47 +00:00
delphij
f14ca7e990 MFC r282608:
date(1): Make -r behave like GNU's version when the option can not be
interpreted as a number, which checks the file's modification time and
use that as the date/time value.

This improves compatibility with GNU coreutils's version of date(1).
2015-05-21 18:59:11 +00:00
bdrewery
6ce5eda96c MFC r282574:
Remove references to Giant in namei(9).  This was removed in r241896.
2015-05-21 16:44:31 +00:00
trasz
df07ae934b MFC r279955:
Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:42:37 +00:00
trasz
792cf9363b MFC r279954:
Get executable direct maps to work.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:41:08 +00:00
trasz
766efdb26c MFC r279953:
Rework the concat() algorithm to be correct in all cases.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:39:38 +00:00
trasz
936900ca6b MFC r279916:
Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:37:48 +00:00
trasz
ffdd97ce45 MFC r279915:
Make concat() accept NULL arguments.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:36:00 +00:00
trasz
5d932fec11 MFC r279914:
Options from auto_master must be appended to options from maps,
not prepended.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:34:33 +00:00
trasz
decca16d96 MFC r279851:
Fix typo.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:33:06 +00:00
trasz
bb27657bec MFC r279846:
Properly pass options for direct maps.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:31:44 +00:00
emaste
0895f35cb3 MFC r276774: ar: Avoid null pointer deref while reading corrupt archives
ELF Tool Chain ticket #467

Reported by:	Alexander Cherepanov <cherepan@mccme.ru>
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:30:10 +00:00
trasz
9a9f3ecf67 MFC r279845:
Fix handling of direct maps, broken in r275756.  Previously, running
automount(8) would unmount direct map trigger nodes every second time.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:29:34 +00:00
trasz
b8ffded4a6 MFC r279843:
Refactor.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:26:52 +00:00
trasz
938b0cc7dd MFC r279813:
Make things more readable; no functional changes.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:25:28 +00:00
trasz
c0941dd28e MFC r279812:
Remove some particularly bad code; no functional changes.

MFC r279815:

Erm, revert chunk committed by mistake.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:23:49 +00:00
trasz
f55d10feb9 MFC r279808:
Fix memory leak.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:21:03 +00:00
trasz
609485e24d MFC r279807:
Improve separated_concat() to properly handle the case of concatenating
"/" and "/foo".
2015-05-21 13:19:44 +00:00
trasz
eca8c46c2b MFC r279806:
Minor optimization/cleanup in node_path(); no functional changes.
2015-05-21 13:18:02 +00:00
trasz
a151e5d0a4 MFC r277171:
Use newly added GEOM notifications to discard autofs caches.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:13:56 +00:00
trasz
9cd1663f49 MFC r276883:
Improve documentation for autofs variables and executable maps;
also some markup fixes.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:11:48 +00:00
trasz
b5e1972553 MFC r276833:
Make /net use -intr by default.  Linux does that, and it seems a good idea.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:10:08 +00:00
trasz
94c4b3025c MFC r275681:
Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys.  It can be enabled by uncommenting a single entry
in default /etc/auto_master.  It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.

There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media.  Fixing it needs some
autofs changes.

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:08:30 +00:00
royger
67f688612f MFC: r282269, r282277
atkbd: remove usage of x86bios
Remove leftover from r282269.
2015-05-21 10:40:18 +00:00
royger
227f0f0c83 MFC: r282908
netfront: wait for backend to connect before sending ARP

Sponsored by: Citrix Systems R&D
2015-05-21 10:28:33 +00:00
arybchik
66c1c10ecb MFC: r283051
sfxge: do not advertise LRO capability if LRO is compiled out

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:24:35 +00:00
arybchik
6caf0aa6e9 MFC: r283050
sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:23:28 +00:00
arybchik
f9a30c61a6 MFC: r283049
sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:22:15 +00:00
arybchik
446dd8d194 MFC: r283048
sfxge: fix overflow queue freeze

If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.

Without the patch freeze happens if:
 - queue is not blocked (i.e. completion does not trigger unblock and service)
 - put-list overflow (1024 entries)
 - sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
   sfxge_tx_qdpl_service() on the second CPU but before pending check
 - sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
   non-tcp get-list overflow and returns without packet list service
 - sfxge_tx_qdpl_service() on the second CPU checks that there are no
   pending packets in the put-list and returns

Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:21:05 +00:00
arybchik
db9589182b MFC: r283007
sfxge: avoid usage of ifm_data

The driver uses ifm_data to save capabilities mask calculated during
initialization when supported phy modes are discovered.
The patch simply calculates it when either media or options are changed.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:15:19 +00:00
arybchik
41bc1c612c MFC: r283000
sfxge: add local variable with changed capabilities mask

It is required for the next patch which adds dependency of TSO
capabilities from Tx checksum offloads.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:13:47 +00:00
arybchik
700f83961e MFC: r282998
sfxge: move mbuf free to sfxge_if_transmit()

It is a preparation to the next patch which will service packet queue
even if packet addtion fails.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:12:25 +00:00
arybchik
a53d333e88 MFC: r282997
sfxge: get rid of locked variable in sfxge_tx_packet_add()

Now each branch has one and only one possible TxQ lock state.
It simplifies understanding of the code.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:11:03 +00:00
arybchik
d7d6b9f862 MFC: r282996
sfxge: support Rx checksum offloads disabling

We can't disable it in HW, but we can ignore result.
Discard Rx descriptor checksum flags if Rx checksum offload is off.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:09:51 +00:00
arybchik
8b552766ba MFC: r282942
sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked()

It simplifies understanding of the sfxge_tx_packet_add() logic and
avoids passing of 'locked' to called function.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:08:10 +00:00
arybchik
8074c227f2 MFC: r282941
sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed

It is simply not required since the kernel checks corresponding
IFCAP_TSOx capability and CSUM_TSO in hw-assisted offloads.
Note that CSUM_TSO is two bits (CSUM_IP_TSO|CSUM_IP6_TSO) and both bits
are set in IPv4 and IPv6 mbufs.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:06:41 +00:00
arybchik
037a819653 MFC: r282940
sfxge: LRO may be done only if checksums are OK

Also it is cheaper to check Rx descriptor flags than TCP protocol in IP
header.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:05:13 +00:00
arybchik
24b8928a5d MFC: r282903
sfxge: advertise IPv6 Rx and Tx checksum offload support

Tx checksum offload may be enabled/disabled.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:03:18 +00:00
arybchik
75239f9f5d MFC: r282900
sfxge: IPv4 Tx checksum offload may be disabled in fact

Split IFCAP_HWCSUM to IFCAP_RXCSUM and IFCAP_TXCSUM to highlight Tx and Rx.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:00:45 +00:00
arybchik
043fbbc3bc MFC: r282899
sfxge: add local variable with Rx descriptor flags

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 08:59:03 +00:00
arybchik
ec420a0fba MFC: r282897
sfxge: add missing const qualifier to sfxge_link_mode

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 08:55:06 +00:00
ae
511909eef4 MFC r282594:
m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.
2015-05-21 08:28:35 +00:00
hselasky
0c5326891a MFC r282505:
Add new USB ID.

PR:		199843
2015-05-21 07:49:44 +00:00