From patchwork Tue Dec 2 10:26:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5419141 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8DE0A9F1C5 for ; Tue, 2 Dec 2014 10:26:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C15AF2027D for ; Tue, 2 Dec 2014 10:26:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E824202AE for ; Tue, 2 Dec 2014 10:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754370AbaLBK0t (ORCPT ); Tue, 2 Dec 2014 05:26:49 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:33598 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479AbaLBK0q (ORCPT ); Tue, 2 Dec 2014 05:26:46 -0500 Received: by mail-wg0-f52.google.com with SMTP id a1so16550295wgh.11 for ; Tue, 02 Dec 2014 02:26:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5JWQNZReZpe5nDhIzRCID++OkM7MNRdKq2xGJDj4V7Y=; b=P6/rjq7sGZMwYkr1oMCRWW8G/x5ab+NP84rTAS4SLDGdpysAf8xoxlVi4l/259oqOq OR8BAaT2a7tHz5AzQYJAsnjaryD6MAYt7VvxB8D+Si6C0VZ21qpocY0BrIyDzmpSt221 vvtI3uuwMxQLQhL8p6AAOhzmgM2R86mnlbH8GerF4smxplaEn+mpQrcEpelng3a967Bx 8m6ZUj2UEz2IG+jRBfzVSH36xyUC9fQ2SQu6fvgS2GqDCCX1ommIM6uhUjPZtvA9Ft+f n1g0N87qSuGYSBB1rhoBej5I54i6EjUtR3RfEEZ1ktRoyEbJw8EHClKwEmTq5e9Tp+IN pa4Q== X-Gm-Message-State: ALoCoQkK5Fkm9pvv/QaOLK7zpfygCizpfyXWAJVBE0bsjZN3M1HP0XeAD7vQ6Q7X5epIOgxb+kzp X-Received: by 10.180.90.165 with SMTP id bx5mr49918743wib.15.1417516005665; Tue, 02 Dec 2014 02:26:45 -0800 (PST) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPSA id mc10sm45774755wic.24.2014.12.02.02.26.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Dec 2014 02:26:45 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: davem@davemloft.net Cc: roland@kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, ogerlitz@mellanox.com, amirv@mellanox.com, Majd Dibbiny , Eli Cohen Subject: [PATCH net-next 6/9] net/mlx5_core: Clear outbox of dealloc uar Date: Tue, 2 Dec 2014 12:26:16 +0200 Message-Id: <1417515979-22418-7-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417515979-22418-1-git-send-email-eli@mellanox.com> References: <1417515979-22418-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Majd Dibbiny The outbox should be cleared before executing the command. Signed-off-by: Majd Dibbiny Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/uar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/uar.c b/drivers/net/ethernet/mellanox/mlx5/core/uar.c index 0a6348cefc01..06801d6f595e 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/uar.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/uar.c @@ -96,6 +96,7 @@ int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn) int err; memset(&in, 0, sizeof(in)); + memset(&out, 0, sizeof(out)); in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_UAR); in.uarn = cpu_to_be32(uarn); err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out));