kernel: add Qualcomm NSS dataplane ethernet driver
authorRobert Marko <robimarko@gmail.com>
Sat, 20 Aug 2022 10:39:26 +0000 (12:39 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Jan 2023 11:42:23 +0000 (12:42 +0100)
commit2558e7b443d08dfdf4a93948e0e56e4f6a4c98f7
tree66fb009acc7547d3e6a7a1c31eb5ee235934dbe7
parentc608f7032576296943f6d0914f226ebcfa1cbe4f
kernel: add Qualcomm NSS dataplane ethernet driver

Qualcomm NSS-DP is as its name says Qualcomms ethernet driver for the NSS
subsystem (Networking subsystem) built-into various Qualcomm SoCs.

It has 2 modes of operation:
* Without NSS FW and rest of code required for offloading

This is the one that we will use as the amount of kernel patching required
for NSS offloading and the fact that its not upstreamable at all makes it
unusable for us.

Driver in this mode is rather basic, it currently only offers NAPI GRO
(Added by us as part of the fixup) and basically relies on the powerfull
CPU to get good throughput.

* With NSS FW and rest of code required for offloading

In this mode, driver just registers the interfaces and hooks them into
NSS-ECM to allow offloading.
This mode is not viable for use in OpenWrt due to reasons already described
above.

This driver is required for ipq807x to have wired networking until a better
one is available, so lets add the fixed-up version for 5.15 for now.

Signed-off-by: Robert Marko <robimarko@gmail.com>
16 files changed:
package/kernel/qca-nss-dp/Makefile [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0001-edma_tx_rx-support-newer-kernels-time-stamping-API.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0002-nss_dp_main-make-phy-mode-code-compatible-with-newer.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0003-Drop-_nocache-variants-of-ioremap.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0004-EDMA-Fix-NAPI-packet-counting.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0005-EDMA-Use-NAPI_POLL_WEIGHT-as-NAPI-weight.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0006-NSS-DP-fix-of_get_mac_address.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0007-NSS-DP-implement-ethernet-IOCTL-s.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0008-switchdev-remove-the-transaction-structure.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0009-switchdev-use-new-switchdev-flags.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0010-switchdev-fix-FDB-roaming.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0011-treewide-fix-confusing-printing-of-registered-netdev.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0012-gmac-syn-xgmac-silence-debug-log-on-probe.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0013-nss_dp_main-Use-a-phy-handle-property-to-connect-to-.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0014-nss-dp-edma-v1-use-NAPI-GRO-by-default.patch [new file with mode: 0644]
package/kernel/qca-nss-dp/patches/0015-nss-dp-allow-setting-netdev-name-from-DTS.patch [new file with mode: 0644]