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: [email protected] [mailto:meta-freescale-
> [email protected]] On Behalf Of Bob Cochran
> Sent: Thursday, January 08, 2015 1:27 AM
> To: [email protected]
> 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 <[email protected]>
> ---
>  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
> [email protected]
> https://lists.yoctoproject.org/listinfo/meta-freescale
-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to