[PATCH] netifd: exclude 20-smp-packet-steering on bcm53xx

John Crispin john at phrozen.org
Thu Feb 2 10:56:43 PST 2023


northstar could ship a uci-defaults script to populate UCI for line 37 -->

https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering;h=8a86bf75f60040e97a7779628afb0993aee87c50;hb=HEAD#l37

On 02.02.23 17:06, Rafał Miłecki wrote:
> 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))



More information about the openwrt-devel mailing list