Compare commits

...
25 Commits
Author SHA1 Message Date
Hiroki Sato 0724db41d6 - Fix revision numbers to ones in RELENG_8*.
- Document posix_fadvise(2)[*]
- xz 5.0.1.

Spotted by:	jhb [*]
Approved by:	re (implicit)
2012-04-09 04:44:39 +00:00
Ken Smith 915811868a Ready for 8.3-RELEASE builds to start.
Approved by:	re (implicit)
2012-04-08 05:09:40 +00:00
Ken Smith 56be5e070a MFS r234020:
> Guess at when we will be able to announce 8.3-RELEASE.

Approved by:	re (implicit)
2012-04-08 05:07:40 +00:00
Ken Smith 1207cdbf60 MFS r233658:
Update with the package set that will ship with 8.3-RELEASE.

Reviewed by:	portmgr, re
Approved by:	re (bz)
2012-04-06 17:49:11 +00:00
Marius Strobl 58edae4b7e MFC: r233827 (backported)
Fix probing of SAS1068E with a device ID of 0x0059 after r232411 (MFC'ed
to releng/8.3 in r232632).
Reported by: infofarmer

This is a minimal direct commit to releng/8.3 in order to restore pre-r232632
behavior for the above devices.

Approved by:	re (kensmith)
2012-04-06 17:21:31 +00:00
Ken Smith 1779af0ee0 MFS r233211 (problem not believed to effect head or stable/9):
Implement a workaround for a bug in the linker's estimate for the
program header size that can cause it to fail linking the kernel.

Reviewed by: kib

Approved by:	re (bz)
2012-03-23 15:49:46 +00:00
Michael Tuexen 3c7d831235 MFC r233004:
Fix bugs which can result in a panic when an non-SCTP socket it
used with an sctp_ system-call which expects an SCTP socket.

Approved by: re@
2012-03-21 08:08:23 +00:00
Ken Smith 3bab4475b4 Ready for 8.3-RC2 builds.
Approved by:	re (implicit)
2012-03-19 13:51:38 +00:00
Ken Smith cf8b2948f1 MFS (files not present in head) r233180:
>  Bump the version of perl used as part of the release build from 5.10
>  to 5.12.

Insta-MFS done so we can start 8.3-RC2 builds.

Approved by:	re (implicit)
2012-03-19 13:48:05 +00:00
Hiroki Sato 322ce7360f Trim old news items.
Approved by:	re (implicit)
2012-03-18 12:07:00 +00:00
Hiroki Sato baf8e819fe Add relnote items for 8.3R (revision numbers are fixed yet):
SA-11:01 to SA-11:10,
	dtrace systrace_linux32 on amd64 support,
	hhook(9) and khelp(9~ added,
	hw.mwmtest.tests loader tunable,
	O_CLOEXEC for open(2) and fhopen(2) added,
	posix_fallocate(2) added,
	usbdump(8) added,
	cxgbe(4) 7.11.0 added,
	dc(4) PAE support,
	em(4) 7.3.2,
	igb(4) 2.3.1,
	igb(4) I350 support,
	ixgbe(4) 2.4.5,
	iwn(4) firmware image updated,
	msk(4) RXCSUM fixed,
	nge(4) MTU handling fixed,
	rdcphy(4) added,
	re(4) RTL8168E/8111E-VL and RTL8401E support added,
	re(4) TX interrupt moderation on RTL810xE added,
	re(4) RX interrupt moderation performance improvement,
	re(4) TSO support on RTL8168/8111 added,
	re(4) TXCSUM/RXCSUM offloading can be enabled independently now,
	re(4) RTL8105E support added,
	vte(4) added,
	ipfw(8) call and return actions added,
	IPsec HMAC-SHA-{256,384,512} in RFC 4868 supported,
	IPV6_PKTINFO bug in sendmsg(2) fixed,
	mod_cc(9) pluggable congestion control framework added,
	h_ertt(4) khelp module added,
	TCP_CONGESTION sockopt added,
	nf_ipfw(4) now supports IPv6,
	ng_one2many(4) XMIT_FAILOVER algorithm support added,
	ada(4) kern.cam.ada.write_cache,
	arcmsr(4) 1.20.00.22,
	graid(8) added,
	mxge(4) updated,
	tws(4) added,
	FFS TRIM support added,
	NFS nocto mount option added,
	vfs.typenumhash loader tunable added,
	ZFS SPA version 28,
	bsdtar 2.8.5,
	cpuset(1) -C,
	fetch(1) STAT FTP command bug fixed,
	gpart(8) show -p added,
	hastd(8) drops root privilege,
	hastd(8) checksum keyword support added,
	hastd(8) compression keyword support added,
	readline(3) API imported to libedit,
	makefs(8) ISO 9660 format support,
	libmd/libcrypt SHA-{256,512} support added,
	netstat(1) not expose scope addr representation derived from KAME stack,
	newsyslog(8) xz compression support,
	poweroff(8) added,
	ppp(8) iface name xxx and iface description xxx subcommands added,
	ps(1) -o usertime and -o systime,
	rtadvd(8) noifprefix, RFC 6106 support, rtadvctl(8) added,
	tftpd(8) large file bugfix,
	zpool labelclear subcommand added,
	awk 2011/8/7 snapshot,
	BIND 9.6-ESV-R5-P1,
	netcat 4.9,
	GCC r127959, the last GPLv2-licensed version,
	less v444,
	OpenSSH 5.4p1+HPN,
	sendmail 8.14.5,
	tzdata2011n,
	unifdef 2.5.6,
	xz 2011/7/11 snapshot, and
	x11/kde4 4.7.4.

Approved by:	re (implicit)
2012-03-18 12:03:06 +00:00
Kenneth D. Merry d5e70f8166 Merge r232675 from head, via r232989 in stable/8:
Make the mps(4) module depend on the cam module.

  Submitted by:	Mykola Dzham <[email protected]>

Approved by:	re (kib)
2012-03-15 15:43:15 +00:00
Marius Strobl f57b9fbbd3 MFC: r232822
Fix a bug introduced in r223938 (MFC'ed to stable/8 in r224411); on
big-endian machines coping a 32-bit quantum bytewise to the address of
a 64-bit variable results in writing to the "wrong" 32-bit half so adjust
the address accordingly. This fix is implemented in a hackish way for
two reasons:
o in order to be able to get it into 8.3 with zero impact on the little-
  endian architectures where this bug has no effect and
o to avoid blowing the x86 boot2 out of the water again when compiling
  it with clang, which all sane versions of this fix tested do.
This change fixes booting from UFS1 file systems on big-endian machines.

Approved by:	re (kib)
2012-03-14 13:08:16 +00:00
Michael Tuexen 16dc3d4688 MFC r232723, r232726:
Fix a bug reported by Peter Holm which results in a crash:
Verify in sctp_peeloff() that the socket is a one-to-many
style SCTP socket.

Approved by: re@
2012-03-13 16:42:39 +00:00
Xin LI 68ecc48e43 MFS r232550:
Backout r223115 and restore the historic behavior (create the
default base directory in pw.conf).

Approved by:	re (kib)
2012-03-08 18:01:07 +00:00
Hiroki Sato 3fa952eeea Trim old entries and update version numbers.
Approved by:	re (implicit)
2012-03-07 20:55:23 +00:00
Hiroki Sato db8848df2a MFS r232560:
Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts().  This fixes
inconsistency when options are specified by both setsockopt() and ancillary
data types.

PR:		kern/158307
Approved by:	re (kib)
2012-03-07 01:30:42 +00:00
Kenneth D. Merry af1793377c Merge r232563 from stable/8 (r232411 from head):
Fix a problem that was causing the mpt(4) driver to attach to MegaRAID
  cards that should be handled by the mfi(4) driver.

  The root of the problem is that the mpt(4) driver was masking off the
  bottom bit of the PCI device ID when deciding which cards to attach to.

  It appears that a number of the mpt(4) Fibre Channel cards had a LAN
  variant whose PCI device ID was just one bit off from the FC card's device
  ID.  The FC cards were even and the LAN cards were odd.

  The problem was that this pattern wasn't carried over on the SAS and
  parallel SCSI mpt(4) cards.  Luckily the SAS and parallel SCSI PCI device
  IDs were either even numbers, or they would get masked to a supported
  adjacent PCI device ID, and everything worked well.

  Now LSI is using some of the odd-numbered PCI device IDs between the 3Gb
  SAS device IDs for their new MegaRAID cards.  This is causing the mpt(4)
  driver to attach to the RAID cards instead of the mfi(4) driver.

  The solution is to stop masking off the bottom bit of the device ID, and
  explicitly list the PCI device IDs of all supported cards.

  This change should be a no-op for mpt(4) hardware.  The only intended
  functional change is that for the 929X, the is_fc variable gets set.  It
  wasn't being set previously, but needs to be because the 929X is a Fibre
  Channel card.

  Reported by:	Kashyap Desai <[email protected]>

Approved by:	re (jpaetzel)
2012-03-07 00:16:32 +00:00
Jim Harris 93d8e2065b Merge r232554 from stable/8 (r232225 from head):
Include missing device IDs for isci(4) driver.

The C600 chipset will surface one of device IDs 0x1D6C-0x1D6F for the
integrated SAS controller on systems that are shipped with a 3rd party
(i.e. non-Intel) device driver.

These changes add the 0x1D6C-0x1D6F device IDs, as well as change isci_probe()
to return a value that would allow a 3rd-party FreeBSD driver to load
against this device, should such a driver ever come to fruition.

Approved by: re (kib), sbruno
2012-03-05 18:20:31 +00:00
Gleb Smirnoff 81bca8e615 Merge r232556 from stable/8 (r231761 from head):
In ng_bypass() add more protection against potential race
  with ng_rmnode() and its followers.

Approved by:	re (kib)
2012-03-05 18:15:54 +00:00
Ken Smith 4f9a944ab4 We should be ready for 8.3-RC1.
Approved by:	re (implicit)
2012-03-03 07:10:38 +00:00
Ken Smith fe509611f1 Update __FreeBSD_version to 803000 to reflect releng/8.3 has been branched.
Approved by:	re (implicit)
2012-03-03 07:09:05 +00:00
Ken Smith 9ed0bc0f7a Update the CVS branch tag.
Approved by:	re (implicit)
2012-03-03 07:06:05 +00:00
Ken Smith 12f30ff0c3 Update RELEASETAG and SVNBRANCH.
Approved by:	re (implicit)
2012-03-03 07:04:45 +00:00
Ken Smith 8d8fe5d5b4 Update to have "make update" pull from RELENG_8_3.
Approved by:	re (implicit)
2012-03-03 07:02:43 +00:00
22 changed files with 579 additions and 1044 deletions

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ CLEANDIR= cleandir
.endif
CVS?= cvs
CVSFLAGS?= -r RELENG_8 -P -d -I!
CVSFLAGS?= -r RELENG_8_3 -P -d -I!
SVN?= svn
SVNFLAGS?= -r HEAD
SUP?= /usr/bin/csup
+3
View File
@@ -15,6 +15,9 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8.x IS SLOW ON IA64 OR SUN4V:
debugging tools present in HEAD were left in place because
sun4v support still needs work to become production ready.
20120411:
8.3-RELEASE.
20120106:
A new VOP_ADVISE() was added to support posix_fadvise(2). All
filesystem modules must be recompiled.
+3 -3
View File
@@ -33,7 +33,7 @@ BUILDNAME?=${BASE}-${DATE}-SNAP
#
#CHROOTDIR=/junk/release
# If this is a -stable snapshot, then set
#RELEASETAG=RELENG_8
#RELEASETAG=RELENG_8_3
#
# To test a release with a source tree containing patches and
# other work. This tree will get copied instead of getting the
@@ -72,7 +72,7 @@ BUILDNAME?=${BASE}-${DATE}-SNAP
#
# Subversion branch to build for src. If this is not set then it is
# automatically computed from RELEASETAG.
#SVNBRANCH=stable/8
#SVNBRANCH=releng/8.3
#
# Non-zero if ${RELEASETAG} is in the form "RELENG_ver_RELEASE"; we
# are building an official release. Otherwise, we are building for
@@ -171,7 +171,7 @@ NOPORTSATALL= YES
#
# Doing 'make index' in /usr/ports requires Perl.
MAKEINDEXPORTS= lang/perl5.10
MAKEINDEXPORTS= lang/perl5.12
DOCPORTS= textproc/docproj
# Set this to wherever the distfiles required by release procedures.
.if defined(DOCDISTFILES)
+1 -1
View File
@@ -81,5 +81,5 @@ MINIMALDOCPORTS+= \
ports/textproc/p5-PodParser
.else
MINIMALDOCPORTS+= \
ports/lang/perl5.10
ports/lang/perl5.12
.endif
@@ -16,7 +16,7 @@
<!ENTITY % release PUBLIC "-//FreeBSD//ENTITIES Release Specification//EN">
%release;
<!ENTITY release.bugfix "8.2-RELEASE">
<!ENTITY release.bugfix "8.3-RELEASE">
]>
<article>
@@ -40,7 +40,7 @@
<pubdate>$FreeBSD$</pubdate>
<copyright>
<year>2011</year>
<year>2012</year>
<holder role="mailto:[email protected]">The &os; Documentation Project</holder>
</copyright>
@@ -166,13 +166,6 @@
<sect1 id="late-news">
<title>Late-Breaking News and Corrections</title>
<para>A bug in <application>OpenSSL</application> that could cause
it to parse past the end of the message was found at the late
stage of &release.bugfix; release process. The &release.bugfix;
includes a fix for this issue by importing relevant parts from
the OpenSSL CVS. This could be triggered by an incorrectly
formatted ClientHello SSL/TLS handshake messages. The details
can be found at <ulink
url="http://www.openssl.org/news/secadv_20110208.txt"></ulink>.</para>
<para>No news.</para>
</sect1>
</article>
File diff suppressed because it is too large. Load diff
@@ -12,7 +12,7 @@ UNITEXTS= hardware readme relnotes errata
IMAGEDIR= .imagedir
RHOST= freefall.freebsd.org
RDIR= public_html/relnotes/CURRENT
RDIR= public_html/relnotes/RELENG_8_3
DOCDIR= ./release/doc
LANG= en_US.ISO8859-1
+5 -5
View File
@@ -6,15 +6,15 @@
<!-- Version of the OS we're describing. This needs to be updated
with each new release. -->
<!ENTITY release.current "8.2-RELEASE">
<!ENTITY release.current "8.3-RELEASE">
<!-- The previous version used for comparison in the "What's New"
section. For -CURRENT, we might point back to the last
branchpoint. -->
<!ENTITY release.prev "8.1-RELEASE">
<!ENTITY release.prev "8.2-RELEASE">
<!-- The next version to be released, usually used for snapshots. -->
<!ENTITY release.next "8.3-RELEASE">
<!ENTITY release.next "8.4-RELEASE">
<!-- The name of this branch. -->
<!ENTITY release.branch "8.2-STABLE">
@@ -31,10 +31,10 @@
<!-- The manpaths for man page references -->
<!ENTITY release.man.url "http://www.FreeBSD.org/cgi/man.cgi">
<!ENTITY release.manpath.xorg "7.5">
<!ENTITY release.manpath.xorg "7.5.1">
<!ENTITY release.manpath.netbsd "5.1">
<!ENTITY release.manpath.freebsd-ports "Ports">
<!ENTITY release.manpath.freebsd "8.2-RELEASE">
<!ENTITY release.manpath.freebsd "8.3-RELEASE">
<!-- Text constants which probably don't need to be changed.-->
+19 -7
View File
@@ -23,18 +23,28 @@ if 'PKG_VERBOSE' in os.environ:
else:
verbose = 0
if 'PKG_MEMSTICK' in os.environ:
doing_memstick = 1
else:
doing_memstick = 0
if 'PKG_DVD' in os.environ:
doing_dvd = 1
else:
doing_dvd = 0
# List of packages for disc1.
# List of packages. At this point only the English documentation fits
# on disc1. Add in the rest of the documentation for the memstick image.
# And add in enough packages to make a basic graphical workstation for the
# dvd image.
def disc1_packages():
pkgs = ['misc/freebsd-doc-bn',
pkgs = ['misc/freebsd-doc-en']
if doing_memstick or doing_dvd:
pkgs.extend(['misc/freebsd-doc-bn',
'misc/freebsd-doc-da',
'misc/freebsd-doc-de',
'misc/freebsd-doc-el',
'misc/freebsd-doc-en',
'misc/freebsd-doc-es',
'misc/freebsd-doc-fr',
'misc/freebsd-doc-hu',
@@ -48,22 +58,24 @@ def disc1_packages():
'misc/freebsd-doc-sr',
'misc/freebsd-doc-tr',
'misc/freebsd-doc-zh_cn',
'misc/freebsd-doc-zh_tw']
'misc/freebsd-doc-zh_tw'])
if doing_dvd:
pkgs.extend(['archivers/unzip',
'emulators/linux_base-f10',
'lang/perl5.10',
'lang/perl5.12',
'misc/freebsd-doc-all',
'net/mpd5',
'net/rsync',
'ports-mgmt/p5-FreeBSD-Portindex',
'ports-mgmt/portaudit',
'ports-mgmt/portmaster',
'ports-mgmt/portupgrade',
'shells/bash',
'shells/zsh',
'security/sudo',
'sysutils/screen',
'www/firefox',
'www/links',
'x11-drivers/xf86-video-vmware',
'x11/gnome2',
'x11/kde4',
'x11/xorg'])
+1 -1
View File
@@ -49,7 +49,7 @@
*default host=CHANGE_THIS.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default release=cvs tag=RELENG_8_3
*default delete use-rel-suffix
# If you seem to be limited by CPU rather than network or disk bandwidth, try
+15
View File
@@ -46,6 +46,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/endian.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ufs/dir.h>
#include <ufs/ffs/fs.h>
@@ -262,15 +264,28 @@ fsread(ino_t inode, void *buf, size_t nbyte)
}
n = (lbn - NDADDR) & (n - 1);
#if defined(UFS1_ONLY)
#if BYTE_ORDER == BIG_ENDIAN
memcpy((char *)&addr + sizeof(addr) -
sizeof(ufs1_daddr_t), (ufs1_daddr_t *)indbuf + n,
sizeof(ufs1_daddr_t));
#else
memcpy(&addr, (ufs1_daddr_t *)indbuf + n,
sizeof(ufs1_daddr_t));
#endif
#elif defined(UFS2_ONLY)
memcpy(&addr, (ufs2_daddr_t *)indbuf + n,
sizeof(ufs2_daddr_t));
#else
if (fs.fs_magic == FS_UFS1_MAGIC)
#if BYTE_ORDER == BIG_ENDIAN
memcpy((char *)&addr + sizeof(addr) -
sizeof(ufs1_daddr_t),
(ufs1_daddr_t *)indbuf + n,
sizeof(ufs1_daddr_t));
#else
memcpy(&addr, (ufs1_daddr_t *)indbuf + n,
sizeof(ufs1_daddr_t));
#endif
else
memcpy(&addr, (ufs2_daddr_t *)indbuf + n,
sizeof(ufs2_daddr_t));
+1 -1
View File
@@ -6,7 +6,7 @@ SEARCH_DIR(/usr/lib);
SECTIONS
{
/* Read-only sections, merged into text segment: */
. = kernbase + kernload + SIZEOF_HEADERS;
. = kernbase + kernload + 256;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
+1 -1
View File
@@ -32,7 +32,7 @@
TYPE="FreeBSD"
REVISION="8.3"
BRANCH="PRERELEASE"
BRANCH="RELEASE"
if [ "X${BRANCH_OVERRIDE}" != "X" ]; then
BRANCH=${BRANCH_OVERRIDE}
fi
+6 -2
View File
@@ -98,7 +98,11 @@ static struct _pcsid
{ 0x1d688086, "Intel(R) C600 Series Chipset SAS Controller" },
{ 0x1d698086, "Intel(R) C600 Series Chipset SAS Controller" },
{ 0x1d6a8086, "Intel(R) C600 Series Chipset SAS Controller (SATA mode)" },
{ 0x1d6b8086, "Intel(R) C600 Series Chipset SAS Controller (SATA mode)" },
{ 0x1d6b8086, "Intel(R) C600 Series Chipset SAS Controller (SATA mode)" },
{ 0x1d6c8086, "Intel(R) C600 Series Chipset SAS Controller" },
{ 0x1d6d8086, "Intel(R) C600 Series Chipset SAS Controller" },
{ 0x1d6e8086, "Intel(R) C600 Series Chipset SAS Controller" },
{ 0x1d6f8086, "Intel(R) C600 Series Chipset SAS Controller (SATA mode)" },
{ 0x00000000, NULL }
};
@@ -114,7 +118,7 @@ isci_probe (device_t device)
if (ep->desc)
{
device_set_desc(device, ep->desc);
return (0);
return (BUS_PROBE_DEFAULT);
}
else
return (ENXIO);
+1
View File
@@ -87,6 +87,7 @@ static driver_t mps_pci_driver = {
static devclass_t mps_devclass;
DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0);
MODULE_DEPEND(mps, cam, 1, 1, 1);
struct mps_ident {
uint16_t vendor;
+62 -6
View File
@@ -129,18 +129,34 @@ __FBSDID("$FreeBSD$");
#define PCI_PRODUCT_LSI_FC919 0x0624
#endif
#ifndef PCI_PRODUCT_LSI_FC919_LAN
#define PCI_PRODUCT_LSI_FC919_LAN 0x0625
#endif
#ifndef PCI_PRODUCT_LSI_FC929
#define PCI_PRODUCT_LSI_FC929 0x0622
#endif
#ifndef PCI_PRODUCT_LSI_FC929_LAN
#define PCI_PRODUCT_LSI_FC929_LAN 0x0623
#endif
#ifndef PCI_PRODUCT_LSI_FC929X
#define PCI_PRODUCT_LSI_FC929X 0x0626
#endif
#ifndef PCI_PRODUCT_LSI_FC929X_LAN
#define PCI_PRODUCT_LSI_FC929X_LAN 0x0627
#endif
#ifndef PCI_PRODUCT_LSI_FC919X
#define PCI_PRODUCT_LSI_FC919X 0x0628
#endif
#ifndef PCI_PRODUCT_LSI_FC919X_LAN
#define PCI_PRODUCT_LSI_FC919X_LAN 0x0629
#endif
#ifndef PCI_PRODUCT_LSI_FC7X04X
#define PCI_PRODUCT_LSI_FC7X04X 0x0640
#endif
@@ -153,6 +169,10 @@ __FBSDID("$FreeBSD$");
#define PCI_PRODUCT_LSI_1030 0x0030
#endif
#ifndef PCI_PRODUCT_LSI_1030ZC
#define PCI_PRODUCT_LSI_1030ZC 0x0031
#endif
#ifndef PCI_PRODUCT_LSI_SAS1064
#define PCI_PRODUCT_LSI_SAS1064 0x0050
#endif
@@ -177,10 +197,18 @@ __FBSDID("$FreeBSD$");
#define PCI_PRODUCT_LSI_SAS1068 0x0054
#endif
#ifndef PCI_PRODUCT_LSI_SAS1068A
#define PCI_PRODUCT_LSI_SAS1068A 0x0055
#endif
#ifndef PCI_PRODUCT_LSI_SAS1068E
#define PCI_PRODUCT_LSI_SAS1068E 0x0058
#endif
#ifndef PCI_PRODUCT_LSI_SAS1068E2
#define PCI_PRODUCT_LSI_SAS1068E2 0x0059
#endif
#ifndef PCI_PRODUCT_LSI_SAS1078
#define PCI_PRODUCT_LSI_SAS1078 0x0062
#endif
@@ -232,7 +260,7 @@ mpt_pci_probe(device_t dev)
return (ENXIO);
}
switch ((pci_get_device(dev) & ~1)) {
switch (pci_get_device(dev)) {
case PCI_PRODUCT_LSI_FC909:
desc = "LSILogic FC909 FC Adapter";
break;
@@ -242,15 +270,27 @@ mpt_pci_probe(device_t dev)
case PCI_PRODUCT_LSI_FC919:
desc = "LSILogic FC919 FC Adapter";
break;
case PCI_PRODUCT_LSI_FC919_LAN:
desc = "LSILogic FC919 LAN Adapter";
break;
case PCI_PRODUCT_LSI_FC929:
desc = "Dual LSILogic FC929 FC Adapter";
break;
case PCI_PRODUCT_LSI_FC929_LAN:
desc = "Dual LSILogic FC929 LAN Adapter";
break;
case PCI_PRODUCT_LSI_FC919X:
desc = "LSILogic FC919 FC PCI-X Adapter";
break;
case PCI_PRODUCT_LSI_FC919X_LAN:
desc = "LSILogic FC919 LAN PCI-X Adapter";
break;
case PCI_PRODUCT_LSI_FC929X:
desc = "Dual LSILogic FC929X 2Gb/s FC PCI-X Adapter";
break;
case PCI_PRODUCT_LSI_FC929X_LAN:
desc = "Dual LSILogic FC929X LAN PCI-X Adapter";
break;
case PCI_PRODUCT_LSI_FC646:
desc = "Dual LSILogic FC7X04X 4Gb/s FC PCI-Express Adapter";
break;
@@ -258,6 +298,7 @@ mpt_pci_probe(device_t dev)
desc = "Dual LSILogic FC7X04X 4Gb/s FC PCI-X Adapter";
break;
case PCI_PRODUCT_LSI_1030:
case PCI_PRODUCT_LSI_1030ZC:
desc = "LSILogic 1030 Ultra4 Adapter";
break;
case PCI_PRODUCT_LSI_SAS1064:
@@ -266,7 +307,9 @@ mpt_pci_probe(device_t dev)
case PCI_PRODUCT_LSI_SAS1066:
case PCI_PRODUCT_LSI_SAS1066E:
case PCI_PRODUCT_LSI_SAS1068:
case PCI_PRODUCT_LSI_SAS1068A:
case PCI_PRODUCT_LSI_SAS1068E:
case PCI_PRODUCT_LSI_SAS1068E2:
case PCI_PRODUCT_LSI_SAS1078:
case PCI_PRODUCT_LSI_SAS1078DE:
desc = "LSILogic SAS/SATA Adapter";
@@ -428,12 +471,17 @@ mpt_pci_attach(device_t dev)
return (ENOMEM);
}
memset(mpt, 0, sizeof(struct mpt_softc));
switch ((pci_get_device(dev) & ~1)) {
switch (pci_get_device(dev)) {
case PCI_PRODUCT_LSI_FC909:
case PCI_PRODUCT_LSI_FC909A:
case PCI_PRODUCT_LSI_FC919:
case PCI_PRODUCT_LSI_FC919_LAN:
case PCI_PRODUCT_LSI_FC929:
case PCI_PRODUCT_LSI_FC929_LAN:
case PCI_PRODUCT_LSI_FC929X:
case PCI_PRODUCT_LSI_FC929X_LAN:
case PCI_PRODUCT_LSI_FC919X:
case PCI_PRODUCT_LSI_FC919X_LAN:
case PCI_PRODUCT_LSI_FC646:
case PCI_PRODUCT_LSI_FC7X04X:
mpt->is_fc = 1;
@@ -448,7 +496,9 @@ mpt_pci_attach(device_t dev)
case PCI_PRODUCT_LSI_SAS1066:
case PCI_PRODUCT_LSI_SAS1066E:
case PCI_PRODUCT_LSI_SAS1068:
case PCI_PRODUCT_LSI_SAS1068A:
case PCI_PRODUCT_LSI_SAS1068E:
case PCI_PRODUCT_LSI_SAS1068E2:
mpt->is_sas = 1;
break;
default:
@@ -499,11 +549,17 @@ mpt_pci_attach(device_t dev)
* Is this part a dual?
* If so, link with our partner (around yet)
*/
if ((pci_get_device(dev) & ~1) == PCI_PRODUCT_LSI_FC929 ||
(pci_get_device(dev) & ~1) == PCI_PRODUCT_LSI_FC646 ||
(pci_get_device(dev) & ~1) == PCI_PRODUCT_LSI_FC7X04X ||
(pci_get_device(dev) & ~1) == PCI_PRODUCT_LSI_1030) {
switch (pci_get_device(dev)) {
case PCI_PRODUCT_LSI_FC929:
case PCI_PRODUCT_LSI_FC929_LAN:
case PCI_PRODUCT_LSI_FC646:
case PCI_PRODUCT_LSI_FC7X04X:
case PCI_PRODUCT_LSI_1030:
case PCI_PRODUCT_LSI_1030ZC:
mpt_link_peer(mpt);
break;
default:
break;
}
/*
+16
View File
@@ -2300,6 +2300,10 @@ sctp_peeloff(td, uap)
error = fgetsock(td, uap->sd, &head, &fflag);
if (error)
goto done2;
if (head->so_proto->pr_protocol != IPPROTO_SCTP) {
error = EOPNOTSUPP;
goto done2;
}
error = sctp_can_peel_off(head, (sctp_assoc_t)uap->name);
if (error)
goto done2;
@@ -2418,6 +2422,10 @@ sctp_generic_sendmsg (td, uap)
iov[0].iov_len = uap->mlen;
so = (struct socket *)fp->f_data;
if (so->so_proto->pr_protocol != IPPROTO_SCTP) {
error = EOPNOTSUPP;
goto sctp_bad;
}
#ifdef MAC
error = mac_socket_check_send(td->td_ucred, so);
if (error)
@@ -2528,6 +2536,10 @@ sctp_generic_sendmsg_iov(td, uap)
#endif
so = (struct socket *)fp->f_data;
if (so->so_proto->pr_protocol != IPPROTO_SCTP) {
error = EOPNOTSUPP;
goto sctp_bad;
}
#ifdef MAC
error = mac_socket_check_send(td->td_ucred, so);
if (error)
@@ -2632,6 +2644,10 @@ sctp_generic_recvmsg(td, uap)
goto out1;
so = fp->f_data;
if (so->so_proto->pr_protocol != IPPROTO_SCTP) {
error = EOPNOTSUPP;
goto out;
}
#ifdef MAC
error = mac_socket_check_receive(td->td_ucred, so);
if (error) {
+4
View File
@@ -1169,6 +1169,10 @@ ng_bypass(hook_p hook1, hook_p hook2)
return (EINVAL);
}
mtx_lock(&ng_topo_mtx);
if (NG_HOOK_NOT_VALID(hook1) || NG_HOOK_NOT_VALID(hook2)) {
mtx_unlock(&ng_topo_mtx);
return (EINVAL);
}
hook1->hk_peer->hk_peer = hook2->hk_peer;
hook2->hk_peer->hk_peer = hook1->hk_peer;
+10 -1
View File
@@ -55,11 +55,20 @@ sctp_can_peel_off(struct socket *head, sctp_assoc_t assoc_id)
struct sctp_tcb *stcb;
uint32_t state;
if (head == NULL) {
SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EBADF);
return (EBADF);
}
inp = (struct sctp_inpcb *)head->so_pcb;
if (inp == NULL) {
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EFAULT);
SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EFAULT);
return (EFAULT);
}
if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
(inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) {
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EOPNOTSUPP);
return (EOPNOTSUPP);
}
stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1);
if (stcb == NULL) {
SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT);
+2
View File
@@ -2310,6 +2310,8 @@ copypktopts(struct ip6_pktopts *dst, struct ip6_pktopts *src, int canwait)
dst->ip6po_hlim = src->ip6po_hlim;
dst->ip6po_tclass = src->ip6po_tclass;
dst->ip6po_flags = src->ip6po_flags;
dst->ip6po_minmtu = src->ip6po_minmtu;
dst->ip6po_prefer_tempaddr = src->ip6po_prefer_tempaddr;
if (src->ip6po_pktinfo) {
dst->ip6po_pktinfo = malloc(sizeof(*dst->ip6po_pktinfo),
M_IP6OPT, canwait);
+1 -1
View File
@@ -58,7 +58,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
#define __FreeBSD_version 802517 /* Master, propagated to newvers */
#define __FreeBSD_version 803000 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
+1 -1
View File
@@ -170,7 +170,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
* If we'll need to use it or we're updating it,
* then create the base home directory if necessary
*/
if ((arg != NULL || getarg(args, 'm') != NULL) && (getarg(args, 'd') == NULL)) {
if (arg != NULL || getarg(args, 'm') != NULL) {
int l = strlen(cnf->home);
if (l > 1 && cnf->home[l-1] == '/') /* Shave off any trailing path delimiter */