mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
2558e7b443
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>
30 lines
1004 B
Diff
30 lines
1004 B
Diff
From 5da62ba19f554bf437752a44360fb5ae9f1a7f5e Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Tue, 8 Mar 2022 10:48:32 +0100
|
|
Subject: [PATCH] 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>
|
|
---
|
|
nss_dp_main.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/nss_dp_main.c
|
|
+++ b/nss_dp_main.c
|
|
@@ -532,7 +532,11 @@ static const struct net_device_ops nss_d
|
|
.ndo_set_mac_address = nss_dp_set_mac_address,
|
|
.ndo_validate_addr = eth_validate_addr,
|
|
.ndo_change_mtu = nss_dp_change_mtu,
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
|
.ndo_do_ioctl = nss_dp_do_ioctl,
|
|
+#else
|
|
+ .ndo_eth_ioctl = nss_dp_do_ioctl,
|
|
+#endif
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0))
|
|
.ndo_bridge_setlink = switchdev_port_bridge_setlink,
|