<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/mediatek, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-06-25T09:45:17Z</updated>
<entry>
<title>net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag</title>
<updated>2022-06-25T09:45:17Z</updated>
<author>
<name>Chen Lin</name>
</author>
<published>2022-06-08T12:46:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70b6e2beef367821f0a0e6d5270c8ca96b735ac2'/>
<id>urn:sha1:70b6e2beef367821f0a0e6d5270c8ca96b735ac2</id>
<content type='text'>
[ Upstream commit 2f2c0d2919a14002760f89f4e02960c735a316d2 ]

When rx_flag == MTK_RX_FLAGS_HWLRO,
rx_data_len = MTK_MAX_LRO_RX_LENGTH(4096 * 3) &gt; PAGE_SIZE.
netdev_alloc_frag is for alloction of page fragment only.
Reference to other drivers and Documentation/vm/page_frags.rst

Branch to use __get_free_pages when ring-&gt;frag_size &gt; PAGE_SIZE.

Signed-off-by: Chen Lin &lt;chen45464546@163.com&gt;
Link: https://lore.kernel.org/r/1654692413-2598-1-git-send-email-chen45464546@163.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry()</title>
<updated>2022-06-14T14:52:38Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2022-05-26T08:02:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4f0e57ea0d867aacffad7999527e48bd4ea9293'/>
<id>urn:sha1:b4f0e57ea0d867aacffad7999527e48bd4ea9293</id>
<content type='text'>
[ Upstream commit e7e7104e2d5ddf3806a28695670f21bef471f1e1 ]

The "fsp-&gt;location" variable comes from user via ethtool_get_rxnfc().
Check that it is valid to prevent an out of bounds read.

Fixes: 7aab747e5563 ("net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk_eth_soc: fix RX VLAN offload</title>
<updated>2021-05-22T08:40:30Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-04-23T05:20:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=849ad3fb9885f1a4f4501eff601a8c2ceb4daf66'/>
<id>urn:sha1:849ad3fb9885f1a4f4501eff601a8c2ceb4daf66</id>
<content type='text'>
[ Upstream commit 3f57d8c40fea9b20543cab4da12f4680d2ef182c ]

The VLAN ID in the rx descriptor is only valid if the RX_DMA_VTAG bit is
set. Fixes frames wrongly marked with VLAN tags.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
[Ilya: fix commit message]
Signed-off-by: Ilya Lipnitskiy &lt;ilya.lipnitskiy@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled</title>
<updated>2019-07-10T07:55:30Z</updated>
<author>
<name>Sean Wang</name>
</author>
<published>2019-06-01T00:16:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=631a183d5e72ddfbe4078a819e1566e5248e9ea1'/>
<id>urn:sha1:631a183d5e72ddfbe4078a819e1566e5248e9ea1</id>
<content type='text'>
[ Upstream commit 880c2d4b2fdfd580ebcd6bb7240a8027a1d34751 ]

Should only enable HW RX_2BYTE_OFFSET function in the case NET_IP_ALIGN
equals to 2.

Signed-off-by: Mark Lee &lt;mark-mc.lee@mediatek.com&gt;
Signed-off-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: Use hw_feature to judge if HWLRO is supported</title>
<updated>2019-07-10T07:55:30Z</updated>
<author>
<name>Sean Wang</name>
</author>
<published>2019-06-01T00:16:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=486e866e0acf77b94191a3480b2c6ed8439df15d'/>
<id>urn:sha1:486e866e0acf77b94191a3480b2c6ed8439df15d</id>
<content type='text'>
[ Upstream commit 9e4f56f1a7f3287718d0083b5cb85298dc05a5fd ]

Should hw_feature as hardware capability flags to check if hardware LRO
got support.

Signed-off-by: Mark Lee &lt;mark-mc.lee@mediatek.com&gt;
Signed-off-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: mediatek: setup proper state for disabled GMAC on the default</title>
<updated>2018-03-03T09:23:22Z</updated>
<author>
<name>Sean Wang</name>
</author>
<published>2017-12-18T09:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=757677d0da516f9f60b7a855ecbf10b73263e006'/>
<id>urn:sha1:757677d0da516f9f60b7a855ecbf10b73263e006</id>
<content type='text'>
[ Upstream commit 7352e252b5bf40d59342494a70354a2d436fd0cd ]

The current solution would setup fixed and force link of 1Gbps to the both
GMAC on the default. However, The GMAC should always be put to link down
state when the GMAC is disabled on certain target boards. Otherwise,
the driver possibly receives unexpected data from the floating hardware
connection through the unused GMAC. Although the driver had been added
certain protection in RX path to get rid of such kind of unexpected data
sent to the upper stack.

Signed-off-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net-next: ethernet: mediatek: change the compatible string</title>
<updated>2017-06-17T04:41:55Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2017-01-25T08:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cb7188295d18dcfbca1586d176f88113e2eae7f5'/>
<id>urn:sha1:cb7188295d18dcfbca1586d176f88113e2eae7f5</id>
<content type='text'>
[ Upstream commit 8b901f6bbcf12a20e43105d161bedde093431e61 ]

When the binding was defined, I was not aware that mt2701 was an earlier
version of the SoC. For sake of consistency, the ethernet driver should
use mt2701 inside the compat string as this is the earliest SoC with the
ethernet core.

The ethernet driver is currently of no real use until we finish and
upstream the DSA driver. There are no users of this binding yet. It should
be safe to fix this now before it is too late and we need to provide
backward compatibility for the mt7623-eth compat string.

Reported-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: fix fixed-link phydev leaks</title>
<updated>2016-11-30T04:17:02Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2016-11-28T18:25:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16a67eb3ec21ddb557d064a6901ec4629e96b94c'/>
<id>urn:sha1:16a67eb3ec21ddb557d064a6901ec4629e96b94c</id>
<content type='text'>
Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on initialisation errors and on uninit.

Fixes: 0c72c50f6f93 ("net-next: mediatek: add fixed-phy support")
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: get hw lro capability by the chip id instead of by the dtsi</title>
<updated>2016-10-07T01:08:08Z</updated>
<author>
<name>Nelson Chang</name>
</author>
<published>2016-10-06T11:44:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=983e1a6c95abf8058d26149a928578b720c77bce'/>
<id>urn:sha1:983e1a6c95abf8058d26149a928578b720c77bce</id>
<content type='text'>
Because hw lro started to be supported from MT7623, the proper way to check if
the feature is capable is to judge by the chip id instead of by the dtsi.

Signed-off-by: Nelson Chang &lt;nelson.chang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: get the chip id by ETHDMASYS registers</title>
<updated>2016-10-07T01:08:07Z</updated>
<author>
<name>Nelson Chang</name>
</author>
<published>2016-10-06T11:44:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b95b6d99ce3673ca8d9f7c824d82ca7912d96b34'/>
<id>urn:sha1:b95b6d99ce3673ca8d9f7c824d82ca7912d96b34</id>
<content type='text'>
The driver gets the chip id by ETHSYS_CHIPID0_3/ETHSYS_CHIPID4_7 registers
in mtk_probe().

Signed-off-by: Nelson Chang &lt;nelson.chang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
