[PATCH] netifd: exclude 20-smp-packet-steering on bcm53xx
Rafał Miłecki
zajec5 at gmail.com
Thu Feb 2 08:06:45 PST 2023
From: Rafał Miłecki <rafal at milecki.pl>
bcm53xx comes with custom (more optimized) packet steering. A race
between two scripts was resulting in varying network performance.
Ref: fcbd39689ebf ("bcm53xx: enable & setup packet steering")
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
Is this an acceptable method to handle this?
---
package/network/config/netifd/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile
index 500daaa152..dac325004c 100644
--- a/package/network/config/netifd/Makefile
+++ b/package/network/config/netifd/Makefile
@@ -45,6 +45,10 @@ define Package/netifd/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/etc/udhcpc.user.d/
$(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
+ifneq ($(CONFIG_TARGET_bcm53xx),y)
+ $(INSTALL_DIR) $(1)/etc/hotplug.d/net
+ $(CP) ./files/20-smp-packet-steering $(1)/etc/hotplug.d/net/
+endif
endef
$(eval $(call BuildPackage,netifd))
--
2.34.1
More information about the openwrt-devel
mailing list