From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0069.outbound.protection.outlook.com [104.47.32.69]) by dpdk.org (Postfix) with ESMTP id 5EFC62C55 for ; Tue, 28 Nov 2017 15:59:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vVEyrDEOLUNkpUD8o1aS+kWvufbHFnkzrt+wWQiKtyo=; b=bzwWAOlwb4OAjgyfZ82dIiAy0yv+DFCihWaun5ifdVZ6Ieqd2xaVDeGR5ulmLEl6TustFPZtUw0/zxGIBU1H5T5pmS1BqOE5z4re3LR4JHXV68nxBQ++8Jb1xXnifI4UHHtjclVL8Xhjmirl/rNpsaQPZxlMiY0tfaW5iZ0/Lq0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 14:59:28 +0000 From: Pavan Nikhilesh To: santosh.shukla@caviumnetworks.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 28 Nov 2017 20:28:55 +0530 Message-Id: <20171128145855.27106-2-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171128145855.27106-1-pbhagavatula@caviumnetworks.com> References: <20171128145855.27106-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0108.INDPRD01.PROD.OUTLOOK.COM (10.174.208.24) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93668ef4-aa2b-4321-5661-08d53670a06b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:/kfP2U9+FYxJRaiVa9OssaIjebB/eXXJ6lPVVMd798mC99Ii62Wzj6IPYFppYVS4Awn2dnBz8l88xQyr9PY/lLamnHa/jjtJdq/tWvM/+R36i70wrL7GT6EHaGRYFOfWMQALhxaplcTlrWVKibO6Xv6JjaBTzEdrB/ZL3dHK2YXry7LYwWZhsW+ROI1mrR5M4sX3lIG3mLUc7x2LBAUqtnD7D1j9dE2sHN+WUQwbcFTs+QOapHJpLGSOHlKuGcvm; 25:QibObxTrp78NQOmP1Wd8Kuyzbctyugkr62Wovj/C4rz/tH3S/hG81Wm12R/t4F7Q/MSJGDE/wfwmF2f+MiYS3q56s4liKY0c4gn1U/xNnRAB8niD+k3+G6Zz/g1gyuMJpAkJ3ly7bXh1qGonjj1AY8Yar0sShzw+x3GdtzKsQWsnQPRkYAyIY3Uv5hkWnzDylB7vON/Y7f98mxS/QBXsHQoal4xSSXGAeg8SVvc4dySEBQVVq6p8k5oW7SRCXhbBh2zHHDVtpOZ0Htb/OOWk3oenWOeBDCrG8o1AuJ44nSaE7uTf6z5YCQGEfNxxinsZWw4OGsL4CW/OEvVnLoIcNA==; 31:TXl9C59xjbj7+ZPJxkcnYzZaCSfFQ1yHgz5vzX/YT9l00Hcrp0gdF94V7NL9g2EORiZxaQ8Z9YtPYgvg7F/Fe68SYOYpmPPUmdIZGJ8X21a2k0CrXsY2lP2c1ZTw+7HvUnWt3tQQnYZLqFqfZ/nQyT/kZp0IbkNo0so2s04DtR2sQ/Y9SbraWPKZcUbO9AIbYcNYu0YQ8tj9R21pEf2AZB6tKOn4yVx53/bbfKak5E0= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:fclpz6Nh7DWJ6mOGUPPbdcKJKVdSo0dxvu/BIv5koOX40aeCpqH5P03Gp0Qw4yxSoY8ST3qWd0DoBucrHQbr6o81UY1yhjRIsmGvuTWyeadghaxbuVBgy8opssteiKhz+RtXPiqL9nrCk6KLKPbbs2ZBy5DqJcO+25SidK5EAWAfUfc8bEprFQyv6RCGdB8JRtxREvpdTyc9gDA6o668Mvk7hB77iJebzXOt1BIgJfBpix7g8gfWLu1cgzkoOk85uoVBmjevi04f1lblEn3LXN2hQblvKfOFw+iyhKvao2ikdfNHgo5CX0v46rmskPoFPV2WalYdTdU/Wisl0tT5C/vUl7cbdEFsVLF2bW2NOl/2CdQUqWU4LBqkUAL1yrBYCHsEfbsrfc2SWEQ0Ut9vwZa1TDTjXJ1qZLFOBtXSUxgycrig/v9NpF3vOTGIFrZI6wRIgzUhb0xJPBkAnM5LqmzJyBCCC0c1TFRQXFuMMeI4m1SncNqsq6IDvikNX/aqBbtDj9LYQw6BzvjIZaSt5PwoPuJEGeCfRkUBmUX19JRGq038CtkocjD3PHD9oNGlfUK7osJW9HvLubeP3CUPbOM2TR5816oiK68K07jYiyU=; 4:8omUqZwqBGiBHL6GtfiL5uNLxgS4IgW9kA4BYDRHPRcQgdN9H2duJOcmVKCFYRxtFvF1PUbJsGa9qvoj4gxPjZN3CA8kVVDK79tI5ldbzaF3GE+vX6TbJrE8AvnWSeoCedUqufKWPd63x0L9hW/Pl43kmDZSe/gxYHd84euGnh3Mavke/dlZ00QVR0n5dnt3uTm6/6lSpOs6fgwMo+eQOQ4TgiyYttm0Ff6wlXSy1dpilrbBToTR3NdYuzgEiq+xecsetR8RnzvjV18T1mjsvA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0505147DDB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(346002)(376002)(189002)(199003)(105586002)(4326008)(47776003)(50466002)(6506006)(106356001)(97736004)(72206003)(5009440100003)(478600001)(16586007)(5660300001)(53936002)(42882006)(316002)(76176999)(2950100002)(8936002)(51416003)(53416004)(189998001)(52116002)(69596002)(6666003)(1076002)(48376002)(68736007)(50986999)(107886003)(50226002)(305945005)(6116002)(3846002)(16526018)(6486002)(66066001)(7736002)(25786009)(2906002)(8676002)(101416001)(81166006)(81156014)(6512007)(33646002)(36756003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3469; 23:YrQm6nqPcxuyB28RFRGF1UTi21jezr0MsMDYu+YJg?= =?us-ascii?Q?BaJPrPJxENXAw6sMdtuphZfvlHY5waGjpRF2wBfZ4k67GGdBU8Eq3X7i1wDd?= =?us-ascii?Q?O2Fbd9FKZb8bYRGKiOMpTKxHrE7OC3d0ScesbfaZJy/kEOQT7MKzQxwokdbd?= =?us-ascii?Q?8p9o6YBWY+xl/Qqy+wb/QcLCJj1oKyeXLRWraZ6r3YOJuTZuVFCjMgqkBD6D?= =?us-ascii?Q?UAcUb9DuB1qrYrElncAUIlRmoZz+jZsCyAKM7pmx4o6+Mge4NoE6GhpXjB53?= =?us-ascii?Q?a6WFE4whQq5/Twzrvndh40U++tPSyM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PM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 14:59:28.2950 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93668ef4-aa2b-4321-5661-08d53670a06b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: [dpdk-dev] [PATCH 2/2] event/octeontx: fix Rx adapter port id mapping 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: , X-List-Received-Date: Tue, 28 Nov 2017 14:59:32 -0000 When octeontx event dev receives a packet for the event Rx adapter, the mbuf port id should contain the appropriate ethdev id instead of internal channel info. Fixes: 45a914c5bd71 ("event/octeontx: support event Rx adapter") Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx/ssovf_worker.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/event/octeontx/ssovf_worker.h b/drivers/event/octeontx/ssovf_worker.h index bf76ac880..b382232b0 100644 --- a/drivers/event/octeontx/ssovf_worker.h +++ b/drivers/event/octeontx/ssovf_worker.h @@ -53,7 +53,7 @@ enum { /* SSO Operations */ static __rte_always_inline struct rte_mbuf * -ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_id) +ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_info) { struct rte_mbuf *mbuf; octtx_wqe_t *wqe = (octtx_wqe_t *)(uintptr_t)work; @@ -69,7 +69,7 @@ ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_id) mbuf->data_len = mbuf->pkt_len; mbuf->nb_segs = 1; mbuf->ol_flags = 0; - mbuf->port = port_id; + mbuf->port = octeontx_pchan_map[port_info >> 4][port_info & 0xF]; rte_mbuf_refcnt_set(mbuf, 1); return mbuf; } @@ -89,7 +89,7 @@ ssows_get_work(struct ssows *ws, struct rte_event *ev) ev->event = sched_type_queue | (get_work0 & 0xffffffff); if (get_work1 && ev->event_type == RTE_EVENT_TYPE_ETHDEV) { ev->mbuf = ssovf_octeontx_wqe_to_pkt(get_work1, - (ev->event >> 20) & 0xF); + (ev->event >> 20) & 0x7F); } else { ev->u64 = get_work1; } -- 2.14.1