From patchwork Mon Jun 29 01:33:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 72394 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A8C27A0350; Mon, 29 Jun 2020 03:33:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B0241BE85; Mon, 29 Jun 2020 03:33:42 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 781971BC25; Mon, 29 Jun 2020 03:33:40 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05T1RvWc010174; Sun, 28 Jun 2020 18:33:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=4f/8zQdGFnK1ThBFM1dIdaLOwoh5PZow32RoTSSK5JY=; b=SSdXNwNPcGDPmYKGal/VlOeIk7XdiMrPpoAPkSA173jbKFa16cLpJbazGsSs5V56Sfqq +S0A/NbG+WKoFY+fcMZgjE0PPYb0V/ahk35ehfcWVh9LLhy7danj1MHUWlnBKQQ5NBur +mheWJ9J9cY3yo5R4IlH8HktJUivHJhB/XLKl0zY1Ln5SuogJ79RIE2zFhr1KWlkHKfM UofA+gKNY1Sg2UUOFDLwQspDP53a76K2YFqldyEI8Yg9Tc/hiSUaZehfKAwkRGN5DThm 7mzaBh6L1WKyRMNXMRvKxKT2EuUsRW8tC24rFbyPf8zaWO1p9WLegZv3uyXgw6laAluI 4g== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 31x5mnd04x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 28 Jun 2020 18:33:39 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 28 Jun 2020 18:33:38 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 28 Jun 2020 18:33:38 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.161.240]) by maili.marvell.com (Postfix) with ESMTP id 2CECB3F703F; Sun, 28 Jun 2020 18:33:35 -0700 (PDT) From: To: , Pavan Nikhilesh CC: , Date: Mon, 29 Jun 2020 07:03:27 +0530 Message-ID: <20200629013329.5297-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200629013329.5297-1-pbhagavatula@marvell.com> References: <20200629013329.5297-1-pbhagavatula@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-06-28_11:2020-06-26, 2020-06-28 signatures=0 Subject: [dpdk-dev] [PATCH 2/3] event/octeontx2: fix sub event type violation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh In OCTEONTX2 event device we use sub_event_type to store the ethernet port identifier when we receive work from OCTEONTX2 ethernet device. This violates the event device spec as sub_event_type should be 0 in the initial receive stage. Set sub_event_type to 0 after copying the port id. Fixes: 0fe4accd8ec8 ("event/octeontx2: add Rx adapter fastpath ops") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx2/otx2_worker_dual.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/event/octeontx2/otx2_worker_dual.h b/drivers/event/octeontx2/otx2_worker_dual.h index c88420eb4..60aa14cca 100644 --- a/drivers/event/octeontx2/otx2_worker_dual.h +++ b/drivers/event/octeontx2/otx2_worker_dual.h @@ -65,8 +65,11 @@ otx2_ssogws_dual_get_work(struct otx2_ssogws_state *ws, if (event.sched_type != SSO_TT_EMPTY && event.event_type == RTE_EVENT_TYPE_ETHDEV) { - otx2_wqe_to_mbuf(get_work1, mbuf, event.sub_event_type, - (uint32_t) event.get_work0, flags, lookup_mem); + uint8_t port = event.sub_event_type; + + event.sub_event_type = 0; + otx2_wqe_to_mbuf(get_work1, mbuf, port, + event.flow_id, flags, lookup_mem); /* Extracting tstamp, if PTP enabled. CGX will prepend the * timestamp at starting of packet data and it can be derieved * from WQE 9 dword which corresponds to SG iova.