From patchwork Thu Jun 21 10:09:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 10479581 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 6C39C60365 for ; Thu, 21 Jun 2018 10:11:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CA4E2927C for ; Thu, 21 Jun 2018 10:11:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5142D292F1; Thu, 21 Jun 2018 10:11:17 +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 17FE4292F3 for ; Thu, 21 Jun 2018 10:11:16 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41BHXf3QvZzF1PN for ; Thu, 21 Jun 2018 20:11:14 +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="a8tWkaBi"; 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:c09::242; helo=mail-wm0-x242.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="a8tWkaBi"; dkim-atps=neutral Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 41BHX46ddRzF189 for ; Thu, 21 Jun 2018 20:10:44 +1000 (AEST) Received: by mail-wm0-x242.google.com with SMTP id z6-v6so2592986wma.0 for ; Thu, 21 Jun 2018 03:10:44 -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=a8tWkaBi30bIZc14QmHgUS76W+cliXam+0cVMTaVhT97XK+XVU5y2znUhT7IX74l0/ MyZgCPxPSF/5Uq74aWyimM4uWBu6rGSeb7XRH/6N7VKi9CiV5lure8P4ndVGtpv3iToc HDb7ghqxVY08hEM0k4KdCc91nDlpFfJOOz5H8lZBKvXzV7SG/ikFzdrRpz0c4gWpdUXL lcGnk7DTAtDpVxfV0IX7BFlCWBHltswj5kCa1iW2vc2+lKdbcCmPj3coSQMUwLnP6wrM 9/kRmP4GS9QRd5ypT3jtQmTysxQSy4FccnHL2cPkvYLxw8JhYMrKoXvRQkQb3hbr6CNZ 2LZA== 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=YKgL50AntjqNbQ3FR8ij0MgI6OmX1jJs9xz2NEdisbXfMB3PPpXe0Z+UXNe79M+5rn xoQAg5X1iocEqR+MfvyWNfVZ2tSUUtSiYhu4Tx/0tidcvRJtqqhaq1b1lD9uszo+sU/c YzlvJW1vL21f2HNZxLtbmc95HliE3oKnFoI0qdGJt3PVXEEx+bkuq8mSQ484XvBs8zhQ ENghFjnktQm70NtrcikkML7PuAVF/oXow1ECy4er7RvjLvchrNIaYKFUJx8qwwOM2BTb VhJdvHhyVLES2tK/YfX8okOGRxO2Ck7LBEeI5cK75KJGn24XhukISAY7inu3wJoDXZnX Lr/Q== X-Gm-Message-State: APt69E1FQA2s9QLi4c3IGKpaA0a/pL9HbXYxlm7jTr4ZsXrFLfOV5lVD /P5SzJV62ZyuRAY9H3JG1vCp3A== X-Google-Smtp-Source: ADUXVKK8CB0vzjJDrYVY4md2Vs0IZN5sUZQ37Z0nv+jiLkzXKNtC64HwgQoko9lTp032ORXWbSi6hg== X-Received: by 2002:a1c:8893:: with SMTP id k141-v6mr4676933wmd.133.1529575841950; Thu, 21 Jun 2018 03:10:41 -0700 (PDT) Received: from localhost (ip-89-103-152-63.net.upcbroadband.cz. [89.103.152.63]) by smtp.gmail.com with ESMTPSA id z5-v6sm4616438wrh.10.2018.06.21.03.10.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jun 2018 03:10:41 -0700 (PDT) From: Jiri Pirko To: linux-internal@mellanox.com Subject: [patch net-next/mlxsw internal v2 12/12] mlxsw: resources: Add couple of Spectrum2 KVD resources Date: Thu, 21 Jun 2018 12:09:09 +0200 Message-Id: <20180621100909.10136-13-jiri@resnulli.us> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180621100909.10136-1-jiri@resnulli.us> References: <20180621100909.10136-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,