From patchwork Sun Jan 19 10:37:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 3509141 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 9130D9F169 for ; Sun, 19 Jan 2014 10:44:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C40602010E for ; Sun, 19 Jan 2014 10:44:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE9F22010C for ; Sun, 19 Jan 2014 10:44:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbaASKoK (ORCPT ); Sun, 19 Jan 2014 05:44:10 -0500 Received: from mailp.voltaire.com ([193.47.165.129]:49309 "EHLO mellanox.co.il" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751931AbaASKoJ (ORCPT ); Sun, 19 Jan 2014 05:44:09 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from sagig@mellanox.com) with SMTP; 19 Jan 2014 12:37:39 +0200 Received: from r-vnc02.mtr.labs.mlnx (r-vnc02.mtr.labs.mlnx [172.30.0.127]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id s0JAbdiC018954; Sun, 19 Jan 2014 12:37:39 +0200 Received: from r-vnc02.mtr.labs.mlnx (r-vnc02 [127.0.0.1]) by r-vnc02.mtr.labs.mlnx (8.14.4/8.14.4) with ESMTP id s0JAbd1J009841; Sun, 19 Jan 2014 12:37:39 +0200 Received: (from sagig@localhost) by r-vnc02.mtr.labs.mlnx (8.14.4/8.14.4/Submit) id s0JAbcUd009839; Sun, 19 Jan 2014 12:37:38 +0200 From: Sagi Grimberg To: nab@linux-iscsi.org Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH] IB/mlx5: Fix signature rule constants according to FW specifications Date: Sun, 19 Jan 2014 12:37:38 +0200 Message-Id: <1390127858-9806-1-git-send-email-sagig@mellanox.com> X-Mailer: git-send-email 1.7.8.2 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Use DIF CRC INC with apptag escape (0x8) and update IP-CSUM entries. Signed-off-by: Sagi Grimberg --- drivers/infiniband/hw/mlx5/qp.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 7981620..58c4735 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1952,9 +1952,9 @@ static int format_selector(struct ib_sig_attrs *attr, { #define FORMAT_DIF_NONE 0 -#define FORMAT_DIF_CRC_INC 4 -#define FORMAT_DIF_CSUM_INC 12 -#define FORMAT_DIF_CRC_NO_INC 13 +#define FORMAT_DIF_CRC_INC 8 +#define FORMAT_DIF_CRC_NO_INC 12 +#define FORMAT_DIF_CSUM_INC 13 #define FORMAT_DIF_CSUM_NO_INC 14 switch (domain->sig.dif.type) {