Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1771299imj; Sun, 10 Feb 2019 09:56:15 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibb2VRKWUeoszWJ+ltfT41wvPiASVASTEq1E3BALF2pgWIGoPkDMt6tBEJr5Gkz/MBz6Wje X-Received: by 2002:a63:e451:: with SMTP id i17mr30106623pgk.413.1549821375244; Sun, 10 Feb 2019 09:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549821375; cv=none; d=google.com; s=arc-20160816; b=jen3xIzKqK3sZQAcVTZD3JPsWy9QQ+j5AbojvIkq5vN7WlxPwUCqajA5rGdokzSCHc yZXBysNJCP0MMntRR6FvstwCUvUyweotLg2wMGy2svVcw/wFg51nMO9tVvtkIEoaJrBy uokxfB35wCDRgYiWfXi+0jkIorPfhwR9lxb6F9RdwyGcrgNkBXeB8Y4aYVxplF+SKxed YMcitudvCjicq9HF0JRFLC8Be76ZV2EJOu1lPkRq9MZ1t+1If5NeL+gmfn21GF+4e+kB lmjSJXVtGFNJS2KHKEO8InKVsuCpfGDZrApzVC8YYeTRxxZvBDUKkCMkqtY4prJ1HdjI Cd+g== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=7L0xTa6HUjap5hvS5D6PfDYA/2qTJS8vMeAX54+U6P8=; b=T0diVFg+6EyxFYfkBQ4oexarKcT0suCg3TPIcNiwn/+V/ItSFYTstabWzUy8+lfFCl Tx5OgYCfkBvK9ilzEIBxzl9zVvWF4H8X2B71T+/MJoKDA6iXxdctH6c6nFPeu+xXL3VN 1YCztLpsW+Mu6GKKJENmSKgT2Ncgq8QM3pDuOBDSDrLbTzfixBzThFS6VBRDO9MrLMSK S1ZzN4IXWw1IbjDPIhq4XHvsyfQ0hqliGhFeHAUbjEOtarrOHlbDo0O0OREQfehszxJr zpOkfa+PE7kacDdLTedb7GkL5ZWzrfUF+WOR+ty/CRtYuMQtWkvgkm7Q55XjkFmmr4kS zMNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AVfJJ2Z3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si7597025pgd.256.2019.02.10.09.55.59; Sun, 10 Feb 2019 09:56:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AVfJJ2Z3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbfBJRxT (ORCPT + 99 others); Sun, 10 Feb 2019 12:53:19 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38876 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfBJRxS (ORCPT ); Sun, 10 Feb 2019 12:53:18 -0500 Received: by mail-ot1-f67.google.com with SMTP id m1so2175901otf.5; Sun, 10 Feb 2019 09:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7L0xTa6HUjap5hvS5D6PfDYA/2qTJS8vMeAX54+U6P8=; b=AVfJJ2Z3BJxohhvaJosGHfmuHpolN4+mn5xeHpQxDwgH3+SrEUl98/yXAbSXa6HrrI 4JvrRQVv7UzDD9bz2MhL4WnF+YaOqQNAFun0jH3RrPQinnlWTyhDy86oazrKG/TLUpwN PwvUIgLrxVT4L4harlpMJVk2jgKcAEkmM/k+JkSvW1ESuJ6L/Bu3/L3JczIwvKGnEQhH ZXBhOpqk4zcQBJ6zfETqsl/Jt3lo8zzqiss7oc01+1xpY8Hzs9Y1U6ehGcw4SeVkgoKi 5TEuayykwBgMfDShRSR+BIdrNZV53/w5T++btSZtuRGJVQYGaxm3Qdm7MAQtLtBHY+tD Mp4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7L0xTa6HUjap5hvS5D6PfDYA/2qTJS8vMeAX54+U6P8=; b=PymcQOU53JKKcxslbKbEZm/k0k4fHA7JkfEUdjehENhTqxG8iIb2nfTV3KSfZrAgZ6 Yms0/APDoubN/hKteBGdE9stVpoCgjxJfxAJS0WnP1Ju8te518FwjQX5EzeZfJYScX2K GSuPf3lWWMWAOhev0OctKfBhC5GuSvK+NbDsMttO60RUzBfBNmSd+xfYCNCSxcWawXCb uNZtRm87cMWKPWd7yeJRqOj5FQJdZTD7ZT5fUeGYgIyBxxkYabBVdR4BhY6od0OeL89j XAXLaPpRu3CpgXO7L6d33djTY/CnzGKf0OP3GE0mXrRpRkIKHsA0AVKynXio6ErwnHb1 7lQA== X-Gm-Message-State: AHQUAuaPz7g1KFpVHCL/kdOybC5gCuHeuHautLU25EPKjs/veSN3NSmJ 8xVkyrjSoZYRzBcEFiUjwnO4AQdT X-Received: by 2002:a9d:644b:: with SMTP id m11mr12312054otl.90.1549821196362; Sun, 10 Feb 2019 09:53:16 -0800 (PST) Received: from localhost.localdomain (ip68-228-73-187.oc.oc.cox.net. [68.228.73.187]) by smtp.gmail.com with ESMTPSA id n9sm3156425otq.14.2019.02.10.09.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 09:53:15 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , idosch@mellanox.com, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, bridge@lists.linux-foundation.org, jiri@mellanox.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [PATCH net-next v2 01/16] Documentation: networking: switchdev: Update port parent ID section Date: Sun, 10 Feb 2019 09:50:50 -0800 Message-Id: <20190210175105.31629-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190210175105.31629-1-f.fainelli@gmail.com> References: <20190210175105.31629-1-f.fainelli@gmail.com> 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 Update the section about switchdev drivers having to implement a switchdev_port_attr_get() function to return SWITCHDEV_ATTR_ID_PORT_PARENT_ID since that is no longer valid after commit bccb30254a4a ("net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID"). Fixes: bccb30254a4a ("net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID") Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli --- Documentation/networking/switchdev.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt index f3244d87512a..ea90243340a9 100644 --- a/Documentation/networking/switchdev.txt +++ b/Documentation/networking/switchdev.txt @@ -92,11 +92,11 @@ device. Switch ID ^^^^^^^^^ -The switchdev driver must implement the switchdev op switchdev_port_attr_get -for SWITCHDEV_ATTR_ID_PORT_PARENT_ID for each port netdev, returning the same -physical ID for each port of a switch. The ID must be unique between switches -on the same system. The ID does not need to be unique between switches on -different systems. +The switchdev driver must implement the net_device operation +ndo_get_port_parent_id for each port netdev, returning the same physical ID for +each port of a switch. The ID must be unique between switches on the same +system. The ID does not need to be unique between switches on different +systems. The switch ID is used to locate ports on a switch and to know if aggregated ports belong to the same switch. -- 2.19.1