From patchwork Tue May 1 22:11:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 10374545 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 4088660384 for ; Tue, 1 May 2018 22:12:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C3528D2F for ; Tue, 1 May 2018 22:12:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C1AA28D3B; Tue, 1 May 2018 22:12:08 +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 C9D7B28D2F for ; Tue, 1 May 2018 22:12:06 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40bFxw5KqgzF2RV for ; Wed, 2 May 2018 08:12:04 +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="dJsm9O3t"; 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::243; helo=mail-wr0-x243.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="dJsm9O3t"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 40bFxp4xDYzF2RC for ; Wed, 2 May 2018 08:11:57 +1000 (AEST) Received: by mail-wr0-x243.google.com with SMTP id c14-v6so11983227wrd.4 for ; Tue, 01 May 2018 15:11:57 -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=9wrjWadpiiA1rY1zg75OHEZSiDHQ4YPm8h7jDHyRglg=; b=dJsm9O3tVL4ZAJ2C19ONPNq3QLw32tPc1Pir87CyQT2/8AY+IhhCwD2XE+yrsJrE4X Wd5F1mGxcv82ZzCBeEkthK2xTiRAnU5jbqLNHOYmK+C6Lgg9yz8V6EWN5IPKXN8/4x0v /R7+w3dKYDgL2QvWkTMH+AGl0JdKnDreukgmLX8wbfRpjAoz64g78StwmSdNs9KWk2Rv GmJ2wjesnHPajIlnFQGLnFT5Q46cvtmUoObZWZcB7xt3vrZ66lGpfnur8b27gQdeIS0W oijkxFrE3NEeW7l+y94iE2OZ9i1AgWSZ2WrpRTqEkGu8VCgchmiW2ueVwgDENsfL+9uv uMFw== 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=9wrjWadpiiA1rY1zg75OHEZSiDHQ4YPm8h7jDHyRglg=; b=o3dfmUYRqMcWIkmn62078CAC/CMcGwzytnQMVcn28weqHjGGRJKsV4tODoxGMcU6vG AfoHmZe1ULCA370HC2D3yp+VcteTW+WdiyLTW3RgTQ2osLofcDEIEbkaReV875s+6KUT bS3HhBbvy3mdM3YTeFziQPE88tQopSh7i5/h8siZ2bllAmbs2APQLKuDBbPBHzWlbehQ bku/0AIjAIhQ3IRHrs3ysPVg7ZWRjAD3f6G+In6MUse+W7SGefvtEdqRqbUSBRsEDEaq 4qAENyG8Fo0GYX8optfz3wpDGf4rATYj/lSfCO3HeNYi1Xvtu4TfxhvJ0TRvakTVuWfv 7GHQ== X-Gm-Message-State: ALQs6tCKNlguP40WUJyK8ExGmyaqmO/k6KpXuShwhoVwGzDUQlqFPE4I QO/bdFgIf8QbnHn5eaugsppgP+hO X-Google-Smtp-Source: AB8JxZpNzTj+9hJKc9NeBQ0JUXR1YThV7aJZBhkj9JNWyWjV3P4J4ZzeC61YxpGMINcYPbG8fZtUWw== X-Received: by 2002:adf:8644:: with SMTP id 4-v6mr14102573wrw.73.1525212714263; Tue, 01 May 2018 15:11:54 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id 131sm5584246wms.34.2018.05.01.15.11.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 15:11:53 -0700 (PDT) From: Jiri Pirko To: linux-mlxsw@lists.ozlabs.org Subject: [patch net-next mlxsw v3 1/4] mlxsw: resources: Add CQE versions resources Date: Wed, 2 May 2018 00:11:49 +0200 Message-Id: <20180501221152.4576-2-jiri@resnulli.us> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180501221152.4576-1-jiri@resnulli.us> References: <20180501221152.4576-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: , Cc: linux-internal@mellanox.com 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 Add resources that FW uses to report supported CQE versions. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/resources.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/resources.h b/drivers/net/ethernet/mellanox/mlxsw/resources.h index 087aad52c195..fd9299ccec72 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/resources.h +++ b/drivers/net/ethernet/mellanox/mlxsw/resources.h @@ -43,6 +43,9 @@ enum mlxsw_res_id { MLXSW_RES_ID_KVD_SINGLE_MIN_SIZE, MLXSW_RES_ID_KVD_DOUBLE_MIN_SIZE, MLXSW_RES_ID_MAX_TRAP_GROUPS, + MLXSW_RES_ID_CQE_V0, + MLXSW_RES_ID_CQE_V1, + MLXSW_RES_ID_CQE_V2, MLXSW_RES_ID_COUNTER_POOL_SIZE, MLXSW_RES_ID_MAX_SPAN, MLXSW_RES_ID_COUNTER_SIZE_PACKETS_BYTES, @@ -81,6 +84,9 @@ static u16 mlxsw_res_ids[] = { [MLXSW_RES_ID_KVD_SINGLE_MIN_SIZE] = 0x1002, [MLXSW_RES_ID_KVD_DOUBLE_MIN_SIZE] = 0x1003, [MLXSW_RES_ID_MAX_TRAP_GROUPS] = 0x2201, + [MLXSW_RES_ID_CQE_V0] = 0x2210, + [MLXSW_RES_ID_CQE_V1] = 0x2211, + [MLXSW_RES_ID_CQE_V2] = 0x2212, [MLXSW_RES_ID_COUNTER_POOL_SIZE] = 0x2410, [MLXSW_RES_ID_MAX_SPAN] = 0x2420, [MLXSW_RES_ID_COUNTER_SIZE_PACKETS_BYTES] = 0x2443,