[{"id":1761982,"web_url":"http://patchwork.ozlabs.org/comment/1761982/","msgid":"<20170901141639.2f77d60f@xeon-e3>","list_archive_url":null,"date":"2017-09-01T21:16:39","subject":"Re: [PATCH iproute2 0/2] fix \"ip link show dev ...\" for NICs with\n\tmany VFs","submitter":{"id":21389,"url":"http://patchwork.ozlabs.org/api/people/21389/","name":"Stephen Hemminger","email":"stephen@networkplumber.org"},"content":"On Fri,  1 Sep 2017 18:39:06 +0200 (CEST)\nMichal Kubecek <mkubecek@suse.cz> wrote:\n\n> Two of our customers recently encountered problems with processing of large\n> messages produced by kernel in response to \"ip link show\" for NICs with\n> many (120-128) virtual functions. While some of them have been already\n> addressed in recent versions of iproute2, some still persist.\n> \n> Patch 1 adds check to handle the case when a message fits into the\n> buffer in rtnl_talk() but not into the buffer in iplink_get().\n> \n> Patch 2 increases the buffer size in iplink_get() to suffice even for\n> NICs with 128 VFs. \n> \n> Note: after applying patch 2, patch 1 seems useless as both buffers have\n> the same size so that the check cannot actually trigger. However, as we\n> cannot guarantee they will always stay the same, I believe the check\n> should still be added.\n> \n> Michal Kubecek (2):\n>   iplink: check for message truncation in iplink_get()\n>   iplink: double the buffer size also in iplink_get()\n> \n>  ip/iplink.c | 7 ++++++-\n>  1 file changed, 6 insertions(+), 1 deletion(-)\n> \n\nLooks like the best set of solutions to the kernel side API issue.\nApplied, thanks Michal.","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=networkplumber-org.20150623.gappssmtp.com\n\theader.i=@networkplumber-org.20150623.gappssmtp.com\n\theader.b=\"Q7/2AXey\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkXB11WR0z9sPk\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  2 Sep 2017 07:16:57 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752557AbdIAVQn (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 1 Sep 2017 17:16:43 -0400","from mail-pf0-f173.google.com ([209.85.192.173]:33360 \"EHLO\n\tmail-pf0-f173.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752392AbdIAVQl (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 1 Sep 2017 17:16:41 -0400","by mail-pf0-f173.google.com with SMTP id n73so3692913pfj.0\n\tfor <netdev@vger.kernel.org>; Fri, 01 Sep 2017 14:16:41 -0700 (PDT)","from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240])\n\tby smtp.gmail.com with ESMTPSA id\n\tx70sm1425634pfe.70.2017.09.01.14.16.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 01 Sep 2017 14:16:41 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=LpMIKe3rVR/IUcP1ZaGDFSpgoszS3O2sd4Ap4dkPZzU=;\n\tb=Q7/2AXeyqzIQ4dO1Puotr0BIYb1pNq+jxWH2F7CN2V0wu7gnsSYINqdNc80Z1LoNm/\n\tprEKhyhog/jVmALmFCaz3X17hI4IRoH+VCGDPEIwgMKmZ2tVKxWDoZFDuQ37NeO7ruSb\n\tYX9M3bwHPBu7Ai54dm6H1OqtYx8Nk/q9VbMG00b1CpytivRSm9NIvzUout6VLsN7Yik7\n\tq2MeXcf0ofjFn/DKJENylkhpJPtDW/AqLkaK1htw3eDUrGPA2epP9elijuoGZoIUfNCV\n\to35Kyo1f39nq1Y5iQg8WkIpwuqS5HBMElbrr5XJ3m8uCa5QRivRYbsE4o1cdiHRKNsNM\n\t8DrQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=LpMIKe3rVR/IUcP1ZaGDFSpgoszS3O2sd4Ap4dkPZzU=;\n\tb=KZWraQTeY0cJooQpIhARHMm2LlxAEKR2eTEOKPjsxwf9KaWmQ8PbHLOYVfKbrwBSUO\n\ttTE2I75I6y3Kw0dYrN4mjbWQt+l/uQ3ql6ve+S5PIRtUlItczeCEmcC76eHMEZoCDsEP\n\tv4pQpvU0830V2ko3o5xYS/aw9VUdOY6OfD8pHHKq43Z7nkei5l5Me3t8Hw1TLNREAm4N\n\tLzS4NL/1IgX9K94TfBWDRkA+ONrP+E+SEagubmnH0pHEXpVC45UaV/UhBAEWMLEs0DYe\n\tfXuKtYH8U5Q4GoQzkKZ5IWIOzVE7pNZUk3Eiff49t6kfs1xHYCbQHnr3/T0ilmv5E2TY\n\tBs1Q==","X-Gm-Message-State":"AHPjjUgZVvYfwJNmitu3F6Tu6MLvW6VKzOOGjfedKkqVpImQy7gCE9sz\n\tkmbKjeVzVD4KJFuA","X-Google-Smtp-Source":"ADKCNb7Pd/IW7mfVyEVMpGbz+SqNFRt0MHMQcA8DmgkarJrn6zc+fgVV5tDEmjN6jGS19TCPdqBvGA==","X-Received":"by 10.98.64.71 with SMTP id n68mr3657967pfa.144.1504300601200;\n\tFri, 01 Sep 2017 14:16:41 -0700 (PDT)","Date":"Fri, 1 Sep 2017 14:16:39 -0700","From":"Stephen Hemminger <stephen@networkplumber.org>","To":"Michal Kubecek <mkubecek@suse.cz>","Cc":"netdev@vger.kernel.org, linux-kernel@vger.kernel.org","Subject":"Re: [PATCH iproute2 0/2] fix \"ip link show dev ...\" for NICs with\n\tmany VFs","Message-ID":"<20170901141639.2f77d60f@xeon-e3>","In-Reply-To":"<cover.1504283683.git.mkubecek@suse.cz>","References":"<cover.1504283683.git.mkubecek@suse.cz>","MIME-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","Content-Transfer-Encoding":"7bit","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}}]