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: 416809 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DEDB314009B for ; Tue, 2 Dec 2014 21:26:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754520AbaLBK0w (ORCPT ); Tue, 2 Dec 2014 05:26:52 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:58013 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754485AbaLBK0r (ORCPT ); Tue, 2 Dec 2014 05:26:47 -0500 Received: by mail-wg0-f50.google.com with SMTP id k14so16439297wgh.23 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=R5BOQKupkfw/JSza7GK01PQMJNHF1YvUGZuP6ML4o/X3gYh5A+LbThzPTlWgm6QC3+ AqUlBgljiNNJpPUTTpVdEWKKe3ysVOnhMyW0wC0anqyb0tH4JvZrbCQ5QS3uaKrXqaGJ zoFmS2O1WnIkwv2+yoYKDo99VCiOmHf9Y6/uHvD0mUM6023nNhdEbfPnrouWsqUvuhVs IZtMyAR0ptdHZ3GDdajZbBsPX/dLCaf74xqF6YnAkhyHtCcA46fuOvyl3LspfPxOEQPX ezlz0lYgnW96wzCkWl1CdD2hsnsEHV2FBuUtB1SpG/x9WS4Zg75BP/p+8IRa1F8FbdnZ oelQ== X-Gm-Message-State: ALoCoQn6CWL9AKZCQeqcEbG9scKSbmKyBGbq12/EVkrDWe2t+vG//6j/aBvTTvnyCuuJRKyw4bWD 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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));