From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5453FE0086E; Fri, 9 Jan 2015 03:48:19 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.160.179 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-yk0-f179.google.com (mail-yk0-f179.google.com [209.85.160.179]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 96F7EE004D6 for ; Fri, 9 Jan 2015 03:48:12 -0800 (PST) Received: by mail-yk0-f179.google.com with SMTP id 19so3752352ykq.10 for ; Fri, 09 Jan 2015 03:48:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=zh5moKv98zBoYZR5kEDrli35WseJf5nFL1NQ+hBecwE=; b=NE3hWumqd6fhjAXLm5gRjw4faFiHTOoeCZ0gejrCSiNKvCll29DPImv4lonGgfQ8Uh crVvHGT2WIqrEJrR3PRDkXmqjqnWozYp+SrMJd65u67iUBeV+4D7OkBj+VkCLdakWM3F fB5DHcXoaqq86dEvYbpx4/KFjhA93aGMb/vmEC03Fv2/p2hcV1BAsRX3FdyC2pa8FxMm Vt2NVc+cqMBeUJnUA6Q4RkMHqeh47RHkDngoihn7HppZrXJSagPW+wfmrPqMlLRGWyG7 sEQEyeFjXSWxfo3J1A/BYNfu8luDXBz2SwPh2M9Z16eAyLrd1UixLhKaQApTbw3CT/Gg MA8Q== MIME-Version: 1.0 X-Received: by 10.236.199.103 with SMTP id w67mr10808472yhn.37.1420804092191; Fri, 09 Jan 2015 03:48:12 -0800 (PST) Sender: otavio.salvador@gmail.com Received: by 10.170.171.132 with HTTP; Fri, 9 Jan 2015 03:48:12 -0800 (PST) In-Reply-To: References: <1420651631-8510-1-git-send-email-yocto@mindchasers.com> Date: Fri, 9 Jan 2015 09:48:12 -0200 X-Google-Sender-Auth: 7eFf5p0SV3WKHchgqmtFh0V60Gk Message-ID: From: Otavio Salvador To: "zhenhua.luo@freescale.com" Cc: "meta-freescale@yoctoproject.org" , "Sandeep.Malik@freescale.com" Subject: Re: [meta-fsl-ppc][PATCH] procps: stop disabling reverse path filtering X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 11:48:19 -0000 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 9, 2015 at 1:15 AM, zhenhua.luo@freescale.com wrote: > 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 This should be done in a init script. This is a runtime configuration and there is no reason to diverge procps package for it. I see some possible ways to address it: * make a qoriq-asfastpath-init recipe This would check the kernel, at runtime, and see if it is enabled. In case it does, it uses sysctl to set the values accordingly. * add a do_install_append *in kernel* which makes a ${sysconfdir}/sysctl.conf.d/99-as-fast.conf This makes this fine and install it when the kernel has it enabled. So in no means changing procps seems the best alternative. It is related *to the kernel* and may - and likely will - vary from one machine to another. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750