<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/net, branch release/9.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-06-05T15:18:49Z</updated>
<entry>
<title>MFC r240938, r240942: Avoid INVARIANTS panic destroying an in-use tap(4)</title>
<updated>2014-06-05T15:18:49Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2014-06-05T15:18:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6f967af3ab2f0d1112732976b5bb8e418bbc309b'/>
<id>urn:sha1:6f967af3ab2f0d1112732976b5bb8e418bbc309b</id>
<content type='text'>
  The requirement (implied by the KASSERT in tap_destroy) that the tap is
  closed isn't valid; destroy_dev will block in devdrn while other threads
  are in d_* functions.

  Note: if_tun had the same issue, addressed in SVN revisions r186391,
  r186483 and r186497.  The use of the condvar there appears to be
  redundant with the functionality provided by destroy_dev.

PR:		172075
Approved by:	re
</content>
</entry>
<entry>
<title>MFC r264241:</title>
<updated>2014-05-15T20:10:58Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2014-05-15T20:10:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=76d32d8fe0f2d7cba63aee6485a8f7bbae46a0c3'/>
<id>urn:sha1:76d32d8fe0f2d7cba63aee6485a8f7bbae46a0c3</id>
<content type='text'>
Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),
since rt_addrmsg() gets also called from other functions.
</content>
</entry>
<entry>
<title>Merge 260488, r260508.</title>
<updated>2014-05-08T20:57:13Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2014-05-08T20:57:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb1289efcfca55bbc6c897b2cdeaf116e3238f02'/>
<id>urn:sha1:cb1289efcfca55bbc6c897b2cdeaf116e3238f02</id>
<content type='text'>
r260488:
  Split rt_newaddrmsg_fib() into two different functions.
  Adding/deleting interface addresses involves access to 3 different subsystems,
  int different parts of code. Each call can fail, so reporting successful
  operation by rtsock in the middle of the process error-prone.

  Further split routing notification API and actual rtsock calls via creating
  public-available rt_addrmsg() / rt_routemsg() functions with "private"
  rtsock_* backend.

r260508:
  Simplify inet alias handling code: if we're adding/removing alias which
  has the same prefix as some other alias on the same interface, use
  newly-added rt_addrmsg() instead of hand-rolled in_addralias_rtmsg().

  This eliminates the following rtsock messages:

  Pinned RTM_ADD for prefix (for alias addition).
  Pinned RTM_DELETE for prefix (for alias withdrawal).

  Example (got 10.0.0.1/24 on vlan4, playing with 10.0.0.2/24):

  before commit, addition:

    got message of size 116 on Fri Jan 10 14:13:15 2014
    RTM_NEWADDR: address being added to iface: len 116, metric 0, flags:
    sockaddrs: &lt;NETMASK,IFP,IFA,BRD&gt;
     255.255.255.0 vlan4:8.0.27.c5.29.d4 10.0.0.2 10.0.0.255

    got message of size 192 on Fri Jan 10 14:13:15 2014
    RTM_ADD: Add Route: len 192, pid: 0, seq 0, errno 0, flags:&lt;UP,PINNED&gt;
    locks:  inits:
    sockaddrs: &lt;DST,GATEWAY,NETMASK&gt;
     10.0.0.0 10.0.0.2 (255) ffff ffff ff

  after commit, addition:

    got message of size 116 on Fri Jan 10 13:56:26 2014
    RTM_NEWADDR: address being added to iface: len 116, metric 0, flags:
    sockaddrs: &lt;NETMASK,IFP,IFA,BRD&gt;
     255.255.255.0 vlan4:8.0.27.c5.29.d4 14.0.0.2 14.0.0.255

  before commit, wihdrawal:

    got message of size 192 on Fri Jan 10 13:58:59 2014
    RTM_DELETE: Delete Route: len 192, pid: 0, seq 0, errno 0, flags:&lt;UP,PINNED&gt;
    locks:  inits:
    sockaddrs: &lt;DST,GATEWAY,NETMASK&gt;
     10.0.0.0 10.0.0.2 (255) ffff ffff ff

    got message of size 116 on Fri Jan 10 13:58:59 2014
    RTM_DELADDR: address being removed from iface: len 116, metric 0, flags:
    sockaddrs: &lt;NETMASK,IFP,IFA,BRD&gt;
     255.255.255.0 vlan4:8.0.27.c5.29.d4 10.0.0.2 10.0.0.255

  adter commit, withdrawal:

    got message of size 116 on Fri Jan 10 14:14:11 2014
    RTM_DELADDR: address being removed from iface: len 116, metric 0, flags:
    sockaddrs: &lt;NETMASK,IFP,IFA,BRD&gt;
     255.255.255.0 vlan4:8.0.27.c5.29.d4 10.0.0.2 10.0.0.255

  Sending both RTM_ADD/RTM_DELETE messages to rtsock is completely wrong
  (and requires some hacks to keep prefix in route table on RTM_DELETE).

  I've tested this change with quagga (no change) and bird (*).

  bird alias handling is already broken in *BSD sysdep code, so nothing
  changes here, too.

  I'm going to MFC this change if there will be no complains about behavior
  change.

  While here, fix some style(9) bugs introduced by r260488
  (pointed by glebius and bde).
</content>
</entry>
<entry>
<title>Merge r260379, r260460.</title>
<updated>2014-05-08T20:33:47Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2014-05-08T20:33:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=300a33c131c0cc17f1dc36db10803795fd486024'/>
<id>urn:sha1:300a33c131c0cc17f1dc36db10803795fd486024</id>
<content type='text'>
r260379:
  Partially fix IPv4 interface routes deletion in RADIX_MPATH.

  Noticed by:   Nikolay Denev &lt;ndenev at gmail.com&gt;

r260460:
  Constanly use RT_ALL_FIBS everywhere instead of -1.
</content>
</entry>
<entry>
<title>Merge r259528, r259528, r260295.</title>
<updated>2014-05-08T20:24:13Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2014-05-08T20:24:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ba95c4f135121d93a00759a64ad9d29ea5281fc2'/>
<id>urn:sha1:ba95c4f135121d93a00759a64ad9d29ea5281fc2</id>
<content type='text'>
r259528:
  Simplify contiguous mask checking.

  Suggested by: glebius

r260228:
  Remove useless register variable modifiers.
  Do some more style(9).

r260295:
  Change semantics for rnh_lookup() function: now
  it performs exact match search, regardless of netmask existance.
  This simplifies most of rnh_lookup() consumers.

  Fix panic triggered by deleting non-existent host route.

  PR:           kern/185092
  Submitted by: Nikolay Denev &lt;ndenev at gmail.com&gt;
</content>
</entry>
<entry>
<title>MFC r258692 and r260207 (both by gnn@)</title>
<updated>2014-05-07T19:05:14Z</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2014-05-07T19:05:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=300ff8b1d1538ad88872f958f3a34c9610c206eb'/>
<id>urn:sha1:300ff8b1d1538ad88872f958f3a34c9610c206eb</id>
<content type='text'>
r258692:
Add constants for use in interrogating various fiber and copper connectors
most often used with network interfaces.

The SFF-8472 standard defines the information that can be retrieved
from an optic or a copper cable plugged into a NIC, most often
referred to as SFP+.  Examples of values that can be read
include the cable vendor's name, part number, date of manufacture
as well as running data such as temperature, voltage and tx
and rx power.

Copious comments on how to use these values with an I2C interface
are given in the header file itself.

r260207:
Convert #defines to enums so that the values are visible in the debugger.
</content>
</entry>
<entry>
<title>MFC: r264630</title>
<updated>2014-05-03T23:48:26Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2014-05-03T23:48:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b93ff07f1eeb0c16dd0c5bf10251330b680e5e76'/>
<id>urn:sha1:b93ff07f1eeb0c16dd0c5bf10251330b680e5e76</id>
<content type='text'>
For NFS mounts using rsize,wsize=65536 over TSO enabled
network interfaces limited to 32 transmit segments, there
are two known issues.
The more serious one is that for an I/O of slightly less than 64K,
the net device driver prepends an ethernet header, resulting in a
TSO segment slightly larger than 64K. Since m_defrag() copies this
into 33 mbuf clusters, the transmit fails with EFBIG.
A tester indicated observing a similar failure using iSCSI.

The second less critical problem is that the network
device driver must copy the mbuf chain via m_defrag()
(m_collapse() is not sufficient), resulting in measurable overhead.

This patch reduces the default size of if_hw_tsomax
slightly, so that the first issue is avoided.
Fixing the second issue will require a way for the
network device driver to inform tcp_output() that it
is limited to 32 transmit segments.
</content>
</entry>
<entry>
<title>MFC: r264517</title>
<updated>2014-05-03T23:42:00Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2014-05-03T23:42:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6e3a5c16c9ee69c0852881bf44c2793cce68f90'/>
<id>urn:sha1:f6e3a5c16c9ee69c0852881bf44c2793cce68f90</id>
<content type='text'>
Vlan did not set the value of if_hw_tsomax, so when vlan
was stacked on top of a network interface that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface. This patch modifies vlan so that
it sets if_hw_tsomax to the value of the parent interface.
</content>
</entry>
<entry>
<title>MFC: r264469, r264498</title>
<updated>2014-05-03T22:27:24Z</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2014-05-03T22:27:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=982fba141f857fd58214e3bfed98c2de3320a403'/>
<id>urn:sha1:982fba141f857fd58214e3bfed98c2de3320a403</id>
<content type='text'>
Lagg did not set the value of if_hw_tsomax, so when lagg
was stacked on top of network interfaces that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface(s). This patch modifies lagg so that
it sets if_hw_tsomax to the minimum of the value(s) for the
underlying network interfaces.
</content>
</entry>
<entry>
<title>MFH: sync the netmap code with the one in HEAD</title>
<updated>2014-02-18T05:58:36Z</updated>
<author>
<name>Luigi Rizzo</name>
<email>luigi@FreeBSD.org</email>
</author>
<published>2014-02-18T05:58:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9054c2de8032413f14cb380a15957e3f33a87346'/>
<id>urn:sha1:9054c2de8032413f14cb380a15957e3f33a87346</id>
<content type='text'>
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.
</content>
</entry>
</feed>
