{"id":811840,"url":"http://patchwork.ozlabs.org/api/patches/811840/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1504907543-14394-4-git-send-email-mrv@mojatatu.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/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,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504907543-14394-4-git-send-email-mrv@mojatatu.com>","list_archive_url":null,"date":"2017-09-08T21:52:23","name":"[iproute2,3/3] bridge: request vlans along with link information","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"82c0b7deaf3eabab46c04b6ee7bb8c9ae094190c","submitter":{"id":70341,"url":"http://patchwork.ozlabs.org/api/people/70341/?format=json","name":"Roman Mashak","email":"mrv@mojatatu.com"},"delegate":{"id":389,"url":"http://patchwork.ozlabs.org/api/users/389/?format=json","username":"shemminger","first_name":"stephen","last_name":"hemminger","email":"shemminger@vyatta.com"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1504907543-14394-4-git-send-email-mrv@mojatatu.com/mbox/","series":[{"id":2294,"url":"http://patchwork.ozlabs.org/api/series/2294/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=2294","date":"2017-09-08T21:52:20","name":"Process IFLA_BRIDGE_VLAN_INFO tlv","version":1,"mbox":"http://patchwork.ozlabs.org/series/2294/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/811840/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/811840/checks/","tags":{},"related":[],"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=\"x8UxEro9\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xprfT5HMVz9s82\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  9 Sep 2017 07:53:05 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932759AbdIHVxD (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 8 Sep 2017 17:53:03 -0400","from mail-it0-f68.google.com ([209.85.214.68]:36219 \"EHLO\n\tmail-it0-f68.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S932323AbdIHVxC (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 8 Sep 2017 17:53:02 -0400","by mail-it0-f68.google.com with SMTP id 3so1711916ity.3\n\tfor <netdev@vger.kernel.org>; Fri, 08 Sep 2017 14:53:02 -0700 (PDT)","from mojatatu.com ([64.26.149.125])\n\tby smtp.gmail.com with ESMTPSA id\n\tg5sm1498079ioj.5.2017.09.08.14.53.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 08 Sep 2017 14:53:00 -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=0FzqQAg7FU+Yzu+OSsUbNL8I4OljOCmLuhvZ/8RQxnw=;\n\tb=x8UxEro9YHO8Zv5OUL/apj8pjUutIGZADKHx5Fm7zJJw2iQkcRvBgf/ntdKf7jTZJg\n\tsn13DS6W80YmNbmJZj6STDGvjwB6xoi7rOTQB3H7HnJe3CiLJffE9R4hK4l7gEaWuK6X\n\tnNyVhHJNIlxuxtpklx8YXF0Tu+kYIT93PbKTovepR20Hx2HRTn2ZtdF8aMeFhV/ekGtx\n\tw3xurT/M1jvKu1AxqIQp2l+rJJbe/3zPdblntzXdgrqgHDbFWARaIruYS396dJ3UKJw/\n\tocrmQm5MQSzJqjazo7PVKKo9C6djQ+oz8q9wNf6DOdYx/+LI4jG7flMva+6K7rbBA/Tl\n\thVkA==","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=0FzqQAg7FU+Yzu+OSsUbNL8I4OljOCmLuhvZ/8RQxnw=;\n\tb=qlnU4n9gjMY/a2EhikHjhCaBdRNY7+UcgmF6WhEiZSY+yX5KxMoQ+Psy4ni7MHhEHC\n\tEw+Z6xi/nNtSlNtZf9eDihAjnl6sbiUExhGuJ7ZEI2AL3ZhSG2q2YzR4ul8wzGqwRGcl\n\t57IrFzMIcgomURriKsy2OxOX+uEd4hHVIjmCrw+TxaXKHLuINK/R4WA72ekVN5Xs01D6\n\tgI1QS/4/OtjNl7kMEj+yKTSya6MavkiRUDj7NYI/us653quR+foVyQS7a0cT6scGEduc\n\tEMPGtzfEHn59vlL0QozRYoqhadjbyjuoR43qWoo/sX1TSmCmf8ruIoWI1ECsuH1iOZBw\n\tbMYw==","X-Gm-Message-State":"AHPjjUjABkBB37IAy1/kjTbrThT8DsnNRPyb51vZEo0BKwmSldJIA2L4\n\tY5pYYZOTviKrgayOYOe2w2N/iVZv","X-Google-Smtp-Source":"AOwi7QDFBsemSUh0ZNeG2PPtkkyMf5x9qrNAeCTKWQilMykaYdi8JG45U6AE7LgWAVBWEyeFpouMTg==","X-Received":"by 10.36.80.194 with SMTP id m185mr2798688itb.127.1504907581828; \n\tFri, 08 Sep 2017 14:53:01 -0700 (PDT)","From":"Roman Mashak <mrv@mojatatu.com>","To":"stephen@networkplumber.org","Cc":"netdev@vger.kernel.org, jhs@mojatatu.com, Roman Mashak <mrv@mojatatu.com>","Subject":"[PATCH iproute2 3/3] bridge: request vlans along with link\n\tinformation","Date":"Fri,  8 Sep 2017 17:52:23 -0400","Message-Id":"<1504907543-14394-4-git-send-email-mrv@mojatatu.com>","X-Mailer":"git-send-email 1.9.1","In-Reply-To":"<1504907543-14394-1-git-send-email-mrv@mojatatu.com>","References":"<1504907543-14394-1-git-send-email-mrv@mojatatu.com>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Signed-off-by: Roman Mashak <mrv@mojatatu.com>\n---\n bridge/link.c | 16 +++++++++++++---\n 1 file changed, 13 insertions(+), 3 deletions(-)","diff":"diff --git a/bridge/link.c b/bridge/link.c\nindex 60200f1..9e4206f 100644\n--- a/bridge/link.c\n+++ b/bridge/link.c\n@@ -461,9 +461,19 @@ static int brlink_show(int argc, char **argv)\n \t\t}\n \t}\n \n-\tif (rtnl_wilddump_request(&rth, PF_BRIDGE, RTM_GETLINK) < 0) {\n-\t\tperror(\"Cannon send dump request\");\n-\t\texit(1);\n+\tif (show_details) {\n+\t\tif (rtnl_wilddump_req_filter(&rth, PF_BRIDGE, RTM_GETLINK,\n+\t\t\t\t\t     (compress_vlans ?\n+\t\t\t\t\t      RTEXT_FILTER_BRVLAN_COMPRESSED :\n+\t\t\t\t\t      RTEXT_FILTER_BRVLAN)) < 0) {\n+\t\t\tperror(\"Cannon send dump request\");\n+\t\t\texit(1);\n+\t\t}\n+\t} else {\n+\t\tif (rtnl_wilddump_request(&rth, PF_BRIDGE, RTM_GETLINK) < 0) {\n+\t\t\tperror(\"Cannon send dump request\");\n+\t\t\texit(1);\n+\t\t}\n \t}\n \n \tif (rtnl_dump_filter(&rth, print_linkinfo, stdout) < 0) {\n","prefixes":["iproute2","3/3"]}