{"id":806731,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806731/?format=json","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.0/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20170828190738.26829-3-aring@mojatatu.com>","date":"2017-08-28T19:07:36","name":"[iproute2,2/4] tc: m_ife: print IEEE ethertype format","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"1b3b188c8e385ac4450c9ffbbb1d5911c8e6b1b0","submitter":{"id":72245,"url":"http://patchwork.ozlabs.org/api/1.0/people/72245/?format=json","name":"Alexander Aring","email":"aring@mojatatu.com"},"delegate":{"id":389,"url":"http://patchwork.ozlabs.org/api/1.0/users/389/?format=json","username":"shemminger","first_name":"stephen","last_name":"hemminger","email":"shemminger@vyatta.com"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170828190738.26829-3-aring@mojatatu.com/mbox/","series":[{"id":244,"url":"http://patchwork.ozlabs.org/api/1.0/series/244/?format=json","date":"2017-08-28T19:07:34","name":"tc: m_ife: handle IFE ethertype value","version":1,"mbox":"http://patchwork.ozlabs.org/series/244/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806731/checks/","tags":{},"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=mojatatu-com.20150623.gappssmtp.com\n\theader.i=@mojatatu-com.20150623.gappssmtp.com\n\theader.b=\"J6+Gkfvr\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xh1X547GDz9sNn\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 05:08:53 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751663AbdH1TIv (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 28 Aug 2017 15:08:51 -0400","from mail-io0-f196.google.com ([209.85.223.196]:36231 \"EHLO\n\tmail-io0-f196.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751597AbdH1TIs (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 28 Aug 2017 15:08:48 -0400","by mail-io0-f196.google.com with SMTP id v96so1097070ioi.3\n\tfor <netdev@vger.kernel.org>; Mon, 28 Aug 2017 12:08:48 -0700 (PDT)","from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id\n\tm192sm40144itb.14.2017.08.28.12.08.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 28 Aug 2017 12:08:46 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=mojatatu-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=an8QXsqC+wE9Hy+iM5mkKFXIqnu+v2IfopWvfyLiUsw=;\n\tb=J6+GkfvrHgzB8VPx0WpqbZq33HBnzhmhBI2HiXcPdCTydLxxo06tWvwEmSurSwvo2p\n\tBdVIsA9ClrS51QxE4ZMNe+HNI5Ko3vTZqMaeq64PsT9Q7BROLKTpWmvC8YW/TOMkkTxt\n\trpIRAv7q+IYW46SMpFutw2JNuBrPOCABIIoE7Ckho7kYF3DMrE4jxq02MnOAsPf/Ip9f\n\tC0pJYnPFt9HTv1S1QuoWE7Z1RjlGDIqcKxsKS+/P8FE+ewhNTVSmEibr2Ol0vY7C9Jrw\n\tIJggDNBwlSc2K5g7TUrBcLboEj1KuAlewrazDU0tEL64Lo+uq29itPKekG5tp9UgHc+3\n\t+W9Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=an8QXsqC+wE9Hy+iM5mkKFXIqnu+v2IfopWvfyLiUsw=;\n\tb=Y8aJrkyJlYiHuuHvr8swZSIwkk9L6+37YObvBWK+EDRbnzfDMaSoBL67cgmnioCBon\n\t96KwWaaoPoyS6YIdVWVoP6O4XBVEsN3FJdegiysM+tT0wVHS669MJAbA84Cd3QJsJq3Z\n\tTOYHMlMptVLLk5p/TmvJi3Pp16KpEpHj5ELbi8uQWQra8DLfD7qi5UJbTHtFOzS17pSM\n\tG8YlPwwIvERcdZRoSIyAagpFjWxcy+i7kwD9vMIAiM1lfIbA7yLDHqyJwhK0kdeeIMcV\n\t5LaxI0lBhqjPXvC5uDfsAGeRRe+hIDCwvIK//f2AdxDBHVle13rz6oCVLfvsiUsjqo8r\n\tyXTA==","X-Gm-Message-State":"AHYfb5jQpG7tkfCrQXV/H8vXGZjc+TLA9zi8kMz2w/2PcIBC5ckjJ+5E\n\t1UHPYQ3H1YYigpaT","X-Received":"by 10.107.3.82 with SMTP id 79mr599259iod.10.1503947327492;\n\tMon, 28 Aug 2017 12:08:47 -0700 (PDT)","From":"Alexander Aring <aring@mojatatu.com>","To":"jhs@mojatatu.com","Cc":"yotamg@mellanox.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,\n\tnetdev@vger.kernel.org, Alexander Aring <aring@mojatatu.com>","Subject":"[PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format","Date":"Mon, 28 Aug 2017 15:07:36 -0400","Message-Id":"<20170828190738.26829-3-aring@mojatatu.com>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170828190738.26829-1-aring@mojatatu.com>","References":"<20170828190738.26829-1-aring@mojatatu.com>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"This patch uses the usually IEEE format to display an ethertype which is\n4-digits and every digit in upper case.\n\nSigned-off-by: Alexander Aring <aring@mojatatu.com>\n---\n tc/m_ife.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/tc/m_ife.c b/tc/m_ife.c\nindex e05e2276..7b57130e 100644\n--- a/tc/m_ife.c\n+++ b/tc/m_ife.c\n@@ -125,7 +125,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,\n \t\t\tNEXT_ARG();\n \t\t\tif (get_u16(&ife_type, *argv, 0))\n \t\t\t\tinvarg(\"ife type is invalid\", *argv);\n-\t\t\tfprintf(stderr, \"IFE type 0x%x\\n\", ife_type);\n+\t\t\tfprintf(stderr, \"IFE type 0x%04X\\n\", ife_type);\n \t\t\tuser_type = 1;\n \t\t} else if (matches(*argv, \"dst\") == 0) {\n \t\t\tNEXT_ARG();\n","prefixes":["iproute2","2/4"]}