<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/dsa/hirschmann, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-08-26T09:26:06Z</updated>
<entry>
<title>net: dsa: hellcreek: Adjust schedule look ahead window</title>
<updated>2021-08-26T09:26:06Z</updated>
<author>
<name>Kurt Kanzenbach</name>
</author>
<published>2021-08-25T13:58:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7658ed35a5f5900f0f658e375f366513f3eb781'/>
<id>urn:sha1:b7658ed35a5f5900f0f658e375f366513f3eb781</id>
<content type='text'>
Traffic schedules can only be started up to eight seconds within the
future. Therefore, the driver periodically checks every two seconds whether the
admin base time provided by the user is inside that window. If so the schedule
is started. Otherwise the check is deferred.

However, according to the programming manual the look ahead window size should
be four - not eight - seconds. By using the proposed value of four seconds
starting a schedule at a specified admin base time actually works as expected.

Fixes: 24dfc6eb39b2 ("net: dsa: hellcreek: Add TAPRIO offloading support")
Signed-off-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: Fix incorrect setting of GCL</title>
<updated>2021-08-26T09:26:05Z</updated>
<author>
<name>Kurt Kanzenbach</name>
</author>
<published>2021-08-25T13:58:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7db5ed8632c88c029254d5d74765d52614af3fd'/>
<id>urn:sha1:a7db5ed8632c88c029254d5d74765d52614af3fd</id>
<content type='text'>
Currently the gate control list which is programmed into the hardware is
incorrect resulting in wrong traffic schedules. The problem is the loop
variables are incremented before they are referenced. Therefore, move the
increment to the end of the loop.

Fixes: 24dfc6eb39b2 ("net: dsa: hellcreek: Add TAPRIO offloading support")
Signed-off-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: fix broken backpressure in .port_fdb_dump</title>
<updated>2021-08-10T12:17:22Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2021-08-10T11:19:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd391280bf4693ceddca8f19042cff42f98c1a89'/>
<id>urn:sha1:cd391280bf4693ceddca8f19042cff42f98c1a89</id>
<content type='text'>
rtnl_fdb_dump() has logic to split a dump of PF_BRIDGE neighbors into
multiple netlink skbs if the buffer provided by user space is too small
(one buffer will typically handle a few hundred FDB entries).

When the current buffer becomes full, nlmsg_put() in
dsa_slave_port_fdb_do_dump() returns -EMSGSIZE and DSA saves the index
of the last dumped FDB entry, returns to rtnl_fdb_dump() up to that
point, and then the dump resumes on the same port with a new skb, and
FDB entries up to the saved index are simply skipped.

Since dsa_slave_port_fdb_do_dump() is pointed to by the "cb" passed to
drivers, then drivers must check for the -EMSGSIZE error code returned
by it. Otherwise, when a netlink skb becomes full, DSA will no longer
save newly dumped FDB entries to it, but the driver will continue
dumping. So FDB entries will be missing from the dump.

Fix the broken backpressure by propagating the "cb" return code and
allow rtnl_fdb_dump() to restart the FDB dump with a new skb.

Fixes: e4b27ebc780f ("net: dsa: Add DSA driver for Hirschmann Hellcreek switches")
Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Acked-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: Use is_zero_ether_addr() instead of memcmp()</title>
<updated>2021-06-07T20:16:36Z</updated>
<author>
<name>Zou Wei</name>
</author>
<published>2021-06-07T02:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f07ce8e528746d477cfb301f4dc7b197ad1e2a3'/>
<id>urn:sha1:3f07ce8e528746d477cfb301f4dc7b197ad1e2a3</id>
<content type='text'>
Using is_zero_ether_addr() instead of directly use
memcmp() to determine if the ethernet address is all
zeros.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zou Wei &lt;zou_wei@huawei.com&gt;
Reviewed-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: no longer clone skb in core driver</title>
<updated>2021-04-27T21:10:15Z</updated>
<author>
<name>Yangbo Lu</name>
</author>
<published>2021-04-27T04:21:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c5416f5d4c75fe6aba56f6c2c45a070b5e7cc78'/>
<id>urn:sha1:5c5416f5d4c75fe6aba56f6c2c45a070b5e7cc78</id>
<content type='text'>
It was a waste to clone skb directly in dsa_skb_tx_timestamp().
For one-step timestamping, a clone was not needed. For any failure of
port_txtstamp (this may usually happen), the skb clone had to be freed.

So this patch moves skb cloning for tx timestamp out of dsa core, and
let drivers clone skb in port_txtstamp if they really need.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
Tested-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Acked-by: Richard Cochran &lt;richardcochran@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: no longer identify PTP packet in core driver</title>
<updated>2021-04-27T21:10:15Z</updated>
<author>
<name>Yangbo Lu</name>
</author>
<published>2021-04-27T04:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf536ea3c7eefb26082836eb7f930b293dd38345'/>
<id>urn:sha1:cf536ea3c7eefb26082836eb7f930b293dd38345</id>
<content type='text'>
Move ptp_classify_raw out of dsa core driver for handling tx
timestamp request. Let device drivers do this if they want.
Not all drivers want to limit tx timestamping for only PTP
packet.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
Tested-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Acked-by: Richard Cochran &lt;richardcochran@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: check tx timestamp request in core driver</title>
<updated>2021-04-27T21:10:15Z</updated>
<author>
<name>Yangbo Lu</name>
</author>
<published>2021-04-27T04:21:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cfd12c06cdceac094aab3f097cce24c279bfd43b'/>
<id>urn:sha1:cfd12c06cdceac094aab3f097cce24c279bfd43b</id>
<content type='text'>
Check tx timestamp request in core driver at very beginning of
dsa_skb_tx_timestamp(), so that most skbs not requiring tx
timestamp just return. And drop such checking in device drivers.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
Tested-by: Kurt Kanzenbach &lt;kurt@linutronix.de&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Acked-by: Richard Cochran &lt;richardcochran@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: Remove redundant dev_err call in hellcreek_probe()</title>
<updated>2021-03-29T01:05:31Z</updated>
<author>
<name>Guobin Huang</name>
</author>
<published>2021-03-27T10:07:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=656151aaa623c20bbfcbd5b4e43acbea8d23410f'/>
<id>urn:sha1:656151aaa623c20bbfcbd5b4e43acbea8d23410f</id>
<content type='text'>
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Guobin Huang &lt;huangguobin4@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: Report switch name and ID</title>
<updated>2021-03-23T01:02:10Z</updated>
<author>
<name>Kurt Kanzenbach</name>
</author>
<published>2021-03-22T18:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ab568e92bf8f6a359c977869dc546a23a6b5f13'/>
<id>urn:sha1:1ab568e92bf8f6a359c977869dc546a23a6b5f13</id>
<content type='text'>
Report the driver name, ASIC ID and the switch name via devlink. This is a
useful information for user space tooling.

Signed-off-by: Kurt Kanzenbach &lt;kurt@kmk-computers.de&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Vladimir Oltean &lt;olteanv@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: hellcreek: Offload bridge port flags</title>
<updated>2021-03-15T19:32:12Z</updated>
<author>
<name>Kurt Kanzenbach</name>
</author>
<published>2021-03-14T12:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db7284a6ccc4a6d7714645141f7dcee0fcb4e57d'/>
<id>urn:sha1:db7284a6ccc4a6d7714645141f7dcee0fcb4e57d</id>
<content type='text'>
The switch implements unicast and multicast filtering per port.
Add support for it. By default filtering is disabled.

Signed-off-by: Kurt Kanzenbach &lt;kurt@kmk-computers.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
