From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 644EE1B7C2 for ; Tue, 15 May 2018 15:49:07 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id p18-v6so241540wrm.1 for ; Tue, 15 May 2018 06:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6j9vFbZrUXpH2SAimvr0OHbwe8xJ8Rcls19MHU53nQ4=; b=AR1nmUeGDFIBtF64AXKLNGcwnOhPkOlFRbGdqDK1pZH9q2ufjClKi+ujVi/LWy0L4w 0q9yI20icNurYsE7TaBdKYLEhYzy21x1vlEAauVbHaKGupavyBDaIvMK4qDhYRKU5Hw+ ivJSJXITxdw52FsUoPoQaCDx/SmvkYOrf1whSsLHe6hErF2m7WeAHaL6s5RhOU6+q33W IDkwL/BhmfJ4q0TcNAz9dN1BT7P8WU+Jh/4oYFx5E9l6TpR22s/kiJOmooWkbbzM2uOI XMAUJKKUvZt6v6EcEsMPPy1ddUwXe+jVz1A3qx9BC71NUlMKXoNJb8nMcvYfJxG34eDh 7rSw== 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=6j9vFbZrUXpH2SAimvr0OHbwe8xJ8Rcls19MHU53nQ4=; b=r87HJui76IPCAWsmPbqP6vLAqggBL2zDAQq5qbFWJwGOSJfpDj1uhRJf7x4gv/veF5 VwfbWUSgDTD6OFwzSf6S+DFo5ShLfg8+u71y5lfmtG530QSch7myodbMxnW9fd38HYRF hOuFEWVJgrxJZ7RjqsvRKYCAsRfUZyAqh/nyMfo4huSRtWfFAIJnGwvM5IbuFQzMzGDD BApu0pt4LEvSHhLi6hBzsjqwVONSpzDAL8vm5g2LYwbI3ThtliE6iTo0gVvbl3bFz1/v AZRsr95/Q1xu2zC1UXXV1rpL4zQ3Matl2bLsEU/dYx90MYzYGrWVK/kSLnYkZj9M3Ukq /oIw== X-Gm-Message-State: ALKqPwc7uryPBcYIKEzfxuB/dhjHusziBjQyx28CvVPzyDWLTvlAs4DD ZQTSGFkmNdUAKAr8FkpCVjI= X-Google-Smtp-Source: AB8JxZptm10PQ7VDdaBlHF8cgJhjnI+Kv5UNLx+iClM+UjNpNuQltR6+xCzoS3MGhaRYX0FS0aVAlQ== X-Received: by 2002:adf:a0b8:: with SMTP id m53-v6mr10771515wrm.269.1526392147138; Tue, 15 May 2018 06:49:07 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id 67-v6sm687417wmw.32.2018.05.15.06.49.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:06 -0700 (PDT) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: Scott Branden , Michael Wildt , Randy Schacher , Ray Jui , dpdk stable Date: Tue, 15 May 2018 14:47:02 +0100 Message-Id: <20180515134731.9337-51-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: fix usage of vnic id' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:49:07 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 9a7a05a643ee87545629a6fc2cb6233ab9fde289 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Mon, 30 Apr 2018 18:06:15 -0700 Subject: [PATCH] net/bnxt: fix usage of vnic id [ upstream commit a6f4bb2a1510a633040ea1f90ba576cf816bd2b7 ] VNIC ID returned by the FW is a 16-bit field. We are incorrectly using it as a 32-bit value in few places. This patch corrects that. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Signed-off-by: Ajit Khaparde Signed-off-by: Scott Branden Reviewed-by: Michael Wildt Reviewed-by: Randy Schacher Reviewed-by: Ray Jui --- drivers/net/bnxt/bnxt_hwrm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 460523624..ea40e4961 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1218,7 +1218,7 @@ static int bnxt_hwrm_vnic_plcmodes_qcfg(struct bnxt *bp, HWRM_PREP(req, VNIC_PLCMODES_QCFG); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); @@ -1246,7 +1246,7 @@ static int bnxt_hwrm_vnic_plcmodes_cfg(struct bnxt *bp, HWRM_PREP(req, VNIC_PLCMODES_CFG); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); req.flags = rte_cpu_to_le_32(pmode->flags); req.jumbo_thresh = rte_cpu_to_le_16(pmode->jumbo_thresh); req.hds_offset = rte_cpu_to_le_16(pmode->hds_offset); @@ -1490,7 +1490,7 @@ int bnxt_hwrm_vnic_plcmode_cfg(struct bnxt *bp, size -= RTE_PKTMBUF_HEADROOM; req.jumbo_thresh = rte_cpu_to_le_16(size); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); @@ -1526,7 +1526,7 @@ int bnxt_hwrm_vnic_tpa_cfg(struct bnxt *bp, rte_cpu_to_le_16(HWRM_VNIC_TPA_CFG_INPUT_MAX_AGGS_MAX); req.min_agg_len = rte_cpu_to_le_32(512); } - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); -- 2.14.2