Commit Graph

200819 Commits

Author SHA1 Message Date
ngie
e7a647fe8f MFC r291983,r291984:
r291983:

Fix compilation warnings by adding unistd.h #include and missing return
statements

Sponsored by: EMC / Isilon Storage Division

r291984:

Add missing stdlib.h header

Apply some minor style(9) fixes

Sponsored by: EMC / Isilon Storage Division
2015-12-13 03:45:57 +00:00
ngie
e640864a77 MFC r292004:
Fix compilation when -DDEBUG is defined by adding inttypes.h #include
for intmax_t

Differential Revision: https://reviews.freebsd.org/D4434
Reported by: cppcheck
Reviewed by: jhb
Sponsored by: EMC / Isilon Storage Division
2015-12-13 03:40:43 +00:00
ngie
4cb2700406 MFC r291979:
Unbreak compiling getnetgrent.c with -DDEBUG after r236402 by adding a
missing "}"

Sponsored by: EMC / Isilon Storage Division
2015-12-13 03:37:29 +00:00
ngie
e8eb34fc05 MFC r291753:
Fix scope of bridge_header and bridge_pcix_cap in mthca_reset(..)

They're only used in the __linux__ case

Differential Revision: https://reviews.freebsd.org/D4332
Reported by: cppcheck
Reviewed by: hselasky
Sponsored by: EMC / Isilon Storage Division
2015-12-13 03:32:41 +00:00
hselasky
34da0a9b58 Enable the mlx4en TSO limits.
This is a direct commit to stable/10.

Sponsored by:	Mellanox Technologies
2015-12-11 15:35:47 +00:00
hselasky
537e74690a MFC r290710, r291694, r291699 and r291793:
- Fix print formatting compile warnings for Sparc64 and PowerPC platforms.
- Updated the mlx4 and mlxen drivers to the latest version, v2.1.6:
  - Added support for dumping the SFP EEPROM content to dmesg.
  - Fixed handling of network interface capability IOCTLs.
  - Fixed race when loading and unloading the mlxen driver by applying
    appropriate locking.
  - Removed two unused C-files.
- Convert the mlxen driver to use the BUSDMA(9) APIs instead of
  vtophys() when loading mbufs for transmission and reception. While at
  it all pointer arithmetic and cast qualifier issues were fixed, mostly
  related to transmission and reception.
- Fix i386 build WITH_OFED=YES. Remove some redundant KASSERTs.

Sponsored by:	Mellanox Technologies
Differential Revision:	https://reviews.freebsd.org/D4283
Differential Revision:	https://reviews.freebsd.org/D4284
2015-12-11 14:21:58 +00:00
hselasky
c599633225 MFC r291693:
Add some structures and defines which will be used when decoding small
form factor, SFF, standards compliant ethernet EEPROMs.

Obtained from:	Linux
Sponsored by:	Mellanox Technologies
2015-12-11 13:30:49 +00:00
kib
8fd2c598fd MFC r291408:
In vm_pageout_grow_cache(), do not re-try the inactive queue when
active queue scan initiated write, to avoid infinite loop.
2015-12-11 13:20:51 +00:00
hselasky
d7a35aff81 MFC r291690:
Remove incorrect defines. The proper version of these macros is
defined in linux/etherdevice.h.

Sponsored by:	Mellanox Technologies
2015-12-11 13:19:33 +00:00
smh
4a047a2bc5 MFC r289231: Fix used function warnings in ixl(4)
Sponsored by:	Multiplay
2015-12-11 13:15:22 +00:00
smh
cb8a95b340 MFC r285768: LAA MAC/VLAN filter + success check
Sponsored by:	Multiplay
2015-12-11 13:12:52 +00:00
smh
f530e62d3d MFC r284049: Update SW4 to the Intel ixl/ixlv
Sponsored by:	Multiplay
2015-12-11 13:08:38 +00:00
smh
f34c49d658 MFC r283119: Remove executable property from ixl
Sponsored by:	Multiplay
2015-12-11 13:05:18 +00:00
smh
d861e2f5f0 MFC r280043: Remove redundant sysctl_handle_string
Sponsored by:	Multiplay
2015-12-11 12:58:19 +00:00
smh
91687b8e7b MFC r279858 & r279860: SRIOV & 20G support
Sponsored by:	Multiplay
2015-12-11 12:47:49 +00:00
smh
646e161320 MFC r279232: Add native netmap support to ixl
Sponsored by:	Multiplay
2015-12-11 12:24:11 +00:00
smh
da4345172e MFC r279033: Bring the XL710 drivers up to the SW3
Sponsored by:	Multiplay
2015-12-11 12:20:58 +00:00
smh
a48fba825c MFC r277084,r277088,r277130,r277143,r277151,r277262
r277084: Intel I40E updates ixl v1.3.0 and ixlv 1.2.0 featuring RSS
r277088, r277130, r277143, r277151 & r277262: Misc RSS fixes

The main change is the addition of RSS, which is not supported in stable/10,
however these commits also include other bug fixes. In order to bring those
fixes in and facilitate easier merge of future updates the RSS changes are
maintained but left disabled by the removal of the opt_rss.h include.

Sponsored by:	Multiplay
2015-12-11 12:16:05 +00:00
arybchik
3577b6d5dd sfxge: implement interface statistics shown by netstat
PR:             202907
Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Reviewed by:    gnn, philip
Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D4317
2015-12-11 06:41:01 +00:00
sjg
65747233a8 Merge bmake-20151201 2015-12-10 23:44:34 +00:00
ngie
3bc7f4d78d MFC r291919:
Enable bin/ls testcases disabled previously because of issues with how
kyua 0.11's version of report-junit was rendering non-printable characters

Upgrade to kyua 0.12 to obtain a fixed version of the command

Output verified with python 2.7.10's xml.dom.minidom module

Sponsored by: EMC / Isilon Storage Division
2015-12-10 07:11:46 +00:00
bapt
cebf099541 MFC: r291658
pw_checkname since the beginning is too strict on GECOS field,
relax it a bit so gecos can be used to store multibytes data.

This was unseen before FreeBSD 10.2 as this validation function was motly unused
since FreeBSD 10.2 the usage of this function has been generalized to improve

Reported by:	des
2015-12-09 21:38:26 +00:00
bapt
79deb7823d MFC: r291657
Fix handling of numeric-only names with pw lock
Add a regression test about it

PR:		204968
2015-12-09 21:34:03 +00:00
ae
58974a9f1d MFC r291579:
In the same way fix the problem described in r291578 for IGMPv3.

  In case when router has a lot of multicast groups, the reply can take
  several packets due to MTU limitation.
  Also we have a limit IGMP_MAX_RESPONSE_BURST == 4, that limits the number
  of packets we send in one shot. Then we recalculate the timer value and
  schedule the remaining packets for sending.
  The problem is that when we call igmp_v3_dispatch_general_query() to send
  remaining packets, we queue new reply in the same mbuf queue. And when
  number of packets is bigger than IGMP_MAX_RESPONSE_BURST, we get endless
  reply of IGMPv3 reports.
  To fix this, add the check for remaining packets in the queue.
2015-12-08 07:43:12 +00:00
ae
0f5a92c989 Fix typo in r291986.
(this is derect commit to stable/10)
2015-12-08 07:31:26 +00:00
ae
44a32abb98 MFC r291578:
mld_v2_dispatch_general_query() is used by mld_fasttimo_vnet() to send
  a reply to the MLDv2 General Query. In case when router has a lot of
  multicast groups, the reply can take several packets due to MTU limitation.
  Also we have a limit MLD_MAX_RESPONSE_BURST == 4, that limits the number
  of packets we send in one shot. Then we recalculate the timer value and
  schedule the remaining packets for sending.
  The problem is that when we call mld_v2_dispatch_general_query() to send
  remaining packets, we queue new reply in the same mbuf queue. And when
  number of packets is bigger than MLD_MAX_RESPONSE_BURST, we get endless
  reply of MLDv2 reports.
  To fix this, add the check for remaining packets in the queue.

  PR:		204831
2015-12-08 07:26:16 +00:00
bdrewery
4d3c809df9 MFC r291605:
Fix errors being ignored in many phases of the build since the bmake
  integration.
2015-12-08 00:27:35 +00:00
bdrewery
53dd77f04a MFC r291226:
Fix ld not respecting --sysroot.

Relnotes:	yes
2015-12-08 00:24:41 +00:00
gjb
707a6b4b04 Document SA-15:26
Sponsored by:	The FreeBSD Foundation
2015-12-07 19:19:51 +00:00
kib
b290ccba92 MFC r290920:
Raise OOM when pagedaemon is unable to produce a free page in several
back-to-back passes.
2015-12-07 11:21:49 +00:00
kib
91f228157c MFC r290917:
Provide the OOM-specific vm_pageout_oom_pagecount() function which
estimates the amount of reclamaible memory which could be stolen if
the process is killed.
2015-12-07 11:14:57 +00:00
kib
208e7b92ca MFC r290915:
Do not skip a process which has inhibited thread due to the swap-out,
in the OOM selection loop.
2015-12-07 11:12:03 +00:00
kib
7925a0bf47 MFC r291446:
Minor cleanup.

Systematically use ANSI C functions definitions.
Correct type of the flags argument to the dev_pager_putpages() function.

vm_pager_free_nonreq() does not exist in stable/10, this part is not
merged.
2015-12-06 17:11:23 +00:00
ngie
40d2008f0c MFC r289452,r289469:
r289452 (by trasz):

Add iscsictl(8) and iscsid(8) to rescue(8).  The point is to make it
easier to build md_root images from rescue(8), to use with iSCSI boot.

The change increases the size of rescue by 62kB, from 8728kB to 8790kB.

Reviewed by:	bapt@
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D3865

r289469:

Make iscsictl and iscsid build if MK_ISCSI == yes
2015-12-05 22:51:20 +00:00
ngie
7fb13df4f3 MFC r290908,r291615:
r290908:

Integrate contrib/netbsd-tests/lib/libcrypt/t_crypt.c in to the FreeBSD
test suite as lib/libcrypt/crypt_test

Sponsored by: EMC / Isilon Storage Division

r291615 (by rodrigc):

Hack test so that it works on FreeBSD.
2015-12-05 22:44:07 +00:00
ngie
6ee9037674 MFC r291296:
Link localeconv(3) to localeconv_l(3)
2015-12-05 21:58:21 +00:00
ngie
5e0ed4fa0a MFC r283801,r290846,r290851,r290856,r290860:
r283801 (by araujo):

Fix warning of implicit declaration of function 'mkdir'.

Differential Revision:	D2662
Reviewed by:		rodrigc, ngie

r290846:

Bump WARNS to 2

Sponsored by: EMC / Isilon Storage Division

r290851:

Change WARNS to 2 across the board with all the libc testcases

This effectively "reverts" r290846

Sponsored by: EMC / Isilon Storage Division

r290856 (by bapt):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

r290860 (by bapt):

Remove unused variables to fix building world
2015-12-05 21:49:35 +00:00
rmacklem
11ddbfbc5c MFC: r291150
When the nfsd threads are terminated, the NFSv4 server state
(opens, locks, etc) is retained, which I believe is correct behaviour.
However, for NFSv4.1, the server also retained a reference to the xprt
(RPC transport socket structure) for the backchannel. This caused
svcpool_destroy() to not call SVC_DESTROY() for the xprt and allowed
a socket upcall to occur after the mutexes in the svcpool were destroyed,
causing a crash.
This patch fixes the code so that the backchannel xprt structure is
dereferenced just before svcpool_destroy() is called, so the code
does do an SVC_DESTROY() on the xprt, which shuts down the socket upcall.
2015-12-05 21:38:53 +00:00
rmacklem
8e2b2c5eb5 MFC: r291117
Revert r283330 since it broke directory caching in the client.
At this time I cannot see a way to fix directory caching when it
has partial blocks in the buffer cache, due to the fact that the
syscall's uio_offset won't stay the same as the lblkno * NFS_DIRBLKSIZ
offset.
2015-12-05 21:28:54 +00:00
bdrewery
9593f9eb7d Add dependency for c++filt on libiberty.
This is a direct commit since c++filt does not exist in head.

This ws racing after my SUBDIR_PARALLEL changes here recently.

Reported by:	peter
Sponsored by:	EMC / Isilon Storage Division
2015-12-05 20:25:15 +00:00
kevlo
c569628c17 MFC r291238:
Add dependency to uether.

Reviewed by:	hselasky
2015-12-05 07:46:37 +00:00
ngie
8e15d8dff3 Remove stale tools/regression directory that should have been deleted
in r291840

Sponsored by: EMC / Isilon Storage Division
2015-12-05 04:19:40 +00:00
ngie
fde15bf9a6 MFC r290537,r290540,r290560,r290856,r290871,r291839:
r290537:

Integrate tools/regression/lib/libc/stdio into the FreeBSD test suite
as lib/libc/tests/stdio

- Fix some whitespace
- Convert the testcases to ATF
- Convert "/dev/null" to _PATH_DEVNULL

Sponsored by: EMC / Isilon Storage Division

r290540:

printfloat_test and scanfloat_test need symbols from msun; these are automatically
provided on amd64, but not i386. Add libm to DPADD/LDADD to unbreak the i386
tinderbox

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

r290560:

Convert print_positional_test over to ATF

Somehow missed in r290537

Sponsored by: EMC / Isilon Storage Division

r290856 (by bapt):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

r290871:

Disable -Wformat with scanfloat_test when compiling with gcc to avoid a
"use of assignment suppression and length modifier together in scanf format"
warning on line 90 (it's intentional)

Sponsored by: EMC / Isilon Storage Division

r291839:

Initialize errno to 0 in the nul testcase before testing it

For some odd reason stable/10 requires this, otherwise it always fails
the errno == 0 check on line 196.

Sponsored by: EMC / Isilon Storage Division
2015-12-05 04:17:40 +00:00
bdrewery
233987c6df Fix mis-merge in r291816, nl_defs.h not used here. 2015-12-04 21:11:17 +00:00
bapt
6dbd460022 MFC: r291091
install: do not follow symlinks

In case the target of install is a dead symlink, install(1) used to not
consider it as "existing" because of the usage of stat(2) instead of
lstat(2).  meaning the old file (the symlink) is not removed before the new
file is created. The symlink is being followed and the new file becoming the
target of the symlink instead of the target of install(1)

Reviewed by:	jhb, brooks
Differential Revision:	https://reviews.freebsd.org/D4191
2015-12-04 20:41:44 +00:00
bdrewery
8e2550bfa6 MFC r291348:
Use LIBEXECDIR for /usr/libexec.
2015-12-04 19:16:56 +00:00
bdrewery
afa8b531c2 MFC r291339:
Follow-up r291330: h_testbits.h is only needed by xdr_test.
2015-12-04 19:15:36 +00:00
bdrewery
e7ee6ceff2 MFC r291331:
Avoid requiring 'make depend' here.
2015-12-04 19:14:14 +00:00
bdrewery
c941b9a56b MFC r291330:
Replace DPSRCS that work fine in SRCS.
2015-12-04 19:04:04 +00:00
bdrewery
563146937c MFC r284289,r288267:
r284289:
    Misc fixes from projects/bmake
  r288267:
    Remove redundant .NOPATH.
2015-12-04 18:59:20 +00:00