From patchwork Sun Dec 11 14:18:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9469801 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5A3560761 for ; Sun, 11 Dec 2016 14:19:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A662428159 for ; Sun, 11 Dec 2016 14:19:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A0E2283F4; Sun, 11 Dec 2016 14:19:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56F5A28159 for ; Sun, 11 Dec 2016 14:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753232AbcLKOS7 (ORCPT ); Sun, 11 Dec 2016 09:18:59 -0500 Received: from mx0a-0016ce01.pphosted.com ([67.231.148.157]:36024 "EHLO mx0b-0016ce01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752898AbcLKOS6 (ORCPT ); Sun, 11 Dec 2016 09:18:58 -0500 Received: from pps.filterd (m0095336.ppops.net [127.0.0.1]) by mx0a-0016ce01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id uBBEI1Ja009646; Sun, 11 Dec 2016 06:18:46 -0800 Received: from avcashub1.qlogic.com ([198.186.0.115]) by mx0a-0016ce01.pphosted.com with ESMTP id 2798eh002c-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 11 Dec 2016 06:18:46 -0800 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by avcashub1.qlogic.org (10.1.4.190) with Microsoft SMTP Server id 14.3.235.1; Sun, 11 Dec 2016 06:18:45 -0800 From: Ram Amrani To: , CC: , , Ram Amrani , Ram Amrani Subject: [PATCH rdma-core 2/4] libqedr: clear the flags field in the WC Date: Sun, 11 Dec 2016 16:18:09 +0200 Message-ID: <1481465891-14789-3-git-send-email-Ram.Amrani@Cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1481465891-14789-1-git-send-email-Ram.Amrani@Cavium.com> References: <1481465891-14789-1-git-send-email-Ram.Amrani@Cavium.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8376 signatures=670775 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612110220 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the responder's WC is not zeroed we clear the flags field to avoid random flags. Signed-off-by: Ram Amrani --- providers/qedr/qelr_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index fae823c..80e4263 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -1676,6 +1676,7 @@ static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq, uint8_t flags; wc->opcode = IBV_WC_RECV; + wc->wc_flags = 0; FP_DP_VERBOSE(cxt->dbg_fp, QELR_MSG_CQ, "\n");