Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp527684yba; Mon, 1 Apr 2019 11:06:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVWsf6E+C3SLa14FgrqcvlLBnuf2z43LrO2luonUTOj+bQpkaMdL5UukZ2pycDVa+Q5dBn X-Received: by 2002:a17:902:a704:: with SMTP id w4mr7812498plq.51.1554141996853; Mon, 01 Apr 2019 11:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554141996; cv=none; d=google.com; s=arc-20160816; b=ougwG7TmUZh9rdFEEhx8jBz4g6pNe1vvD3dICpNgyXTNU4/wPVLktkJnZwM5FDK2HT wBGaphErsaufJQS7b3kHob+GwyvSl5Z+DMFvtVkeiLO33xF0OVb115m0R5Sl8lJiMufk Q6ZHjYeMiP8O+7ykMtukUzd7bdAb6Uqq8P0YWCumKK1P0nH40+ksisTLxNfVz7Iu8+Tp /X1ZZOaB27zt7vnaRf/QWRIMTrdI/TtAsvSurJ5mpDG6R71pPMoe/7AKQooURKm2j8Ty X9655S1Uywrx3RPqer20Qx6S41RJLb+OzkX6yEKUaMXvn6HBrOHhxbkkSDzkBA6XYb6n BzBg== 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:from:subject:cc:to:message-id:date; bh=uEDeiZDHAuORnr7R3DxrUk05ot0TnqZxoFmyC69DRkw=; b=Y7mtqmGbnwQ6wPsMvkNuXql4FCdGRSxiDHSUf7JT9mq/Djjqpdn1M7U5s/d7tRL6wU m/W8OC6G1DEG7KLBee22+BM3HsX7fTwWyvScer0WL7ogB2WQWl4innzRJIFQvWRXCQpL 30M2iPYl8Wjx1G7r8qDbGetCePJdRYPh/PuZdBUFis2PYI8GIc8ftGDPGLE1iKo+r9ds +JjxO++5Acm9m9pOl6oGdwQQ/OWCHNCJ/s20w1U0Bv8Vd/9Rswdo0auzOVZQrZE2W4Yj U0iyPNNMr15+0zJkPjj0ck5h9ceIRRBTnxyzAu3a8tyrlrmPBNN58ycs1Gs+pr3O8gYi o32g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r80si9270735pfa.128.2019.04.01.11.06.21; Mon, 01 Apr 2019 11:06:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730720AbfDASFr (ORCPT + 99 others); Mon, 1 Apr 2019 14:05:47 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:32950 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730451AbfDARNE (ORCPT ); Mon, 1 Apr 2019 13:13:04 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 9CA8B14B8AF67; Mon, 1 Apr 2019 10:13:03 -0700 (PDT) Date: Fri, 29 Mar 2019 13:33:06 -0700 (PDT) Message-Id: <20190329.133306.2165254559631165505.davem@davemloft.net> To: khorenko@virtuozzo.com Cc: jarod@redhat.com, j.vosburgh@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, vfalico@gmail.com, andy@greyhouse.net Subject: Re: [PATCH] bonding: show full hw address in sysfs for slave entries From: David Miller In-Reply-To: <20190328102921.11680-1-khorenko@virtuozzo.com> References: <20190328102921.11680-1-khorenko@virtuozzo.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 01 Apr 2019 10:13:03 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Konstantin Khorenko Date: Thu, 28 Mar 2019 13:29:21 +0300 > Bond expects ethernet hwaddr for its slave, but it can be longer than 6 > bytes - infiniband interface for example. > > # cat /sys/devices//net/ib0/address > 80:00:02:08:fe:80:00:00:00:00:00:00:7c:fe:90:03:00:be:5d:e1 > > # cat /sys/devices//net/ib0/bonding_slave/perm_hwaddr > 80:00:02:08:fe:80 > > So print full hwaddr in sysfs "bonding_slave/perm_hwaddr" as well. > > Signed-off-by: Konstantin Khorenko Applied, thanks.