From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id BCFFE8E56 for ; Wed, 8 Jun 2016 11:44:38 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id v199so55273727wmv.0 for ; Wed, 08 Jun 2016 02:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z1lbnlCt2a6/KSHYda3g8isKMv+oJCF20iEnab370wc=; b=YpGbgbQYuBbnkR845IPWkVxKA+B1EnjgS8UNfO+2TMQ7H92i3oTOYW/QL32HFBsjVb Vc6+eI4Xi1WYj/e/HBkhJaVOM0jVzLkBogYeCYtTDBRtRp+nJuv9biBhhK+rFT4G/MhX hJvCJalFjFEC/py8dYtRenhNOiZkVB4NqSMVaw1OCzEs3ocaFXcRhG9KNvjwtbjE24Io 0ID3ap9NQzMLgZpEJG2IHxIIx5b86wpCRXCCW9SqaIReb6qOBc4bnXkFZJTjtV7UH/Fy N1s7vGITVRmF90EkcjNIQAABFQEYv69OF+3opgfSTzalgFS70Ws1LpxU7FE2PfKjSO9N g3vA== 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=Z1lbnlCt2a6/KSHYda3g8isKMv+oJCF20iEnab370wc=; b=TTBZ1sO+kVndsJsriHMa4rT0v0iPCDIzoixa5/8Lzn2gzm/4R08JVy+Ig3ch8y9LfL H3Qyvh1kh53lqvuINVLKJQbpBEkmAPgbuxBkFjsWR4jaGUUHIB04JE0/Rc6w0a2UlS5Z xrSLAwj3vZsGyKwesEm/UkrgRMqA5rno8iNwvEEw9+N1+O86k8IWGquTMRAqo1HF396L lalD3mzEl2rxc+daMlcXyhb9DkFMLPdOf6N7fk6vn9HfBw3lGGJDcs5t8GwZCZ4a5Avp MdhPnPSuO+pj2ZiykFTedNt0u2HF3rrDfAibRhtVbp8lldjjWy5ZYOlvWsbpeiPnwoGm RFXA== X-Gm-Message-State: ALyK8tLM6XCB/BM6095RPs2erg+Zh98JSU3T6rWwaK1UXBGLxIE40F9h9w7noafI/QGLuwbd X-Received: by 10.195.8.40 with SMTP id dh8mr4090100wjd.178.1465379078088; Wed, 08 Jun 2016 02:44:38 -0700 (PDT) Received: from ping.vm.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id xw8sm479085wjb.30.2016.06.08.02.44.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2016 02:44:37 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil Date: Wed, 8 Jun 2016 11:43:25 +0200 Message-Id: <1465379011-24646-2-git-send-email-nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465379011-24646-1-git-send-email-nelio.laranjeiro@6wind.com> References: <1465379011-24646-1-git-send-email-nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH 1/7] mlx: remove unused memory region property X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2016 09:44:38 -0000 Memory regions are always local with raw Ethernet queues, drop the remote property as it adds extra processing on the hardware side. Signed-off-by: Nelio Laranjeiro Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 4 ++-- drivers/net/mlx5/mlx5_rxtx.c | 2 +- drivers/net/mlx5/mlx5_txq.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 9ed1491..661c49f 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -998,7 +998,7 @@ txq_alloc_elts(struct txq *txq, unsigned int elts_n) } mr_linear = ibv_reg_mr(txq->priv->pd, elts_linear, sizeof(*elts_linear), - (IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE)); + IBV_ACCESS_LOCAL_WRITE); if (mr_linear == NULL) { ERROR("%p: unable to configure MR, ibv_reg_mr() failed", (void *)txq); @@ -1310,7 +1310,7 @@ mlx4_mp2mr(struct ibv_pd *pd, struct rte_mempool *mp) return ibv_reg_mr(pd, (void *)start, end - start, - IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE); + IBV_ACCESS_LOCAL_WRITE); } /** diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 29bfcec..7f02641 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -252,7 +252,7 @@ mlx5_mp2mr(struct ibv_pd *pd, struct rte_mempool *mp) return ibv_reg_mr(pd, (void *)start, end - start, - IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE); + IBV_ACCESS_LOCAL_WRITE); } /** diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 31ce53a..e20df21 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -95,7 +95,7 @@ txq_alloc_elts(struct txq *txq, unsigned int elts_n) } mr_linear = ibv_reg_mr(txq->priv->pd, elts_linear, sizeof(*elts_linear), - (IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE)); + IBV_ACCESS_LOCAL_WRITE); if (mr_linear == NULL) { ERROR("%p: unable to configure MR, ibv_reg_mr() failed", (void *)txq); -- 2.1.4