Commit Graph

10 Commits

Author SHA1 Message Date
Ansuel Smith
882ea0ee5a
nss-dp: fix confusing printing on driver probe
Net core changed implementation upstream. This results in nss-dp
printing confusing info log to the user as it does print
the netdev name before netdev is registered. Move the old log to dbg
and add an additional info log after netdev_register to give the user
feedback of correct driver probe.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-05-17 16:06:37 +02:00
Ansuel Smith
76d8866ea2
nss-dp: refresh patches from QSDK 12.0 update
Refresh patches from QSDK 12.0 update using
make package/qca-nss-dp/refresh

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-05-17 16:06:36 +02:00
Ansuel Smith
27071d79d8 qca-nss-dp: update to QSDK 12.0
Update qca-nss-dp to QSDK 12.0

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-05-15 21:44:46 +02:00
Robert Marko
1f3addc3a2 treewide: update GIT source URL-s
Codeaurora is now in archive-only mode as everything has been moved to the
Gitlab based git.codelinaro.org

So, update all of the source URL-s as well as update to the latest 11.4
commit if there is a newer one.

Refresh patches as well if any have offsets or fuzzes.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-04-04 13:11:12 +02:00
Robert Marko
293ea85ef8 nss-dp: fix FDB roaming
Try and solve the roaming issue by trying to replicate what NSS bridge
module is doing, but by utilizing switchdev FDB notifiers instead of
adding new notifiers to the bridge code.

We register a new non-blocking switchdev notifier and simply wait for
notification, and then process the SWITCHDEV_FDB_DEL_TO_DEVICE
notifications.

Those tell us that a certain FDB entry should be removed, then a VSI ID
is fetched for the physical PPE port and using that VSI ID and the
notification provided MAC adress existing FDB entry gets removed.

Mark qca-nss-dp as conflicting with the old NSS bridge module so
both cant be installed at the same time.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-03-19 18:34:58 +01:00
Robert Marko
8987699f24 nss-dp: fix switchdev for 5.15
Apply upstream switchdev changes to allow utilizing the switchdev code
on 5.15 kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-03-18 18:31:33 +01:00
Robert Marko
f1c646d45b nss-dp: mark as required for preinit
Mark the NSS-DP kmod as required for preinit, thus it gets loaded before
preinit.

This finally allows using failsafe as now the network interfaces are
available for preinit to configure them.

Its still required to set the correct interface in preinit script for
each board.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-03-14 22:46:46 +01:00
Robert Marko
43a2da39d5 qca-nss-dp: implement ethernet IOCTL-s
Since kernel 5.15 ethernet/PHY related IOCTL-s have been split from the
generic IOCTL netdev op.
So, implement the new op instead of the generic one which is considered
for private IOCTL-s only now for 5.15+.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-03-08 12:09:43 +01:00
Robert Marko
37a540ecd2 qca-nss-dp: fix of_get_mac_address()
Recently OpenWrt backported the updated of_get_mac_address()
function which returns and error code instead.

So, patch the SSDK to use it and fix the compilation error.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-08-13 20:14:48 +02:00
Robert Marko
04a30f08ee Add 11.4 NSS-DP
Add NSS-DP from QSDK11.4.

NSS-DP is the ethernet driver kernel module.
It can be used in standalone mode or with NSS offloading.

It includes patches to it in order to work under kernel 5.10.
Made for and tested only for IPQ807x.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:18:29 +02:00