From patchwork Thu Jun 14 08:42:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 10463637 X-Patchwork-Delegate: idosch@idosch.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 594B2601F9 for ; Thu, 14 Jun 2018 08:42:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B03F28991 for ; Thu, 14 Jun 2018 08:42:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 402C528999; Thu, 14 Jun 2018 08:42:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8696428991 for ; Thu, 14 Jun 2018 08:42:24 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 415xvL6ZqwzF0dY for ; Thu, 14 Jun 2018 18:42:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=resnulli-us.20150623.gappssmtp.com header.i=@resnulli-us.20150623.gappssmtp.com header.b="ijdvZD5R"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=resnulli.us (client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=jiri@resnulli.us; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=resnulli-us.20150623.gappssmtp.com header.i=@resnulli-us.20150623.gappssmtp.com header.b="ijdvZD5R"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 415xvG5G19zF09q for ; Thu, 14 Jun 2018 18:42:18 +1000 (AEST) Received: by mail-wr0-x241.google.com with SMTP id l10-v6so5487215wrn.2 for ; Thu, 14 Jun 2018 01:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ErAW0nr0ZUfb8I4/IfxeDdguFG8HB3NR/PcxJvcZs6s=; b=ijdvZD5RJDtzZnVFPGu2x51jNE57QOsVYsQRTfsO2h49hllTS/na4DeqpWSi1wGtLj I0YtuHbfh0u3z5aY5I1TO1GNp60X3XUe6oro3N2nlH/MTdUvRK1ZAE3RpGM1gE/ZnskU NgtOlkMn5igYdHNyAKrXV90mXW8sBsoQahLYDzTL+d00ZbtRaKwGYCucbKKhfjsW6VWC O1VBIvRms9nJ30SGhCR2QQ4KMSwqb4GbW9nYPEh8wYNb/1O8ja6LOJNN1m5HWu73QJa+ s1JY3anvOPevAr6aPEBc160lhwyQiaj8s+Qfm2WERL2u49KopJLF1EU0c+AiPzbipsk9 vDcw== 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=ErAW0nr0ZUfb8I4/IfxeDdguFG8HB3NR/PcxJvcZs6s=; b=fnSl38+NKWvyrSzDGwbQy/24KfqqyrGaua77OMFK2Z245gcVaobfQMaUeZ2B941V2q cnGJ8/kkWHpDbfDFl39n8DGB+axY0Y6SqwOWtX3glEhBbbDFrZk/unpb6pmsh4z6is2B jzqwY/Iq5795DdOJP9IBWDnhiPf1OV7cc0LkgsADzO1T4vhkcjHwtPiUItJGodILj8KW 453d5Oy43k6cLkft2wyrMDQkM3PuDuPHf9evOfam7TJuvzK8GvxiFGeqppRQD5UOQbgO glE5a19Z5Q5vH7JFy1DPtYELPNz+Dhnt5/x34SjNBFHdVJdRwno9Uwjhh/qQWnl6cp5G Ugog== X-Gm-Message-State: APt69E3SWVNCn+gV8WXs/TvRx/XPs6+xOe3BWafCwexvA+IJ/X8MWYI2 4sM8aiENagRKGMxyEnSr65SXqhjM X-Google-Smtp-Source: ADUXVKIa7C//XjKUlJgSRSV1+SgPmKRdmew8fVrImA73AcJO5wle3zeNCohwz6dF/aPDoDB0XDe5Ww== X-Received: by 2002:adf:8e89:: with SMTP id q9-v6mr1306516wrb.269.1528965735939; Thu, 14 Jun 2018 01:42:15 -0700 (PDT) Received: from localhost ([83.167.225.161]) by smtp.gmail.com with ESMTPSA id g105-v6sm6022828wrd.37.2018.06.14.01.42.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 01:42:15 -0700 (PDT) From: Jiri Pirko To: linux-internal@mellanox.com Subject: [patch net-next/mlxsw internal 12/12] mlxsw: resources: Add couple of Spectrum2 KVD resources Date: Thu, 14 Jun 2018 10:42:05 +0200 Message-Id: <20180614084205.1789-3-jiri@resnulli.us> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180614084049.1689-1-jiri@resnulli.us> References: <20180614084049.1689-1-jiri@resnulli.us> X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jiri Pirko These resources are needed for Spectrum2 KVD linear management implementation. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/resources.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/resources.h b/drivers/net/ethernet/mellanox/mlxsw/resources.h index fd9299ccec72..f672a7b71de7 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/resources.h +++ b/drivers/net/ethernet/mellanox/mlxsw/resources.h @@ -42,6 +42,8 @@ enum mlxsw_res_id { MLXSW_RES_ID_KVD_SIZE, MLXSW_RES_ID_KVD_SINGLE_MIN_SIZE, MLXSW_RES_ID_KVD_DOUBLE_MIN_SIZE, + MLXSW_RES_ID_MAX_KVD_LINEAR_RANGE, + MLXSW_RES_ID_MAX_KVD_ACTION_SETS, MLXSW_RES_ID_MAX_TRAP_GROUPS, MLXSW_RES_ID_CQE_V0, MLXSW_RES_ID_CQE_V1, @@ -83,6 +85,8 @@ static u16 mlxsw_res_ids[] = { [MLXSW_RES_ID_KVD_SIZE] = 0x1001, [MLXSW_RES_ID_KVD_SINGLE_MIN_SIZE] = 0x1002, [MLXSW_RES_ID_KVD_DOUBLE_MIN_SIZE] = 0x1003, + [MLXSW_RES_ID_MAX_KVD_LINEAR_RANGE] = 0x1005, + [MLXSW_RES_ID_MAX_KVD_ACTION_SETS] = 0x1007, [MLXSW_RES_ID_MAX_TRAP_GROUPS] = 0x2201, [MLXSW_RES_ID_CQE_V0] = 0x2210, [MLXSW_RES_ID_CQE_V1] = 0x2211,