From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id A45479418 for ; Mon, 5 Oct 2015 19:55:46 +0200 (CEST) Received: by wicgb1 with SMTP id gb1so130872025wic.1 for ; Mon, 05 Oct 2015 10:55:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=R3k/urt+9L2gHafWcDQpeGDZS2wh5gF59f4kcxnOKSk=; b=ByY/ippMUcewWbsmKo5WqzGddchT+gyhaHm5ppKp26y70KY21X+p6rHGcb3FFSwE2F 61jMQuqvRZx7UGYcFTvKh0Duw6YhSId+yy0ZmBS8ESedlr8BfLcGMtPmwyl0WxKGGCCo rx+s4ATlrjq4v/oohQ9XZe0MwtpAiuBxQC/0f6B0h049U2AazXDUTUnGdXt87m7U1MoG XDipMjsKVN7He6d9KarXRXk+zqwyX+cirj6n63os7dXQcM6KTDuLQTdqCnvDiCeD7qBt CGTWm9GdC3fdT+D4zGi3wvI3Y2wFsmmFXJ0tz4ghsSaDB4apmfjE5DcfMJwiLyi4BtqQ RAhg== X-Gm-Message-State: ALoCoQnJAm8TfpaMy8Z4juj7+PHueDxmNeL8MKyoFDpauB1JzrsaXiiEjoWSrpk4tzigl0PxC6tJ X-Received: by 10.194.5.35 with SMTP id p3mr38161570wjp.132.1444067746556; Mon, 05 Oct 2015 10:55:46 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id fz1sm15810544wic.8.2015.10.05.10.55.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Oct 2015 10:55:46 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Mon, 5 Oct 2015 19:54:50 +0200 Message-Id: <1444067692-29645-16-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1444067692-29645-1-git-send-email-adrien.mazarguil@6wind.com> References: <1444067692-29645-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 15/17] mlx5: enable multi packet send WR in TX CQ 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: Mon, 05 Oct 2015 17:55:47 -0000 For adapters that support it, this flag improves performance outside of VF context. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/Makefile | 5 +++++ drivers/net/mlx5/mlx5_txq.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 54f1e89..6ced4ac 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -116,6 +116,11 @@ mlx5_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh HAVE_EXP_QUERY_DEVICE \ infiniband/verbs.h \ type 'struct ibv_exp_device_attr' $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_EXP_QP_BURST_CREATE_ENABLE_MULTI_PACKET_SEND_WR \ + infiniband/verbs.h \ + enum IBV_EXP_QP_BURST_CREATE_ENABLE_MULTI_PACKET_SEND_WR \ + $(AUTOCONF_OUTPUT) mlx5.o: mlx5_autoconf.h diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index a53b128..aa7581f 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -395,6 +395,13 @@ txq_setup(struct rte_eth_dev *dev, struct txq *txq, uint16_t desc, .intf_scope = IBV_EXP_INTF_GLOBAL, .intf = IBV_EXP_INTF_QP_BURST, .obj = tmpl.qp, +#ifdef HAVE_EXP_QP_BURST_CREATE_ENABLE_MULTI_PACKET_SEND_WR + /* Multi packet send WR can only be used outside of VF. */ + .family_flags = + (!priv->vf ? + IBV_EXP_QP_BURST_CREATE_ENABLE_MULTI_PACKET_SEND_WR : + 0), +#endif }; tmpl.if_qp = ibv_exp_query_intf(priv->ctx, &attr.params, &status); if (tmpl.if_qp == NULL) { -- 2.1.0