From patchwork Mon Apr 30 14:08:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 10371837 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 274A06038F for ; Mon, 30 Apr 2018 14:10:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12CCC2899C for ; Mon, 30 Apr 2018 14:10:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C4A32879B; Mon, 30 Apr 2018 14:10:46 +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 81A942899C for ; Mon, 30 Apr 2018 14:10:44 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40ZRJy52vlzF2QH for ; Tue, 1 May 2018 00:10:42 +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="Uoc2Y91U"; 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::242; helo=mail-wr0-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="Uoc2Y91U"; dkim-atps=neutral Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::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 40ZRG73MjSzF2Qf for ; Tue, 1 May 2018 00:08:15 +1000 (AEST) Received: by mail-wr0-x242.google.com with SMTP id u18-v6so8167500wrg.3 for ; Mon, 30 Apr 2018 07:08:15 -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=Uoc2Y91UvEwuC+IwK4IDvvXxJLxwjz4WwzoqbyxSvxWwH/uYCDAuQkdNV36NfGFVuC zNlOABolbBjKu9Q+0iTXGHwNUx3u2Q11FwxA4tVatbJBbpkl1RPYLrTPV+6eG+em5P0n DqIznO/a3GBZ644/bq4bxH7vHNYD2Zi8cq0jwfZB0pUcsXHwJTRAk0bJYy9UhIfwcTo4 GAvoeFKLiOL0JEFy8AMzTR0TmJe8nUktPzSLoqDRpIscNFDazaMEyo4D21cB6N7WDZ5g XAtKuxvrQE7uaVQpMMnI9g65kQI0/GuTpACoNaVI19Xwq8X8DPxtcd9A/vHvsZYP04LO 2xgA== 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=jnUYGUxFmWOyqAeY1d/uAF4wJZH/c80QyhmdNYKssCvyvPnTrNxuMDjCh6ph/iwiSN dofwuxO9UL+TtHZMxFESriJgmXxV0YGLCCe/z5YlIg2GOVaiWioMQgnAX9FpPwVWX2Y/ Q7xl3OFL2fH4CGSr0e0xEnslZZQXqWZiX6v6iZP8ZKynW+mexfcY1o7cHfiBCtGXVLEV 4ZjVjjTdZYUJwTJEHpOQMyrS7QZ09B2fe4fVq8tVrJ3tsnApPulKwTQMb0CUR2piVZmi KmPy/iYlQua2SJ6RAFGji+EoFBrjrNRebUnz1W7XyCdc5sawTF11Wq3x3ny9jLT5wocy 1uQQ== X-Gm-Message-State: ALQs6tDkoRyE1mAZkIy3HxiaQ/D/zGL3UGrAI6+eBS7NpWz0E+rkldNz x+WQDLhjwbxnpDRx+Q1fdn1AS3gT X-Google-Smtp-Source: AB8JxZqAM7qKGXUjhP5glL3vqitn7ym7keupvUgN0dHlO8GoXDG7WmN+NFfVk6OiZ8h8UOi5kiKfhw== X-Received: by 2002:adf:ab56:: with SMTP id r22-v6mr9514039wrc.228.1525097291821; Mon, 30 Apr 2018 07:08:11 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id b185sm7307224wmb.25.2018.04.30.07.08.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:08:11 -0700 (PDT) From: Jiri Pirko To: linux-mlxsw@lists.ozlabs.org Subject: [patch net-next mlxsw v2 1/4] mlxsw: resources: Add CQE versions resources Date: Mon, 30 Apr 2018 16:08:06 +0200 Message-Id: <20180430140809.6341-2-jiri@resnulli.us> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180430140809.6341-1-jiri@resnulli.us> References: <20180430140809.6341-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,