Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3035049imj; Mon, 11 Feb 2019 12:40:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IbwSUwW23eXzmENxR5gwPe9WbZtmswBSCwB99MWcp96jo7RipqECcosTDQuUCz1xQ/Bcg3T X-Received: by 2002:a63:4c07:: with SMTP id z7mr74184pga.319.1549917649746; Mon, 11 Feb 2019 12:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917649; cv=none; d=google.com; s=arc-20160816; b=VdbNdFc9ttnPAHyOGey0FqheL61q3zpDhSLVTsBKlBP4BMFDzk5FJhmG7lP3QvYyt0 OTYvgPQUYcYc8Zh999ydwHkBHigh4aehs90ts/y7DWGAnMEfu5CdfyH81PH4HdQMzYYX i0PtFAY7iVuRosRmd+RWtLEv5qiVn292RHUEFN9PsbRVYkR/HQKFKvYgkOddenuJPrmY S+PfApl98hcxtyO3IFpEZBunPvlRI4yQC4q6YZa5xM5J4OCt6HAqT6LPMYcdLi6Z/8TZ 3W3fW+re04bRj+xdqhShND2Y4tqv2IGZEmMiX535iSIT/wDH8vDX2LMu2r45H5ZxILHb zv4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=whP2T31Mi9yk1nJwoFJ9GEi1TFBKA5bW2oJpYvjtFLM=; b=n8CaRbTWGCa9ADte16Vfe5ZThoYxcsZrRM7rR6ELgQNISUY3BcLJiPhL/wWzkiYlUh pKeEwrgJGyqzSV4xEoxpOZi1cy2zV0bL7F1CcI82HlprdIzSCXRuTpQ6TH2lisS9Qohp 6EFBu+Se+AAyjrj7GZcSqZY11pJag/Vv2hx/E06Ke3AbNl2Te5J+RE4QXo2CherGwP/A VmPYG2ICZ02hpKbzBOyzXhUSnTM1eVRdsBnPYLR/q0Ca2FSdVPZg06Skkyi3jb0+4yQF LHVnZrUpGd+5myzNUa07B3xQ144VkqF0xRMxfulFlpjmvHNLRNBrz5AE/6I5LMbX3Fn4 6LOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=odBBgn09; 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 m187si11323639pfm.51.2019.02.11.12.40.33; Mon, 11 Feb 2019 12:40:49 -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=odBBgn09; 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 S2387738AbfBKTKa (ORCPT + 99 others); Mon, 11 Feb 2019 14:10:30 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34015 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732529AbfBKTKa (ORCPT ); Mon, 11 Feb 2019 14:10:30 -0500 Received: by mail-pl1-f195.google.com with SMTP id w4so13486plz.1; Mon, 11 Feb 2019 11:10:29 -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; bh=whP2T31Mi9yk1nJwoFJ9GEi1TFBKA5bW2oJpYvjtFLM=; b=odBBgn09m3CSnwo8BpV1ZdwyoKxI6zXAcmYOB8E4WV7RseuMKFb18n+ySxPrTjrPJj jPp4ldQaw1Y+bwbAjjrlxfz0SZ/Gx/NB8Hbc63u7sbDu5eM8lRZ6cxtsD5tNpBp19Kcr t6lZv/miLHHY+V39TLgtGoX3ODSqvThlZKj4dT8d6QygKkHan9ASiGq+EZqXirWbVdOc JoiCDJnWPXW3TyBfzTGIYKoTMU742ZAr6K4X9iEacCF0B6pkKS3pCxvsv7P56TaUgNZM u9zzXJyoI3UOBSXBuM2uvAwIh0+WhE6+53TvC30R8DSN2cnj/O72hHsFO6dkZE3Xc4sH q60g== 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; bh=whP2T31Mi9yk1nJwoFJ9GEi1TFBKA5bW2oJpYvjtFLM=; b=E5mAma+kxBCQR+8Ehb0Vv+leHJtegi3ZJTeUmVTp9hKP5V6TZvs+d8crUeFixQ9BLL BUN/2ScrM0h1U8T03wUANkCZIHRAaaPobtc/D3ejG9AVutgHMdP04RtVj3Eja2wBqeN3 GjNdwFiLxwr10hFitYebb3/5GA1rHxu0uFeq7J88H8wTI3lleprMjjS+mmrsb92YUTDQ dCZAwvlZiWQyUyvrhsGBT1pBWCN6VTc7a7iP5YSbiZotcihjlPe0S99cKewB9X0wTsc9 IH5hALTB7Eh+2/18VTbRrzv8fH9T8/NSkn7HSp2nyfdk+tvCJl67l1T4+8tlL1VNHIiG A2/w== X-Gm-Message-State: AHQUAubAACiAvrTIWzNuixoy359h1X/LETP9MtWErJQ7uH5j546SlUpN XJdDHxAlcEnxzfvH9oCBPrOPEMUk X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr39370965plb.182.1549912228883; Mon, 11 Feb 2019 11:10:28 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id i24sm2167206pgg.14.2019.02.11.11.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 11:10:28 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Ido Schimmel , linux-kernel@vger.kernel.org (open list), devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM), bridge@lists.linux-foundation.org (moderated list:ETHERNET BRIDGE), jiri@mellanox.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [PATCH net-next v4 1/9] Documentation: networking: switchdev: Update port parent ID section Date: Mon, 11 Feb 2019 11:09:53 -0800 Message-Id: <20190211191001.8623-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190211191001.8623-1-f.fainelli@gmail.com> References: <20190211191001.8623-1-f.fainelli@gmail.com> 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.17.1