From patchwork Tue Aug 22 11:49:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 9915013 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 14687603FF for ; Tue, 22 Aug 2017 11:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1637228884 for ; Tue, 22 Aug 2017 11:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 097AB28885; Tue, 22 Aug 2017 11:50:12 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BC6528402 for ; Tue, 22 Aug 2017 11:50:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932818AbdHVLuH (ORCPT ); Tue, 22 Aug 2017 07:50:07 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:33850 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932522AbdHVLuF (ORCPT ); Tue, 22 Aug 2017 07:50:05 -0400 Received: by mail-wr0-f181.google.com with SMTP id p14so54471175wrg.1 for ; Tue, 22 Aug 2017 04:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=TqHFZ1H7l0TV2V/aKLE7pimfDJ6qzCRHHlTa+k4vUB0=; b=HWRBNdkNeaTDsiWtpO9gRmpf1l1NaMi9fgYPSjZnTGZraudrBqA3B+7mlhqxMN/SMe 0oG2IR0gKXPybLsDTPzKgODviXzWBxN2shXRS0gHy4sBra9jLePoyTQSulmiEN+7m4fb xoQ6l6/3hh1E2x/D3jvdfIn5y0JtSNpl8OO34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=TqHFZ1H7l0TV2V/aKLE7pimfDJ6qzCRHHlTa+k4vUB0=; b=mzOgu9INkiWVPV2enKMrxWtZqKzegRA+dAj+lrsWj0+wTwgckTTtKrqnkAcIdrhqKP M6STPYP9RTZXrX+9KqCuE5aHRsx5SUERfBMVIu7qx1Vq4t6fCW8eboSzZLs0xNYtHE6k rurbyDWqDx58bW2z1o7Oyim3OeCOqfO+Wt3KPYQmPdJDzzshQ2kWBycnyFnauUfNCZiZ XI7FaxCockCHncTFSP2dWBVJPfDbPXqxbJCGEJWtlpEnwULcxf4412jdkZaRiqf/dTWC SoQir1oJ5hiWonyaopmdw4kH6L3Th7ZgeHT+V2zQhy/unJGDgEoV9IkwmEQvSFNLWUgB GTPg== X-Gm-Message-State: AHYfb5gAuFFYvoZd2LtF7RwaGLSXv1ZUn0IsrzKpTejQkAni3l5yfsHn zwubawTYlD8sTPt6XxI= X-Received: by 10.223.136.153 with SMTP id f25mr325094wrf.286.1503402604441; Tue, 22 Aug 2017 04:50:04 -0700 (PDT) Received: from neo00-el73.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id n71sm10122513wmg.13.2017.08.22.04.50.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 04:50:03 -0700 (PDT) From: Devesh Sharma To: linux-rdma@vger.kernel.org Subject: [for-next 2/3] RDMA/bnxt: update bnxt_hsi to hold dscp2pri declaration Date: Tue, 22 Aug 2017 07:49:46 -0400 Message-Id: <1503402587-24669-3-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1503402587-24669-1-git-send-email-devesh.sharma@broadcom.com> References: <1503402587-24669-1-git-send-email-devesh.sharma@broadcom.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds new structure declarations to bnxt_hsi.h file. The new declarations are related to DSCP to priority mapping slow patch commands. Signed-off-by: Devesh Sharma --- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 92 +++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h index 7dc71bb..d45a039 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h @@ -3152,6 +3152,95 @@ struct hwrm_queue_cos2bw_cfg_output { u8 valid; }; +/* hwrm_queue_dscp_qcaps */ +/* Input (24 bytes) */ +struct hwrm_queue_dscp_qcaps_input { + __le16 req_type; + __le16 cmpl_ring; + __le16 seq_id; + __le16 target_id; + __le64 resp_addr; + u8 port_id; + u8 unused_0[7]; +}; + +/* Output (16 bytes) */ +struct hwrm_queue_dscp_qcaps_output { + __le16 error_code; + __le16 req_type; + __le16 seq_id; + __le16 resp_len; + u8 num_dscp_bits; + u8 unused_0; + __le16 max_entries; + u8 unused_1; + u8 unused_2; + u8 unused_3; + u8 valid; +}; + +/* hwrm_queue_dscp2pri_qcfg */ +/* Input (32 bytes) */ +struct hwrm_queue_dscp2pri_qcfg_input { + __le16 req_type; + __le16 cmpl_ring; + __le16 seq_id; + __le16 target_id; + __le64 resp_addr; + __le64 dest_data_addr; + u8 port_id; + u8 unused_0; + __le16 dest_data_buffer_size; + __le32 unused_1; +}; + +/* Output (16 bytes) */ +struct hwrm_queue_dscp2pri_qcfg_output { + __le16 error_code; + __le16 req_type; + __le16 seq_id; + __le16 resp_len; + __le16 entry_cnt; + u8 default_pri; + u8 unused_0; + u8 unused_1; + u8 unused_2; + u8 unused_3; + u8 valid; +}; + +/* hwrm_queue_dscp2pri_cfg */ +/* Input (40 bytes) */ +struct hwrm_queue_dscp2pri_cfg_input { + __le16 req_type; + __le16 cmpl_ring; + __le16 seq_id; + __le16 target_id; + __le64 resp_addr; + __le64 src_data_addr; + __le32 flags; + #define QUEUE_DSCP2PRI_CFG_REQ_FLAGS_USE_HW_DEFAULT_PRI 0x1UL + __le32 enables; + #define QUEUE_DSCP2PRI_CFG_REQ_ENABLES_DEFAULT_PRI 0x1UL + u8 port_id; + u8 default_pri; + __le16 entry_cnt; + __le32 unused_0; +}; + +/* Output (16 bytes) */ +struct hwrm_queue_dscp2pri_cfg_output { + __le16 error_code; + __le16 req_type; + __le16 seq_id; + __le16 resp_len; + __le32 unused_0; + u8 unused_1; + u8 unused_2; + u8 unused_3; + u8 valid; +}; + /* hwrm_vnic_alloc */ /* Input (24 bytes) */ struct hwrm_vnic_alloc_input { @@ -5429,6 +5518,9 @@ struct cmd_nums { #define HWRM_QUEUE_PRI2COS_CFG (0x38UL) #define HWRM_QUEUE_COS2BW_QCFG (0x39UL) #define HWRM_QUEUE_COS2BW_CFG (0x3aUL) + #define HWRM_QUEUE_DSCP_QCAPS (0x3bUL) + #define HWRM_QUEUE_DSCP2PRI_QCFG (0x3cUL) + #define HWRM_QUEUE_DSCP2PRI_CFG (0x3dUL) #define HWRM_VNIC_ALLOC (0x40UL) #define HWRM_VNIC_FREE (0x41UL) #define HWRM_VNIC_CFG (0x42UL)