[meta-freescale] [meta-fsl-ppc][PATCH] procps: stop disabling reverse path filtering

zhenhua.luo at freescale.com zhenhua.luo at freescale.com
Thu Jan 8 19:15:45 PST 2015


Hi Bob, 

It would be better if ASF enablement can be checked dynamically, then the rp_filter option can be enabled/disabled automatically. 

Maybe we can check the AS_FASTPATH option enablement in ${STAGING_KERNEL_DIR}/.config. 
	if [ "`grep "CONFIG_AS_FAST=y" ${STAGING_KERNEL_DIR}/.config`" ]; then
		for keyword in
			net.ipv4.conf.default.rp_filter \
			net.ipv4.conf.all.rp_filter \
		do
			sed -i 's,'"$keyword"'=.*,'"$keyword"'=0,' ${D}${sysconfdir}/sysctl.conf
		done
	fi


Best Regards,

Zhenhua

> -----Original Message-----
> From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-
> bounces at yoctoproject.org] On Behalf Of Bob Cochran
> Sent: Thursday, January 08, 2015 1:27 AM
> To: meta-freescale at yoctoproject.org
> Subject: [meta-freescale] [meta-fsl-ppc][PATCH] procps: stop disabling reverse
> path filtering
> 
> The procps append file that overwrites sysctl.conf and disables reverse path
> filtering isn't needed in the default QorIQ configuration.  It is only needed if
> Application Specific Fastpath is enabled in the linux-qoriq kernel.
> 
> Signed-off-by: Bob Cochran <yocto at mindchasers.com>
> ---
>  recipes-extended/procps/procps_%.bbappend |    9 ---------
>  1 file changed, 9 deletions(-)
>  delete mode 100644 recipes-extended/procps/procps_%.bbappend
> 
> diff --git a/recipes-extended/procps/procps_%.bbappend b/recipes-
> extended/procps/procps_%.bbappend
> deleted file mode 100644
> index face0cc..0000000
> --- a/recipes-extended/procps/procps_%.bbappend
> +++ /dev/null
> @@ -1,9 +0,0 @@
> -do_install_append_qoriq-ppc() {
> -    for keyword in \
> -        net.ipv4.conf.default.rp_filter \
> -        net.ipv4.conf.all.rp_filter \
> -    ; do
> -        sed -i 's,'"$keyword"'=.*,'"$keyword"'=0,' ${D}${sysconfdir}/sysctl.conf
> -    done
> -}
> -
> --
> 1.7.9.5
> 
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list