<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/net/ethernet/marvell/prestera, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/net/ethernet/marvell/prestera?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/net/ethernet/marvell/prestera?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-11-09T01:19:23Z</updated>
<entry>
<title>net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()</title>
<updated>2022-11-09T01:19:23Z</updated>
<author>
<name>Zhengchao Shao</name>
<email>shaozhengchao@huawei.com</email>
</author>
<published>2022-11-08T02:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=519b58bbfa825f042fcf80261cc18e1e35f85ffd'/>
<id>urn:sha1:519b58bbfa825f042fcf80261cc18e1e35f85ffd</id>
<content type='text'>
When prestera_sdma_switch_init() failed, the memory pointed to by
sw-&gt;rxtx isn't released. Fix it. Only be compiled, not be tested.

Fixes: 501ef3066c89 ("net: marvell: prestera: Add driver for Prestera family ASIC devices")
Signed-off-by: Zhengchao Shao &lt;shaozhengchao@huawei.com&gt;
Reviewed-by: Vadym Kochan &lt;vadym.kochan@plvision.eu&gt;
Link: https://lore.kernel.org/r/20221108025607.338450-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: fix a couple NULL vs IS_ERR() checks</title>
<updated>2022-10-13T16:33:57Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2022-10-12T15:00:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=30e9672ac37f7b8b9e1379d25882798d8e76a96f'/>
<id>urn:sha1:30e9672ac37f7b8b9e1379d25882798d8e76a96f</id>
<content type='text'>
The __prestera_nexthop_group_create() function returns NULL on error
and the prestera_nexthop_group_get() returns error pointers.  Fix these
two checks.

Fixes: 0a23ae237171 ("net: marvell: prestera: Add router nexthops ABI")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Link: https://lore.kernel.org/r/Y0bWq+7DoKK465z8@kili
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: prestera: span: do not unbind things things that were never bound</title>
<updated>2022-10-11T00:59:53Z</updated>
<author>
<name>Maksym Glubokiy</name>
<email>maksym.glubokiy@plvision.eu</email>
</author>
<published>2022-10-06T19:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=32391e646a71fc4cca4a74740bf401423d7a926d'/>
<id>urn:sha1:32391e646a71fc4cca4a74740bf401423d7a926d</id>
<content type='text'>
Fixes: 13defa275eef ("net: marvell: prestera: Add matchall support")
Signed-off-by: Maksym Glubokiy &lt;maksym.glubokiy@plvision.eu&gt;
Link: https://lore.kernel.org/r/20221006190600.881740-1-maksym.glubokiy@plvision.eu
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>prestera: matchall: do not rollback if rule exists</title>
<updated>2022-10-07T07:48:34Z</updated>
<author>
<name>Serhiy Boiko</name>
<email>serhiy.boiko@plvision.eu</email>
</author>
<published>2022-10-06T19:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=fb4a5dfca0f0a027e2d89be00e53adb2827943f6'/>
<id>urn:sha1:fb4a5dfca0f0a027e2d89be00e53adb2827943f6</id>
<content type='text'>
If you try to create a 'mirror' ACL rule on a port that already has a
mirror rule, prestera_span_rule_add() will fail with EEXIST error.

This forces rollback procedure which destroys existing mirror rule on
hardware leaving it visible in linux.

Add an explicit check for EEXIST to prevent the deletion of the existing
rule but keep user seeing error message:

  $ tc filter add dev sw1p1 ... skip_sw action mirred egress mirror dev sw1p2
  $ tc filter add dev sw1p1 ... skip_sw action mirred egress mirror dev sw1p3
  RTNETLINK answers: File exists
  We have an error talking to the kernel

Fixes: 13defa275eef ("net: marvell: prestera: Add matchall support")
Signed-off-by: Serhiy Boiko &lt;serhiy.boiko@plvision.eu&gt;
Signed-off-by: Maksym Glubokiy &lt;maksym.glubokiy@plvision.eu&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2022-10-04T00:44:18Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2022-10-04T00:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e52f7c1ddf3e47243c330923ea764e7ccfbe99f7'/>
<id>urn:sha1:e52f7c1ddf3e47243c330923ea764e7ccfbe99f7</id>
<content type='text'>
Merge in the left-over fixes before the net-next pull-request.

Conflicts:

drivers/net/ethernet/mediatek/mtk_ppe.c
  ae3ed15da588 ("net: ethernet: mtk_eth_soc: fix state in __mtk_foe_entry_clear")
  9d8cb4c096ab ("net: ethernet: mtk_eth_soc: add foe_entry_size to mtk_eth_soc")
https://lore.kernel.org/all/6cb6893b-4921-a068-4c30-1109795110bb@tessares.net/

kernel/bpf/helpers.c
  8addbfc7b308 ("bpf: Gate dynptr API behind CAP_BPF")
  5679ff2f138f ("bpf: Move bpf_loop and bpf_for_each_map_elem under CAP_BPF")
  8a67f2de9b1d ("bpf: expose bpf_strtol and bpf_strtoul to all program types")
https://lore.kernel.org/all/20221003201957.13149-1-daniel@iogearbox.net/

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: Propagate nh state from hw to kernel</title>
<updated>2022-10-04T00:14:53Z</updated>
<author>
<name>Yevhen Orlov</name>
<email>yevhen.orlov@plvision.eu</email>
</author>
<published>2022-10-01T09:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ae15ed6e40c9623e3a295a76cb164b4d3564a20b'/>
<id>urn:sha1:ae15ed6e40c9623e3a295a76cb164b4d3564a20b</id>
<content type='text'>
We poll nexthops in HW and call for each active nexthop appropriate
neighbour.

Also we provide implicity neighbour resolving.
For example, user have added nexthop route:
  # ip route add 5.5.5.5 via 1.1.1.2
But neighbour 1.1.1.2 doesn't exist. In this case we will try to call
neigh_event_send, even if there is no traffic.
This is useful, when you have add route, which will be used after some
time but with a lot of traffic (burst). So, we has prepared, offloaded
route in advance.

Co-developed-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Signed-off-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Co-developed-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Yevhen Orlov &lt;yevhen.orlov@plvision.eu&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: Add neighbour cache accounting</title>
<updated>2022-10-04T00:14:53Z</updated>
<author>
<name>Yevhen Orlov</name>
<email>yevhen.orlov@plvision.eu</email>
</author>
<published>2022-10-01T09:34:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=396b80cb5cc8006a488ea25ef84fae245dc1b43c'/>
<id>urn:sha1:396b80cb5cc8006a488ea25ef84fae245dc1b43c</id>
<content type='text'>
Move forward and use new PRESTERA_FIB_TYPE_UC_NH to provide basic
nexthop routes support.
Provide deinitialization sequence for all created router objects.

Limitations:
- Only "local" and "main" tables supported
- Only generic interfaces supported for router (no bridges or vlans)

Co-developed-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Signed-off-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Co-developed-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Yevhen Orlov &lt;yevhen.orlov@plvision.eu&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: add stub handler neighbour events</title>
<updated>2022-10-04T00:14:53Z</updated>
<author>
<name>Yevhen Orlov</name>
<email>yevhen.orlov@plvision.eu</email>
</author>
<published>2022-10-01T09:34:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=8b1ef4911a41c18df730eb913129f4259a98dab9'/>
<id>urn:sha1:8b1ef4911a41c18df730eb913129f4259a98dab9</id>
<content type='text'>
Actual handler will be added in next patches

Co-developed-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Signed-off-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Co-developed-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Yevhen Orlov &lt;yevhen.orlov@plvision.eu&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: Add heplers to interact with fib_notifier_info</title>
<updated>2022-10-04T00:14:53Z</updated>
<author>
<name>Yevhen Orlov</name>
<email>yevhen.orlov@plvision.eu</email>
</author>
<published>2022-10-01T09:34:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=04f24a1e6de6e9cf9358ed5fe6677bc56dbd11fa'/>
<id>urn:sha1:04f24a1e6de6e9cf9358ed5fe6677bc56dbd11fa</id>
<content type='text'>
This will be used to implement nexthops related logic in next patches.
Also try to keep ipv4/6 abstraction to be able to reuse helpers for ipv6
in the future.

Co-developed-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Signed-off-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Co-developed-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Yevhen Orlov &lt;yevhen.orlov@plvision.eu&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: marvell: prestera: Add length macros for prestera_ip_addr</title>
<updated>2022-10-04T00:14:53Z</updated>
<author>
<name>Yevhen Orlov</name>
<email>yevhen.orlov@plvision.eu</email>
</author>
<published>2022-10-01T09:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=59b44ea8aa56cec1c6b29019bf00b1f9474a9c51'/>
<id>urn:sha1:59b44ea8aa56cec1c6b29019bf00b1f9474a9c51</id>
<content type='text'>
Add macros to determine IP address length (internal driver types).
This will be used in next patches for nexthops logic.

Co-developed-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Signed-off-by: Taras Chornyi &lt;tchornyi@marvell.com&gt;
Co-developed-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Oleksandr Mazur &lt;oleksandr.mazur@plvision.eu&gt;
Signed-off-by: Yevhen Orlov &lt;yevhen.orlov@plvision.eu&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
</feed>
