Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp876844imm; Mon, 9 Jul 2018 12:18:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZVEqFuwq3Dt2crP3M5f1N1VZH/JKC4joreS1a9Lbgh8UTfMHkFP+l6xPZ0RUD1D9rVQ8u X-Received: by 2002:a62:b90f:: with SMTP id z15-v6mr22843560pfe.254.1531163917906; Mon, 09 Jul 2018 12:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531163917; cv=none; d=google.com; s=arc-20160816; b=Ffr433BplgK+4BjGCnzPara2f1WELP/qzX7MW4gppekHYjVInp9ieqKzHwUVXQ2Vo7 47KIP/LKEANn+B7CdcSOzExLM1rtMXroPy5dR0GjVBU3/thW+IcIlKVNTKeB2cX1vudm iBJ5EIo7oh9XhYot/i3vwH+9JHTbOVwhs/roKjFRQ9fCbisCBZOHlSUcnl19bQz7J2WL yJAMtLpl8hw2HBL6DfiPFUi77gvntYnXGYVRtvBStJkuPpWLjyB8FhOvM2G0ihe86O1V tPVzpQUNxKxYkgRnS6dGradloiye6x3j3pEQNaXJS+Z3vzIF/ZdhGMla55LoP28s60bO oFkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=kBbaxvXOy/VMAFOZLVXUMHf9rNRky2HSC/RBtsevH2g=; b=CSxRYLpyFYYDaVMiUQD/yeCCZeTnpksIJUFGyDC/81Z28onKckZ7Kw/6nD+52ObWM6 dEPdfnVnMeg6AtOftlDt7kZ/y/LAhmkc4mtPH13EfDbZ172eviLOZuPG8y3klNBD4ROG E1V4DL6s7LMB5OzFbLx2duq9/Ja8q3iFFP2+6fFmdemPDYqDx+n0d+96+u5wKJ/gNPgG I6lKPxVHDtPeWYNP5KD/lB3MKDaRfHEcRjD3cTWHJPne7pyqnAQaP8EQXcuW4dHZeKII tl8fl2z1J3zzVo51+O9sYztGnE3fA1AdWGjnx6nA9rHKCY9qy29FUYRk6Rw6myr+Qqa/ jbWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184-v6si14151951pgs.492.2018.07.09.12.18.22; Mon, 09 Jul 2018 12:18:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754574AbeGITQd (ORCPT + 99 others); Mon, 9 Jul 2018 15:16:33 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52332 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933353AbeGITQc (ORCPT ); Mon, 9 Jul 2018 15:16:32 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02C2340201CA; Mon, 9 Jul 2018 19:16:32 +0000 (UTC) Received: from localhost (ovpn-200-25.brq.redhat.com [10.40.200.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55DAA1C596; Mon, 9 Jul 2018 19:16:28 +0000 (UTC) Date: Mon, 9 Jul 2018 21:16:27 +0200 From: Jesper Dangaard Brouer To: Taeung Song Cc: Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, brouer@redhat.com Subject: Re: [PATCH v2] samples/bpf: Fix tc and ip paths in xdp2skb_meta.sh Message-ID: <20180709211627.5c715bc0@redhat.com> In-Reply-To: <20180709175121.3355-1-treeze.taeung@gmail.com> References: <20180709175121.3355-1-treeze.taeung@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 09 Jul 2018 19:16:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 09 Jul 2018 19:16:32 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'brouer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jul 2018 02:51:21 +0900 Taeung Song wrote: > The below path error can occur: > > # ./xdp2skb_meta.sh --dev eth0 --list > ./xdp2skb_meta.sh: line 61: /usr/sbin/tc: No such file or directory > > So just use command names instead of absolute paths of tc and ip. > In addition, it allow callers to redefine $TC and $IP paths > > Fixes: 36e04a2d78d9 ("samples/bpf: xdp2skb_meta shows transferring info from XDP to SKB") > Reviewed-by: Jesper Dangaard Brouer > Signed-off-by: Taeung Song Acked-by: Jesper Dangaard Brouer -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer