From patchwork Wed Apr 8 15:27:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 459333 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A7B7B1401DA for ; Thu, 9 Apr 2015 01:39:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=HvcIHZXy; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754202AbbDHPjx (ORCPT ); Wed, 8 Apr 2015 11:39:53 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:33394 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbbDHPjw (ORCPT ); Wed, 8 Apr 2015 11:39:52 -0400 Received: by layy10 with SMTP id y10so69039933lay.0 for ; Wed, 08 Apr 2015 08:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=sHCEYF4JTDF6wsGfRQJOWypFy0SzTXJLSX6q97gCYSY=; b=HvcIHZXyZ6wG7bfan00GVjzkXa+sHcd4snIR4vbzV2snbVSJbQLxeHZapP45VJ/LSv h+/bwsKEzGSRY6rnb8EZ3pLSBd8XApjxJkslCpJvxq2+MaqOGoTuEWKa4Ildvdvv65PR QzGsV1ObPvE7yqxs+DRe2WapxPr/r4QwagwLSi4e8Pem0fWURlOxGamwqBIWhpEziZ+m JUPhIp3sZExITsPcL6ZJu7AknqWA7g88cdyfEYnMeNSSsmXi8TZ90TD/FlDo3bQy6/b+ ilbgC28KLRo2Q5r0heN7eKF457S8TGTW4MDiMXI+WNVZl8ZI1HIi4glWUBZp+iL+1UyD zaaA== X-Received: by 10.112.236.40 with SMTP id ur8mr23644801lbc.18.1428507590811; Wed, 08 Apr 2015 08:39:50 -0700 (PDT) Received: from angus-think.wlc.globallogic.com ([195.234.75.250]) by mx.google.com with ESMTPSA id m1sm2569731lbg.36.2015.04.08.08.39.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Apr 2015 08:39:49 -0700 (PDT) From: Vadim Kochan To: netdev@vger.kernel.org Cc: Vadim Kochan Subject: [PATCH iproute2] man tc: Add description about class name option Date: Wed, 8 Apr 2015 18:27:43 +0300 Message-Id: <1428506863-8208-1-git-send-email-vadim4j@gmail.com> X-Mailer: git-send-email 2.3.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vadim Kochan Signed-off-by: Vadim Kochan --- man/man8/tc.8 | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/man/man8/tc.8 b/man/man8/tc.8 index ea4d445..434fe6c 100644 --- a/man/man8/tc.8 +++ b/man/man8/tc.8 @@ -62,7 +62,9 @@ DEV .ti 8 .IR OPTIONS " := {" \fB[ -force ] -b\fR[\fIatch\fR] \fB[ filename ] \fR| -\fB[ \fB-n\fR[\fIetns\fR] name \fB] \fR} +\fB[ \fB-n\fR[\fIetns\fR] name \fB] \fR| +\fB[ \fB-nm \fR| \fB-nam\fR[\fIes\fR] \fB] \fR| +\fB[ \fR{ \fB-cf \fR| \fB-c\fR[\fIonf\fR] \fR} \fB[ filename ] \fB] \fR} .ti 8 .IR FORMAT " := {" @@ -463,6 +465,11 @@ to .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | " .BR help " }" +.TP +.BR "\-cf" , " \-conf " +specifies path to the config file. This option is used in conjuction with other options (e.g. +.BR -nm ")." + .SH FORMAT The show command has additional formatting options: @@ -494,6 +501,47 @@ option was specified. Classes can be filtered only by .BR "dev" option. +.TP +.BR "\-nm" , " \-name" +resolve class name from +.B /etc/iproute2/tc_cls +file or from file specified by +.B -cf +option. This file is just a mapping of +.B classid +to class name: + +.RS 10 +# Here is comment +.RE +.RS 10 +1:40 voip # Here is another comment +.RE +.RS 10 +1:50 web +.RE +.RS 10 +1:60 ftp +.RE +.RS 10 +1:2 home +.RE + +.RS +.B tc +will not fail if +.B -nm +was specified without +.B -cf +option but +.B /etc/iproute2/tc_cls +file does not exist, which makes it possible to pass +.B -nm +option for creating +.B tc +alias. +.RE + .SH "EXAMPLES" .PP tc -g class show dev eth0