Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4149381ybx; Sat, 9 Nov 2019 10:03:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzNx2fBAhuNgXI79PbBD1Mkzcbgo0o4T8EW95Bq+7DpitR1iF6aYv7cZdXN0UDZ+EFl9IXW X-Received: by 2002:a50:f699:: with SMTP id d25mr17071026edn.72.1573322618646; Sat, 09 Nov 2019 10:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573322618; cv=none; d=google.com; s=arc-20160816; b=egkwsqQYbLdZn4Qge8je1eZwRVhN+85FNSM4LjiKiWR+pKekkn1sIVSIWljkcHXPeb Bou5HJdfjVuF+0efPoIxKzLaZawO7Ohb5tkZ+2XXy0f01HeoLim66/c0f3IC1gfvEkmn o2Ca3wvF3ZO+BQCY7lHF4No0MYUAoP/EnSVD9azL8cN3WfdfgdcaywA8H5S795tdpLYZ LWBPg2DTJxqygIVQf41K7edTIfBadR9qBHiG0lK06eWZr1FE6r1Hnf/hw9lZ7PNrxr3r 7/eJDKAbl7jQ+KVOC37FgzQuwXmMk/IMCY+VoULnLZ4yc58lCOLQiAvBuX8vC4tk5CLJ z8sg== 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=DJfAMlrXJrD9K7iplr6ofzO1jxhBWoQjmRc56+T6zy0=; b=ZCHXOiBs7OtRLpLbb3tetkekNibuHYqMvUZ6pOg2pfcLepm0ms8Wr5Eq018iR2hvDG 0Y3dGIakLi/1NYLnyby6wiSAiV0DGok1gPfjaJ9zUMVyncNuF9mudkAkW1+OaOlq/dui QdBShXSaN3c4AtXsyFAlaYT/MXcqnsDCh2/vFVDVC4vdIiPDYxLyPrd4y/jG0Tz/k0YF aEsndDN8lBxWEPtTt0/OmopVYMXqe6wPPBCnaFAqjNkPywd3vZQoNpfEWjy3gpFayJbK bLsu1BW2PxXX1gupC2Zrr8AgeIXpGvWZx2J7Bl1lLKdE69eXfAEmalWsX3dSTvDPW3XG S7kg== 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 z26si6073302ejb.223.2019.11.09.10.03.10; Sat, 09 Nov 2019 10:03:38 -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 S1726730AbfKISCd (ORCPT + 99 others); Sat, 9 Nov 2019 13:02:33 -0500 Received: from orthanc.universe-factory.net ([104.238.176.138]:54930 "EHLO orthanc.universe-factory.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfKISCc (ORCPT ); Sat, 9 Nov 2019 13:02:32 -0500 X-Greylist: delayed 472 seconds by postgrey-1.27 at vger.kernel.org; Sat, 09 Nov 2019 13:02:31 EST Received: from localhost.localdomain (unknown [185.216.33.116]) (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 0CD5C1F56B; Sat, 9 Nov 2019 18:54:38 +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 0/2] Implement get_link_ksettings for VXLAN and bridge Date: Sat, 9 Nov 2019 18:54:12 +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 | 37 +++++++++++++++++++++++++++++++++++-- 2 files changed, 57 insertions(+), 4 deletions(-) -- 2.24.0