<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/boot/common/dev_net.c, branch releng/11.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2016-03-21T15:06:50Z</updated>
<entry>
<title>If the dhcp server provided an interface-mtu option, transcribe the value</title>
<updated>2016-03-21T15:06:50Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2016-03-21T15:06:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98acd232ad7a81d972dd4584dbdf0931857a6af7'/>
<id>urn:sha1:98acd232ad7a81d972dd4584dbdf0931857a6af7</id>
<content type='text'>
to the boot.netif.mtu env var, which will be picked up by pre-existing code
in nfs_mountroot() and used to configure the interface accordingly.

This should bring the same functionality when the bootp/dhcp work is done
by loader(8) as r297150 does for the in-kernel BOOTP case.
</content>
</entry>
<entry>
<title>Fix build failure introduced by r296182</title>
<updated>2016-02-29T09:03:07Z</updated>
<author>
<name>Stanislav Galabov</name>
<email>sgalabov@FreeBSD.org</email>
</author>
<published>2016-02-29T09:03:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=55d11ce3bd8b04287e8a569e94a579568c29efe9'/>
<id>urn:sha1:55d11ce3bd8b04287e8a569e94a579568c29efe9</id>
<content type='text'>
Approved by:	adrian (mentor)
</content>
</entry>
<entry>
<title>These changes attempt to put things in order before the introduction of MIPS</title>
<updated>2016-02-29T07:27:49Z</updated>
<author>
<name>Stanislav Galabov</name>
<email>sgalabov@FreeBSD.org</email>
</author>
<published>2016-02-29T07:27:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b981b8bd869140a572e5cfa713d4c6f67d1534ab'/>
<id>urn:sha1:b981b8bd869140a572e5cfa713d4c6f67d1534ab</id>
<content type='text'>
ubldr.

The changes are mostly dealing with removing unnecessary casts from the U-Boot
API (we're passing only pointers, no obvious reason to cast them to uint32_t),
cleaning up some compiler warnings and using the proper printf format
specifiers in order to be able to compile cleanly for both 32-bit and 64-bit
MIPS targets.

Reviewed by:	imp
Approved by:	adrian (mentor)
Sponsored by:	Smartcom - Bulgaria AD
Differential Revision:	https://reviews.freebsd.org/D5312
</content>
</entry>
<entry>
<title>Refactor net_getparams() to make it easier to get params from sources other</title>
<updated>2015-05-18T15:46:43Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2015-05-18T15:46:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b32852bef6232b5936306389bf6f543fcae9f600'/>
<id>urn:sha1:b32852bef6232b5936306389bf6f543fcae9f600</id>
<content type='text'>
than bootp and rarp.

The code which splits a serverip:/rootpath string into rootip and a plain
pathname is now a separate net_parse_rootpath() function that can be
called by others.  The code that sets the kernel env vars needed for
nfs_diskless is moved into net_open() so that the variables get set no
matter where the params came from.

There was already code in net_open() that allowed for the possibility that
some other entity has set up the network-related global variables.  It uses
the rootip variable as the key, assuming that if it is set all the other
required variables are set too.  These changes don't alter the existing
behavior, they just make it easier to actually write some new code to get
the params from another source (such as the U-Boot environment).
</content>
</entry>
<entry>
<title>- Add code allowing a network device to only be open and closed once</title>
<updated>2010-01-09T21:23:39Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-01-09T21:23:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ccb1921ee03062ec2bcde59bc7a77cfacc36ad3d'/>
<id>urn:sha1:ccb1921ee03062ec2bcde59bc7a77cfacc36ad3d</id>
<content type='text'>
  by keeping it opened after the first open and closing it via the
  cleanup handler when NETIF_OPEN_CLOSE_ONCE is defined in order to
  avoid the open-close-dance on every file access which with firmware
  that for example performs an auto-negotiation on every open causes
  netbooting to take horribly long. Basically the behavior with this
  knob enabled resembles the one employed between r60506 and r177108
  (and for sparc64 also again since r182919) with the addition that
  the network device now is closed eventually before entering the
  kernel and before rebooting. Actually I think this should be the
  desired MI behavior, however the U-Boot loader actually requires
  net_close() to be called after every transaction in order for some
  local shutdown operations to be performed (and which I think thus
  will break on concurrent opens, i.e. when netdev_opens is &gt; 1, like
  the loader does at least for disks when LOADER_GZIP_SUPPORT is
  enabled).
- Use NETIF_OPEN_CLOSE_ONCE to replace the hack, which artificially
  increased netdev_opens for sparc64 in order to keep the network
  device opened forever, as at least some firmware versions require
  the network device to be closed eventually before entering the
  kernel or otherwise will DMA received packets to stale memory.
  The powerpc OFW loader probably wants NETIF_OPEN_CLOSE_ONCE to be
  set as well for the same reasons.
</content>
</entry>
<entry>
<title>Remove clause 3 and 4 from TNF licenses (this was the only 4-clause TNF</title>
<updated>2010-01-09T17:09:57Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2010-01-09T17:09:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=989bac19ead202eca7b234054dcb3e75b5a531fa'/>
<id>urn:sha1:989bac19ead202eca7b234054dcb3e75b5a531fa</id>
<content type='text'>
license FreeBSD had in sys/boot).

Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>- Consistently wrap debugging in NETIF_DEBUG. This basically merges</title>
<updated>2009-12-24T15:16:16Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2009-12-24T15:16:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5e01e025a2a16412358d01479912c46dff493150'/>
<id>urn:sha1:5e01e025a2a16412358d01479912c46dff493150</id>
<content type='text'>
  NetBSD rev 1.19.
- Make the functions match their prototypes regarding static.
</content>
</entry>
<entry>
<title>Revert r177108 and restore r60506 for sparc64 as long as libstand</title>
<updated>2008-09-10T20:53:22Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2008-09-10T20:53:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4028a367264de6838b3e344c09a03f233b66a187'/>
<id>urn:sha1:4028a367264de6838b3e344c09a03f233b66a187</id>
<content type='text'>
isn't fixed to only open the network device once and not do a open
and close dance on every file access; the firmwares of newer sparc64
machines perform an auto-negotiation with every open which in turn
causes netbooting to take horribly long if we open and close the
device over and over again.
</content>
</entry>
<entry>
<title>Show info about net devices in loader's 'lsdev' command. While there fix style.</title>
<updated>2008-09-03T17:41:44Z</updated>
<author>
<name>Rafal Jaworowski</name>
<email>raj@FreeBSD.org</email>
</author>
<published>2008-09-03T17:41:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=387a29b78d340eb1861c1ed93f40d4ed7aa4896e'/>
<id>urn:sha1:387a29b78d340eb1861c1ed93f40d4ed7aa4896e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Eliminate artificial increasing of 'netdev_opens' counter in loader's net_open().</title>
<updated>2008-03-12T16:01:34Z</updated>
<author>
<name>Rafal Jaworowski</name>
<email>raj@FreeBSD.org</email>
</author>
<published>2008-03-12T16:01:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7572ed5a08c334bc4670245fa6781a2b63ccef08'/>
<id>urn:sha1:7572ed5a08c334bc4670245fa6781a2b63ccef08</id>
<content type='text'>
This was introduced as a workaround long time ago for some Alpha firmware
(which is now gone), and actually prevented net_close() to ever be
called.

Certain firmwares (U-Boot) need local shutdown operations to be performed on a
network controller upon transaction end: such platform-specific hooks are
supposed to be called via netif_close() (from within net_close()).

This change effectively reverts the following CVS commit:

    sys/boot/common/dev_net.c

    revision 1.7
    date: 2000/05/13 15:40:46;  author: dfr;  state: Exp;  lines: +2 -1
    Only probe network settings on the first open of the network device.
    The alpha firmware takes a seriously long time to open the network device
    the first time.

Also suppress excessive output while netbooting via loader, unless debugging.

While there, make sys/boot/uboot more style(9) compliant.

Reviewed by:	imp
Approved by:	cognet (mentor)
</content>
</entry>
</feed>
