From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9FDE0A3168 for ; Wed, 16 Oct 2019 15:22:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B66C1E87C; Wed, 16 Oct 2019 15:22:14 +0200 (CEST) Received: from IND01-BO1-obe.outbound.protection.outlook.com (mail-eopbgr1390089.outbound.protection.outlook.com [40.107.139.89]) by dpdk.org (Postfix) with ESMTP id D0AED1E871 for ; Wed, 16 Oct 2019 15:22:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDDGM8QRUE6rqbW544+HH4Nm/mNzOPv1ySoCidjkDj+sWk4x5fxwztq3e25PwpK7Gw9yTSc6eL8W4NpbX9LfpWa+7w4cL7HJXvJCWc7yohW8kKvp3OIGj4i/Vyk6jQZUA7IQ4CeTgpkzcu7hG7WhjQbmDOiudUllJnLITVzZ8iWmti8LmiuXJJHuDi+jm5G3oEazoqBNLUen+3J2Dh/uEbxwLpvF1rfF+G4lBeqFIBXZ3UxXrn8faCEXdjLBGkNWXlnETYXDOI5HWdrHWwwSxiXlRGeTp4gk5/QLBkTRdS93mJP31OCeRR/oDDCSAHvCODJSXF+U5hYbsbATBp1xkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jp3M2ZCLf6wDETvB4X9gGP8kAunU7jeik5FTjxlv/1c=; b=WDIy7O3ihTN1NqwzqdJIqfKk3chwESwKhv3dISHEd8cpHq4oi+AKHLNL528kF/qJk0b8ttt7wMxvW3B9lGKaF5vg75nVjU3UZgM7De8TbxTpcti9niyuzEkrLgNEGdhLADUZVWJTXgc28/+cnIwpNtLLvukFGdduQOwUyTP2S+tYjogYznEwRtvXsacePEMy/jGu4od9zeSI0uoodyBItlmrASxfYBaBx3NdrHSfliZeWViXjlNRPAkFn2i4auRPb/Drte8JUdj/HK4nsBq1MOq2GjcYVCTJBwBauf9GPGUDCn0RhGWimx+uC+bAfpaMQn+MTWA0YYcR3JjEAiYZaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=benisontech.com; dmarc=pass action=none header.from=benisontech.com; dkim=pass header.d=benisontech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benisontech.onmicrosoft.com; s=selector2-benisontech-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jp3M2ZCLf6wDETvB4X9gGP8kAunU7jeik5FTjxlv/1c=; b=xI0XtRdKk/7foXoNUxxFpzDYGf9W5Tpl6kka7fWtXUKO8bZCRWZTAyYnUtRhnx79pFlmJq+YQA7OtWe6FDq392O2FElPDP8krHL9EqrKwDkmzgEWAcOzygbDh/8dCNREKGI7gp1y959YizYv5/ZskC/FhYNXiMKS7tddMdgMYOA= Received: from BM1PR0101MB1492.INDPRD01.PROD.OUTLOOK.COM (52.133.128.140) by BM1PR0101MB2018.INDPRD01.PROD.OUTLOOK.COM (10.174.222.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Wed, 16 Oct 2019 13:22:10 +0000 Received: from BM1PR0101MB1492.INDPRD01.PROD.OUTLOOK.COM ([fe80::cc3f:3130:34ad:6130]) by BM1PR0101MB1492.INDPRD01.PROD.OUTLOOK.COM ([fe80::cc3f:3130:34ad:6130%11]) with mapi id 15.20.2347.023; Wed, 16 Oct 2019 13:22:10 +0000 From: Anand Sunkad To: Jakub Grajciar CC: "dev@dpdk.org" , Vivek Gupta , Thomas Mulamangalath , Anand Sunkad Thread-Topic: [PATCH] net/memif: add multiple memif data transmission support Thread-Index: AQHVhCS3QhB6QP0RNke/c6zAlcP55Q== Date: Wed, 16 Oct 2019 13:22:10 +0000 Message-ID: <1571232181-5874-1-git-send-email-anand.sunkad@benisontech.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0049.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::13) To BM1PR0101MB1492.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:21::12) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anand.sunkad@benisontech.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-originating-ip: [106.51.39.163] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f1952209-1f9c-4270-fed1-08d7523bd98b x-ms-traffictypediagnostic: BM1PR0101MB2018: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-forefront-prvs: 0192E812EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(136003)(376002)(396003)(39840400004)(189003)(199004)(86362001)(54906003)(316002)(6916009)(36756003)(256004)(66066001)(14454004)(6486002)(71200400001)(71190400001)(6436002)(9456002)(5660300002)(52116002)(99286004)(386003)(102836004)(486006)(55236004)(476003)(44832011)(186003)(66476007)(66556008)(66946007)(66446008)(2616005)(64756008)(6506007)(6116002)(3846002)(107886003)(305945005)(4326008)(7736002)(50226002)(8936002)(81166006)(25786009)(8676002)(81156014)(508600001)(2906002)(6512007)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:BM1PR0101MB2018; H:BM1PR0101MB1492.INDPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: benisontech.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dhvu1pXIHLjqa/WI6eYnvKJdts98N6H/KgxL1n4I8GLK041WGUhVdoVM8Cx5MB+3+3WgPRNx8RPDslo+4zXsN5DlIEPaOJOz/OoAUnXaKW42ywD0TeR/X/OaPQEHapoWxK9oAgYkFdxFFMUxkgdeYxZEsZgI4Vq+avBvgLCxGh6kIzFZDncY17GY7ZO7KOLpGFuFrmTNs60CmzuXlyS/ECDKCC7RsYmYdA9Zynj23rSMi4Z/idPzZvsuE42tlqntb49hefpqblOyYzfkNlagBnGcXzfW1JtJJmNXR2uyg2wFQACW/g7UM8heSPzm4Xfp3+8meSl/STOCkPJLA1FSVs2DEM6iseSEHtyLUdsVkCIQ9M9xvXWlks4ubiBeUXSsM4GsvT02QP4gSD7ZRoJ1gy+zEFUykRX5rMXDYS+ibDU= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: benisontech.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1952209-1f9c-4270-fed1-08d7523bd98b X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2019 13:22:10.4352 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9e8138c9-2fcf-4503-a2f2-bd5cb21da406 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x599I+34eWGGIJtKW4EfNxzwurC2fYUGeLdQ3/BQ7ah7NTGWuPhAvs/fBSYSIWxRCAf2Y7xR/5z3zGLJ7VW7hd9JkbS6NbrVwKn/US+faDE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BM1PR0101MB2018 Subject: [dpdk-dev] [PATCH] net/memif: add multiple memif data transmission support 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" When Multiple slave/master Memif interfaces are created in single process data transmission over second connection is not successful. Issue is because of "mq->in_port" is not initialized with "dev->data->port_id" in memif_msg_enq_add_ring() and memif_msg_receive_add_ring() functions, and while transmitting packets over second connection in eth_memif_tx function it refer "mq->in_port" which is always zero, and leads to data transmission always in 0th port. To mitigate the issue,"mq->in_port" is initialized with "dev->data->port_id" in memif_msg_enq_add_ring() and memif_msg_receive_add_ring() functions. Signed-off-by: Anand Sunkad --- drivers/net/memif/memif_socket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/memif/memif_socket.c b/drivers/net/memif/memif_soc= ket.c index 0c71f6c..ef8c509 100644 --- a/drivers/net/memif/memif_socket.c +++ b/drivers/net/memif/memif_socket.c @@ -322,6 +322,7 @@ mq->log2_ring_size =3D ar->log2_ring_size; mq->region =3D ar->region; mq->ring_offset =3D ar->offset; + mq->in_port =3D dev->data->port_id; =20 return 0; } @@ -464,6 +465,7 @@ ar->log2_ring_size =3D mq->log2_ring_size; ar->flags =3D (type =3D=3D MEMIF_RING_S2M) ? MEMIF_MSG_ADD_RING_FLAG_S2M = : 0; ar->private_hdr_size =3D 0; + mq->in_port =3D dev->data->port_id; =20 return 0; } --=20 1.9.1