Commit Graph

122 Commits

Author SHA1 Message Date
Ansuel Smith
dff684e695 nss-drv: remove mismatched NSS FW support
There is no need for the mismatched 11.3 FW support on 11.4
SPF drivers, so drop the support.

This reverts commit f806309bbe.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-09-16 18:25:20 +02:00
Robert Marko
e2d6646754 nss-firmware: update to SPF 11.4
Qualcomm has finally made the firmware publicly
available, so lets update to it.

This will allow removing the compatibility patches.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-09-16 18:25:20 +02: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
28e62b1718 qca-ssdk: 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:32 +02:00
Zhijun You
47bcf2b275 qca-ssdk: disable stack protector
add -fno-stack-protector to EXTRACFLAGS
so it can be compiled with GCC10

Signed-off-by: Zhijun You <hujy652@gmail.com>
2021-07-18 11:00:55 +02:00
Dirk Buchwalder
ce77000019 qca-nss-ecm: resolve the cpu high load regarding ecm
If using ECM, cpu load goes up (around 1.0) and stucks there.
This is due to using uninterruptible sleep function,
the patch changes this to interruptible sleep function.

Signed-off-by: Dirk Buchwalder buchwalder@posteo.de
2021-06-27 19:27:11 +02:00
Robert Marko
fc7b92be0f SSDK: disable parallel build
Actual code is being built in single thread mode as
SSDK enforces it, this will just cause OpenWrt buildroot
to fail sometimes as the headers it tries to use are not
yet installed by the SSDK.

So, disable parallel build as the time saving was minor
and it caused issues with parallel building.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-06-25 18:35:16 +02:00
Tiago Gaspar
884bf7fb08 qca-nss-clients: fix dependency issue
This commit fixes a dependency issue that was not allowing
qca-nss-clients to show up in menuconfig unless kmod-ppp was selected


Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
2021-06-22 12:19:15 +02:00
Tiago Gaspar
82e0e83f35 qca-nss-ecm: fix dependency issue
This commit fixes a dependency issue that was not allowing qca-nss-ecm
to show up in menuconfig unless kmod-ppp was selected


Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
2021-06-21 15:18:03 +02:00
Robert Marko
4667f4acb4 nss-drv: fix NSS FW coredump
DMA functions used for NSS FW coredump are called
with NULL being passed instead of device pointer.
This will obviously cause a NULL pointer exception
and crash the kernel.

So, fix it by passing proper device structure pointer.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-06-09 12:09:49 +02:00
Robert Marko
73460a73af nss-ecm: correct physdev iptables dependency
By accident ECM depended twice on kmod-ipt-physdev
instead of depending on iptables-mod-physdev.

So fix this by replacing the duplicate dependency with
iptables-mod-physdev.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-06-06 19:41:24 +02:00
Robert Marko
beb7dc84b5 nss-ecm: enable PPoE offloading
Enable the required PPoE interface and add dependency
to the PPoE kernel module.

Note that this requires kernel patches as well as the
nss-clients PPoE client package.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-31 23:32:24 +02:00
Robert Marko
c688f3e24d Add 11.4 NSS PPoE client
This adds the nss-clients PPoE client from QSDK11.4.

It enables PPoE offloading via NSS ECM.
Kernel patches are required.
Made for and tested on IPQ807x.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-31 23:29:22 +02:00
Robert Marko
ff1f06d815 Add 11.4 NSS-ECM
Add NSS-ECM from QSDK11.4

NSS-ECM is the main package for NSS offloading.
It provides various hooks, classifiers and calls to
offload or not.

It includes patches to make it run on kernel 5.10.
Made for IPQ807x.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 20:34:01 +02:00
Ansuel Smith
f806309bbe
Add Initial support for mismatched NSS firmware version
Permit to use mismatched NSS firmware version with higher QSDK version.
As we currently have 11.3 public NSS firmware, set this version by default.
This can be expanded later to support previous NSS version or to use newer
QSDK version if they are still compatible with basic NSS firmware loading
and handling.
Tested feature and working for now are basic ipv4 and ipv6 handling, virt_if
and wifili (wifi offload).

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-05-30 19:03:03 +02:00
Robert Marko
cb9191c2ab Add NSS firmware package
NSS firmware is a package to install the required NSS
firmware when using NSS-DRV and other drivers.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:22:39 +02:00
Robert Marko
4ae9a73646 Add 11.4 NSS-DRV
Add NSS-DRV from QSDK11.4.

NSS-DRV is the core NSS driver providing NSS firmware
loading and communication between NSS cores and
other NSS offloading drivers.

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

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:19:16 +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
Robert Marko
d51a5ea873 Add 11.4 SSDK shell
Add SSDK shell from QSDK 11.4

SSDK shell is a companion application for the SSDK.
It provides manual tweaking and debug features.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:16:34 +02:00
Robert Marko
3a9bb2b4b9 Add 11.4 SSDK
Add SSDK package from QSDK 11.4.
SSDK is the package/driver providing:
* Switch
* PHY
* Partial PPE

It includes patches to it in order to work under kernel 5.10.
Patches are made for and test on IPQ807x only.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:13:16 +02:00
Robert Marko
fe31540b66 README: Update
Update README with some details.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2021-05-30 18:10:46 +02:00
Robert Marko
f80898dd7d
Initial commit 2021-05-30 17:58:24 +02:00