Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1038373ybc; Tue, 12 Nov 2019 13:14:06 -0800 (PST) X-Google-Smtp-Source: APXvYqy3ctCuDxusAlJkwWZhQ4lidJoZLSz0zm2foE5j4gybhKH8RYHo8yV4Yh2rlqepetXQpUUK X-Received: by 2002:a17:906:69d2:: with SMTP id g18mr15295068ejs.153.1573593246878; Tue, 12 Nov 2019 13:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573593246; cv=none; d=google.com; s=arc-20160816; b=mLap5a+V//RhpUztSe1y+OH/CzGRl+CCyCP3EslB7TTxLAwU3t0stj9GXpE/g1kkA3 E8W7Bwk2VvR9/tmMPFfTlcqLcnb+tGne1ItTGCzLuRJngIpBh7xTQ0ov8VzkNV5J29Vx avxyo6jBCJL5Q9vnLObqnjZVnzB3AnmthZ1Er+/UEf+Rh54xGowSIp99oxe583X4sJmV 1ErDUByFS92enTW080U/qsrcz/6aX7u17RzYae2mnRkbx1toUDrezwhKGBIXsd8fyN2Z oVKEHkOxIr4g4bCxSer0qMnfEjCfWbKuvKu0+KKQxH/LiU0Cj61upkBRFkZfeF42huQa gs/Q== 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 :message-id:date:subject:cc:to:from; bh=VVDq5gAijRVzgJlwtRAgNa/aPOTrngaw2jwNkgjEk1k=; b=aNATUSEHgtLCCzVzLgbtsZkaNeC+W+mkqbW+x84rKvs7j8nC1oVczJnuTm8q7lNmfa 6gT86qpiCQL8WYAvUp+zexVybjF5JGgFgbQ3V5RY0tlAajn7d+R1p0mHpGJ/eBwFOHbx b1NetdwUlfc9ZKZXNznzdT3pL7pQmpAUt25tjjvwQZPnmXtoAH8h7WNkn/UcoIyXMMAL wtiuyVmrWsvoJWk9zp2wfKMJ0Npwy9YspvQXrzAYlR/n0/mBcP97dYOM/utkpFEW7/5k mG+QKM9/D3juruFqlP4uNnhyVmeKUvNLxlvN7gTrR3SCvLeErTzUR/mp9lK2K6aXsOvJ lASQ== 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 t17si15191717edc.426.2019.11.12.13.13.40; Tue, 12 Nov 2019 13:14:06 -0800 (PST) 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 S1727357AbfKLVMc (ORCPT + 99 others); Tue, 12 Nov 2019 16:12:32 -0500 Received: from orthanc.universe-factory.net ([104.238.176.138]:40918 "EHLO orthanc.universe-factory.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfKLVMc (ORCPT ); Tue, 12 Nov 2019 16:12:32 -0500 Received: from localhost.localdomain (unknown [IPv6:2001:19f0:6c01:100::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by orthanc.universe-factory.net (Postfix) with ESMTPSA id 254DD1F56D; Tue, 12 Nov 2019 22:12:30 +0100 (CET) From: Matthias Schiffer To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, davem@davemloft.net, roopa@cumulusnetworks.com, nikolay@cumulusnetworks.com, Matthias Schiffer Subject: [PATCH net-next v2 0/2] Implement get_link_ksettings for VXLAN and bridge Date: Tue, 12 Nov 2019 22:12:23 +0100 Message-Id: X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mesh routing protocol batman-adv (in particular the new BATMAN_V algorithm) uses the link speed reported by get_link_ksettings to determine a path metric for wired links. In the mesh framework Gluon [1], we layer VXLAN and sometimes bridge interfaces on our Ethernet links. These patches implement get_link_ksettings for these two interface types. While this is obviously not accurate for bridges with multiple active ports, it's much better than having no estimate at all (and in the particular setup of Gluon, bridges with a single port aren't completely uncommon). [1] https://github.com/freifunk-gluon/gluon Matthias Schiffer (2): vxlan: implement get_link_ksettings ethtool method bridge: implement get_link_ksettings ethtool method drivers/net/vxlan.c | 24 ++++++++++++++++++++++-- net/bridge/br_device.c | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 4 deletions(-) -- 2.24.0