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 7D9BCA0555; Wed, 19 Feb 2020 14:06:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 59E101B951; Wed, 19 Feb 2020 14:06:38 +0100 (CET) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by dpdk.org (Postfix) with ESMTP id 4C1CC25B3 for ; Wed, 19 Feb 2020 14:06:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=865; q=dns/txt; s=iport; t=1582117597; x=1583327197; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=sP8HkTH4nvE2fQdETe8Wu87hpM0rBvL1YKHrhxWw8aM=; b=XIj5YUTnGmpbEEZTuSd0QiuH6/Al3E4x7PkktoetpPSIf2kNhhPT1dl9 nWqnpct9NXAW4+o6FfDkmKc7udELXA6rXHPSmP1+u3Ac9iEDtm5G3+vfG nOZjBIKt4DeWjAFGYcAFp0sBc4EzA1vNElafXgRQOO/qy2BGA1KKXpnxK I=; IronPort-PHdr: =?us-ascii?q?9a23=3AQ+5BtheCjULLHYWGC0zdnhcUlGMj4e+mNxMJ6p?= =?us-ascii?q?chl7NFe7ii+JKnJkHE+PFxlwGQD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFn?= =?us-ascii?q?pnwd4TgxRmBceEDUPhK/u/bSMgFcZJVVZN9HCgOk8TE8H7NBXf?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BuAQDfMU1e/4oNJK1mHQEBAQkBEQU?= =?us-ascii?q?FAYFpBgELAYFTUAWBRCAECyoKh1ADinBOghGJYo4vgS6BJANUCQEBAQwBAS0?= =?us-ascii?q?CBAEBhEACggQkNgcOAgMNAQEFAQEBAgEFBG2FNwyFZgEBAQEDEi4BATgLBAI?= =?us-ascii?q?BCBEEAQEvIREdCAIEARIIGoVPAy4BAgGiRQKBOYhigieCfwEBBYVJDQuCDAm?= =?us-ascii?q?BOAGMIxqCAIFYgkw+ghuCMoNAgiyvUUQKHoIdkiqEUpsriwiDZ4snkB4CBAI?= =?us-ascii?q?EBQIOAQEFgVkGLIFYcBWDJ1AYDY4dg3NBihJ0gSmMWgGBDwEB?= X-IronPort-AV: E=Sophos;i="5.70,459,1574121600"; d="scan'208";a="432356867" Received: from alln-core-5.cisco.com ([173.36.13.138]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 19 Feb 2020 13:06:35 +0000 Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by alln-core-5.cisco.com (8.15.2/8.15.2) with ESMTPS id 01JD6ZVV003605 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 19 Feb 2020 13:06:35 GMT Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 19 Feb 2020 07:06:35 -0600 Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 19 Feb 2020 07:06:34 -0600 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 19 Feb 2020 07:06:34 -0600 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VY4Ji1QyIKApau1T6ZmQ4xDNNC/tSn+U9UFgAa5J4HPkJHvC+oyDG+knU7b+Ss96cCruioE4A3f7suxTX6Fc3SZEPLS3AfjbvzbZMa7PMX1XM53khYOx7s3OD7+vyl8YYyH6/+F4AAn7G/qU1QGvbG5kxSrr2KITNsTGNpw1AApDFcO38e2Ok9OG+4/snfYRrF5JsUotmOkEiEb9I1ggSM2yYDcG+bzJ1nW69h36Xciktd6h5oH7sxrIflbg3fJaTnh/iO6fcC5xoHfaVC0qZ9Mn48DH+1RcBkiRjtD/s+ubgkPShy0Ihxu5RW7UWxRAqt7Amw8ejbAZhyVz7W3ldg== 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=sP8HkTH4nvE2fQdETe8Wu87hpM0rBvL1YKHrhxWw8aM=; b=iSs++WbcyDyJ1PeVqlE9Rc64p/C4PGWQTNIEvMV8bHr6FHm/47L60l3cXXDYAWgDzvT4DkhzQsf/zBJqqA5E7on6nGKqZz1L44iSGYnNKfohNWc3DDndKhdfFRztiM36ulULyBFgLrB5CMOHgn8Bto1AQf5knfzz2Gs0nxkqNIYB+MNKGdmAsRi341IeUQkVbiwJekOvv7jZcnL4kOkKLTYXrtPj08BW6TrXu/ZijPyIxVEnioqm3KJeof0Le+AF0y7Ettvd3spobuvN/6N9/K0jrBz850qp9WVDNboEKgJoKtXhhtubruxFnfMx0+pg+sXtwhTdzeFDm+96VHXu9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sP8HkTH4nvE2fQdETe8Wu87hpM0rBvL1YKHrhxWw8aM=; b=swQLDlVx0Dx2vsBI/DNoUk8Lc2ZkPvV6mQ6nkw6kBHcLPjPCkHc/8ZKV94B3cFQVMbnlXBnya8dXyfOVgcSp2p01hQ+S5rJIFJkFGo49qZ59U1HS5zq6PZfPYdg2JdJ6W1BiqwR9Q1mwLm7FaBMlh550tpXduzKo/jyA5RWVi/I= Received: from DM6PR11MB4186.namprd11.prod.outlook.com (20.176.125.210) by DM6PR11MB2857.namprd11.prod.outlook.com (20.176.101.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.26; Wed, 19 Feb 2020 13:06:30 +0000 Received: from DM6PR11MB4186.namprd11.prod.outlook.com ([fe80::1063:96be:59eb:740a]) by DM6PR11MB4186.namprd11.prod.outlook.com ([fe80::1063:96be:59eb:740a%4]) with mapi id 15.20.2729.033; Wed, 19 Feb 2020 13:06:30 +0000 From: "Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco)" To: =?iso-8859-2?Q?J=FAlius_Milan?= , "dev@dpdk.org" Thread-Topic: [dpdk-dev][PATCH 2/2] net/memif: fix init handling when already connected Thread-Index: AQHV5v1N++kO3hAs9068g78ghO4/uagiOBdg Date: Wed, 19 Feb 2020 13:06:30 +0000 Message-ID: References: <20200219081916.GA11931@vbox> In-Reply-To: <20200219081916.GA11931@vbox> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jgrajcia@cisco.com; x-originating-ip: [81.89.53.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1354f45c-1768-46ef-80df-08d7b53c89a2 x-ms-traffictypediagnostic: DM6PR11MB2857: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:849; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(396003)(376002)(346002)(39860400002)(199004)(189003)(6506007)(8676002)(478600001)(5660300002)(86362001)(53546011)(66946007)(64756008)(66556008)(66476007)(8936002)(66446008)(2906002)(26005)(76116006)(81156014)(81166006)(4744005)(186003)(110136005)(55016002)(33656002)(316002)(71200400001)(7696005)(52536014)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB2857; H:DM6PR11MB4186.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Cb24AOoRkRwZBvB32ycVpEW4ynWFn2/ZlL3UKl7yUkD2P1Mpl4IpCx7oPebr+n/CLseceoF73TV02P4QLGpwBIH/4cVU+CeVleEtbJh8skEZPkxLDrDTAmlIBwt0vARg1VEWaXK+fKjBsVb3ZTk+Q7AKEeIyVRMlTzUwgn0ekUQek28AOqv83wIYQGPeFHL4lNn0nlSOHiEMaBaMMs4SGgdcmOy21lhHkEo9ge3zWRpoR2uRyuRy7H6xWTLaI82EV+SRBtgHK1V5u6902jePa2sn7UnWCaY4rGUDV7KB9UdkvXWL4CiVN/fHxcTWEMRTX03yXBINlerqIWZXtzylmXgdJEhLo7xu8hExS86ODXaJY6B6oT3FKqepe+t9DZQiltXKNyjbxTxc7/BmkbGqIZP4dr9OYtcaeLjE5W61mJ7+Ztrclhz72k5HaHZj2Fm9 x-ms-exchange-antispam-messagedata: bjt+uLGZ5nVo+Egf/7rOO45jv4ZzKdLk/qyRkt7LgT4owyrrthGO7hNXGvahjdosJkhFWBoFsH4LbPqIfNOfDsLGJtrKhpTMz/yxNvod7ZTa49jCqO0/pMNV0qjUd7jYiboCSAJpKt/gom1jaQMLJQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 1354f45c-1768-46ef-80df-08d7b53c89a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 13:06:30.4150 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wseJR1glmoAeEeBLENjjJpwwRmZGMDN0cyT2Awpxm/cv12zpGFu/P2yQJeCS1WUoqwVkpvXUNO4lveROCHSJag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2857 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.36.7.15, xch-aln-005.cisco.com X-Outbound-Node: alln-core-5.cisco.com Subject: Re: [dpdk-dev] [PATCH 2/2] net/memif: fix init handling when already connected 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" > -----Original Message----- > From: J=FAlius Milan > Sent: Wednesday, February 19, 2020 9:19 AM > To: dev@dpdk.org; Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisc= o) > > Subject: [dpdk-dev][PATCH 2/2] net/memif: fix init handling when already > connected >=20 > This patch fixes the situation when there is already connected pair of me= mif > interfaces and another slave tries to initiate the connection with (alrea= dy > occupied) master. Expected behavior is that the second slave is refused a= nd > gets disconnect message with reason: "Already connected", while old > connection remains functional. >=20 > Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") >=20 > Signed-off-by: J=FAlius Milan Reviewed-by: Jakub Grajciar