<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/net.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-04-12T12:05:52Z</updated>
<entry>
<title>net: Add priv_pdata to eth_pdata</title>
<updated>2019-04-12T12:05:52Z</updated>
<author>
<name>Faiz Abbas</name>
</author>
<published>2019-03-18T08:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=3c6add986f1cfca8651e5bfd5a8dbefa6d89ecc9'/>
<id>urn:sha1:3c6add986f1cfca8651e5bfd5a8dbefa6d89ecc9</id>
<content type='text'>
Add a priv member for eth_pdata for platform specific platform data.

Signed-off-by: Faiz Abbas &lt;faiz_abbas@ti.com&gt;
</content>
</entry>
<entry>
<title>net: remove CONFIG_MCAST_TFTP</title>
<updated>2019-01-24T17:35:30Z</updated>
<author>
<name>Chris Packham</name>
</author>
<published>2018-11-26T08:00:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=67bb984249442378ebb6a0eb68b6b0dd67dfbe72'/>
<id>urn:sha1:67bb984249442378ebb6a0eb68b6b0dd67dfbe72</id>
<content type='text'>
No mainline board enables CONFIG_MCAST_TFTP and there have been
compilation issues with the code for some time. Additionally, it has a
potential buffer underrun issue (reported as a side note in
CVE-2018-18439).

Remove the multicast TFTP code but keep the driver API for the future
addition of IPv6.

Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: move ether_crc to tsec driver</title>
<updated>2019-01-24T17:35:29Z</updated>
<author>
<name>Chris Packham</name>
</author>
<published>2018-11-26T08:00:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=1a4af5c562fdb9f5a884a53f136f2b2075ffd1d8'/>
<id>urn:sha1:1a4af5c562fdb9f5a884a53f136f2b2075ffd1d8</id>
<content type='text'>
ether_crc was added to the core net code in commit 53a5c424bf86
("multicast tftp: RFC2090") so that other drivers could use it. However
the only current user of it is tsec.c so move it there.

Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: Consolidate UDP header functions</title>
<updated>2018-10-10T17:29:02Z</updated>
<author>
<name>Duncan Hare</name>
</author>
<published>2018-06-24T22:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=5d457ecbef5eba8eaeed513c65c55453de4f3975'/>
<id>urn:sha1:5d457ecbef5eba8eaeed513c65c55453de4f3975</id>
<content type='text'>
Make it possible to add TCP versions of the same, while reusing
IP portions. This patch should not change any behavior.

Signed-off-by: Duncan Hare &lt;DH@Synoia.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: Don't overwrite waiting packets with asynchronous replies</title>
<updated>2018-10-10T17:29:01Z</updated>
<author>
<name>Joe Hershberger</name>
</author>
<published>2018-09-26T21:49:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ac3f26cc15ad7e3e9efc2b0b0e18c6e84d93af77'/>
<id>urn:sha1:ac3f26cc15ad7e3e9efc2b0b0e18c6e84d93af77</id>
<content type='text'>
Peter originally sent a fix, but it breaks a number of other things.
This addresses the original reported issue in a different way.

That report was:

&gt; U-Boot has 1 common buffer to send Ethernet frames, pointed to by
&gt; net_tx_packet.  When sending to an IP address without knowing the MAC
&gt; address, U-Boot makes an ARP request (using the arp_tx_packet buffer)
&gt; to find out the MAC address of the IP addressr. When a matching ARP
&gt; reply is received, U-Boot continues sending the frame stored in the
&gt; net_tx_packet buffer.
&gt;
&gt; However, in the mean time, if U-Boot needs to send out any network
&gt; packets (e.g. replying ping packets or ARP requests for its own IP
&gt; address etc.), it will use the net_tx_packet buffer to prepare the
&gt; new packet. Thus this buffer is no longer the original packet meant
&gt; to be transmitted after the ARP reply. The original packet will be
&gt; lost.

This instead uses the ARP tx buffer to send async replies in the case
where we are actively waiting for an ARP reply.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;

Reported-by: Tran Tien Dat &lt;peter.trantiendat@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Tested-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>net: Add an accessor to know if waiting for ARP</title>
<updated>2018-10-10T17:28:58Z</updated>
<author>
<name>Joe Hershberger</name>
</author>
<published>2018-09-26T21:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=3f02c98bd1000fc26ee2700fd5a75112cdeaca6c'/>
<id>urn:sha1:3f02c98bd1000fc26ee2700fd5a75112cdeaca6c</id>
<content type='text'>
This single-sources the state of the ARP.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>net.h: Include linux/if_ether.h to avoid duplication</title>
<updated>2018-10-10T17:28:52Z</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2018-07-31T09:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=dda5251037008b3563ab0aaf443eb7be3213887c'/>
<id>urn:sha1:dda5251037008b3563ab0aaf443eb7be3213887c</id>
<content type='text'>
There are plenty of existing drivers that have macros like ETH_ALEN
defined in their own source files. Now that we imported the kernel's
if_ether.h to U-Boot we can reduce some duplication.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: Increase ethernet name string size to 20 chars</title>
<updated>2018-08-08T15:23:49Z</updated>
<author>
<name>Pankaj Bansal</name>
</author>
<published>2018-08-02T11:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=1666fa587bfaa5ab72ea7bb9e2a811494c2a3e7b'/>
<id>urn:sha1:1666fa587bfaa5ab72ea7bb9e2a811494c2a3e7b</id>
<content type='text'>
The 16 char ethernet name size is inadequate to hold the name of ethernet
name "DPMAC17@rgmii-id", which is a valid name in LX2160AQDS/LX2160ARDB.

Therefore, increase the name string size to 20 chars.

Reported-by: Ioana Ciornei &lt;ioana.ciornei@nxp.com&gt;
Suggested-by: Ioana Ciocoi Radulescu &lt;ruxandra.radulescu@nxp.com&gt;
Signed-off-by: Pankaj Bansal &lt;pankaj.bansal@nxp.com&gt;
Reviewed-by: York Sun &lt;york.sun@nxp.com&gt;
</content>
</entry>
<entry>
<title>net: Consolidate the parsing of bootfile</title>
<updated>2018-07-26T19:08:20Z</updated>
<author>
<name>Joe Hershberger</name>
</author>
<published>2018-07-04T00:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=6ab12830921c1de4eb90a0d471bf5f4677af734c'/>
<id>urn:sha1:6ab12830921c1de4eb90a0d471bf5f4677af734c</id>
<content type='text'>
The same basic parsing was implemented in tftp and nfs, so add a helper
function to do the work once.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: When checking prerequisites, consider boot_file_name</title>
<updated>2018-07-26T19:08:19Z</updated>
<author>
<name>Joe Hershberger</name>
</author>
<published>2018-07-04T00:36:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=3a66fcb7c3dd3297d7e49185a8da2cbe77ffa431'/>
<id>urn:sha1:3a66fcb7c3dd3297d7e49185a8da2cbe77ffa431</id>
<content type='text'>
For net_boot_common, we allow the serverip to be specified as part of
the boot file name. For net commands that require serverip, include that
source as a valid specification of serverip.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Reviewed-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
</feed>
