From patchwork Sun Dec 20 11:23:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 7891791 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BF47B9F350 for ; Sun, 20 Dec 2015 11:24:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03A522047D for ; Sun, 20 Dec 2015 11:24:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EEE552047B for ; Sun, 20 Dec 2015 11:24:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932717AbbLTLYO (ORCPT ); Sun, 20 Dec 2015 06:24:14 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36787 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932597AbbLTLYN (ORCPT ); Sun, 20 Dec 2015 06:24:13 -0500 Received: by mail-wm0-f50.google.com with SMTP id p187so36665785wmp.1 for ; Sun, 20 Dec 2015 03:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leon-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=wFXXR0crGKliCtt2dtffkwopY2PGjWCNRYJc4zwV7sA=; b=z5zmQzUsGQxyGHt49yzIRSWmkYN8Jh6FboN3rFvxidH0Ph3cpVb7pSIQ+sOy/1DpRQ uU3y1+GnF4trchk+YBCMM73nRJ+G5s7kmgJ6EnmLTv/X9SweyNRG3SwhJdWj+reQgT2H L30Q5hgNxYqEfwM/W03IZsCQJDkuPD9ZVZcwLwKqgkPvEHqboS8TDdDtfNJD8WAoiT7r uLwpYLPgJjui//xBrnwdDAovGw7BmrD6COtylPYyF2etcHYelI3U5rdAg6HkHRQYr7PU h7oxQGF42CWEPD5i2Jd9RdUqjfASSXVIoBwb489ryFPo88bCAZl/OJzmIHiUdYS7OCoF bncA== 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:mime-version:content-type:content-transfer-encoding; bh=wFXXR0crGKliCtt2dtffkwopY2PGjWCNRYJc4zwV7sA=; b=QZeuCDMYfMpj3nPZtUMe/xUrXoJH+zRl8eTb/luKl7jDXEuWxcbz7nKmUT0sArBg6i iJV3QqEWqBc4FQoB/IWHTikC8fOeflxII6RhXtoByvu+qZY8Fd3IkhoJrjtn9p9B2IvA nGkBZbpxBCxNIXmdqjGbk5R1nXLhaacHf/eOP8E+4B8SU1NhQSPR0QSFj2DBa/M+hpCU VI+jrmiRk0pq4542//W3nf/+SnGQxg77RrQd1mYD+jmle6NMUZpdmF0BaDjrQ/fVKRz/ KrGUGm6dtF7NAqNxk6GYjE2ZZ3Ue+3V1D/gwHL8xc+Z+AEBvmTy7r49eO515UMVQp1C0 +kow== X-Gm-Message-State: ALoCoQko7R2WWX6MZn0ffMDQvGUir5oD2fVB436FHGIAAU3JzmwBoZmUhFLnr//lvjlJ27i+8U/GLkzVDhJL33GXHEcqysQXvA== X-Received: by 10.28.188.86 with SMTP id m83mr12941294wmf.51.1450610651890; Sun, 20 Dec 2015 03:24:11 -0800 (PST) Received: from localhost ([213.57.247.249]) by smtp.gmail.com with ESMTPSA id z63sm10532269wme.22.2015.12.20.03.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Dec 2015 03:24:11 -0800 (PST) From: Leon Romanovsky To: eli@mellanox.com Cc: linux-rdma@vger.kernel.org, Leon Romanovsky Subject: [PATCH libmlx5 1/2] libmlx5: Add cross-channel primitives Date: Sun, 20 Dec 2015 13:23:09 +0200 Message-Id: <1450610590-17361-2-git-send-email-leon@leon.nu> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450610590-17361-1-git-send-email-leon@leon.nu> References: <1450610590-17361-1-git-send-email-leon@leon.nu> MIME-Version: 1.0 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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: Leon Romanovsky The cross-channel feature relies on special primitives to send and receive work requests. * WAIT on CQ WR - This WR holds execution of subsequent requests on that queue until producer index of a CQ is met. • SEND_EN WR - This WR specifies value of producer index on the controlled send queue. It enables the execution of all WQEs up to this producer index. • RECEIVE_EN WR - Same as SEND_EN but related to a receive queue. Signed-off-by: Leon Romanovsky --- src/mlx5.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mlx5.h b/src/mlx5.h index 0c0b0278f66e..49e3374b4439 100644 --- a/src/mlx5.h +++ b/src/mlx5.h @@ -208,6 +208,10 @@ enum { MLX5_OPCODE_LOCAL_INVAL = 0x1b, MLX5_OPCODE_CONFIG_CMD = 0x1f, + MLX5_OPCODE_SEND_ENABLE = 0x17, + MLX5_OPCODE_RECV_ENABLE = 0x16, + MLX5_OPCODE_CQE_WAIT = 0x0f, + MLX5_RECV_OPCODE_RDMA_WRITE_IMM = 0x00, MLX5_RECV_OPCODE_SEND = 0x01, MLX5_RECV_OPCODE_SEND_IMM = 0x02,