From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00082.outbound.protection.outlook.com [40.107.0.82]) by dpdk.org (Postfix) with ESMTP id A5A6B47CD for ; Mon, 13 Aug 2018 22:42:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dt6Am938xQzyhDUHcRAXTlspxt/++SF95odAcau9EHQ=; b=IFvm7f2W7ncO/ZcxvHRLECWiLcEm2j1Mh5OZiHxTR1TKBdj4rkpGiq39IFaZ9Px/2k6LwXfsDWj+1Q6UupkyE/40ZyfovIX2GgiEvvNDCzgPQAK/m6NbOvLfiVXZ7PMbvHiC9/IBbMog1+PJxfJNTFnm3FfWmB60e/W7s5pk9hQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by DB3PR0502MB3980.eurprd05.prod.outlook.com (2603:10a6:8:10::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.18; Mon, 13 Aug 2018 20:42:33 +0000 From: Yongseok Koh To: Ophir Munk Cc: dpdk stable Date: Mon, 13 Aug 2018 13:42:06 -0700 Message-Id: <20180813204213.25436-3-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180813204213.25436-1-yskoh@mellanox.com> References: <20180813204213.25436-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: MWHPR19CA0084.namprd19.prod.outlook.com (2603:10b6:320:1f::22) To DB3PR0502MB3980.eurprd05.prod.outlook.com (2603:10a6:8:10::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49df9430-0729-40fa-7d37-08d6015d4c01 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0502MB3980; X-Microsoft-Exchange-Diagnostics: 1; DB3PR0502MB3980; 3:Qo4scONi4bYrfr3GMdRClAGdWK1uzGMOOUzK9691M6EQg8dFYIKpgET5wjgMlo84ojSzrgzpEBZLpknVzO0ZwUHjMghsLPLidYcbYu4emEZXsiFEWAjKoDbhv7i9r50ayIeX4lbIK5B4k88iSNLPAUVmaEQ3cVn8H0YVBI7GrhipLC9Znpn+lmv1UYm5bck30a+17ypQQ/cvnuws8kAsiwml1ay13TtxAQ4MqgtZJNv2zNGJbyaNCbLLD0OuboE5; 25:EvEbZge+VTz5kHQpDG8OCPW0/gcahuCl74Jqi433txckk9yBiU9uIzIIJkdM+igop9PXAibPW2Om409dNI7DVer1G+RIpN4IATX4AmLEE8rtg2GkSeZOIXhxQQtZFn9RLFj0jSMHwexewNVU0F4nVBB0+dV7QiptKhqTElyeAW84Skm76cHfti2dhutIG1Fd78PDbdHy+mxYvkLkasHAlG0q2A20Tmj3Gx5Tz9hFqL/c7JNONDEhe9b1SglcpvUNBiTR3eWbu2UCgm2lq7oMBt+DRqTDyoJmazB4f7MYRuTKY6ul0MasXTHYIcZGF7O6V1pq/RCvGNQlR4cmLIKnWg==; 31:pE96FWKlJhPbCcG5vwEP040HJFg0TQInX53rMbNjRBpcvCWuGEsjhsaoPUK/zhM1SB/4LleUmBOWY23uOtWaUYNToDA0Q6qlpvWTXNOZJd5trCuebGJ4e1frJtRxpeNKG7yCRl+d16wlGARTVVqsLcmPVS4dIm4eyvfiQpPA1jG74I2NwQPTtzwCejEI306RHr9zhzuUv388b+Yp6Afh/OPF6wvVcbRiZBW8oTK7mLE= X-MS-TrafficTypeDiagnostic: DB3PR0502MB3980: X-Microsoft-Exchange-Diagnostics: 1; DB3PR0502MB3980; 20:H0JlzMstYGQ1adIPVeOUP0lGQ6VbnfczVctlmxryCS9+gv00tXxSPacKfTKBYeyOX8/3+byG/rMkF/riRr+YwD1PehcxzYpUnzVloSIHiVEWnLGZuVSoPC/Em8gOmQEvvlwwWgkSdaN0+5xKn3vy5UnCRPebCrcCKCPChSuYEiDnUVjauzC4g5DJgxNe1DqjZbuEG5M62TrrUSyg1ZklBd8xDuEWxRb7ldRGOm9S2abyIFHmRTTo4mMDTI7g1KRDTrqmo5KRAqsbB9OoEcFIpUBK1OnA56q2QOnslIembALdZLOxl8fLWwbp59T/llQbfBFeqvwhCDKgIqrO8bqkutlm3XvJafTe0WBVXRe0DdV0D79a2WnjSLIil+QLvIkULzjEyLlPIqSnI8nI9rqHXb6HPuBLwLz2ISG/+GUPOqdloQrtFxguzxHkLndr1ZXqxLvaR1ldj4zBF2zNVkn5s2c8x31ksYYESkZh72cx6rnV2BqT0pOqoiBV057KHoRF; 4:Mu/axVQIBM39fdtzpkKASIyl6sPXizwUX6q/HV4hSJ02J3+iZK3A9GSdYwReYweh37WZAFTLYYfHJHFPJnE66W7ZYqPdn1uh6iBaNBTXCN00I5ikBhlGguX55F5EAG5Un/2z6GM3czFlcxBpHvEU8IbRcnc34Ushhc7nTDAnZmSgHRBVsoSQkXA16GNAkzmdbkPfiKweOo5oC8eXeA51tpcHemGoFE3MGHd8Q63VQl7Q9k8HcivH0vvIPbdq8BaNm4Thrb7cwZVg6lkApAC+xA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301033)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB3PR0502MB3980; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB3980; X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(136003)(366004)(39860400002)(376002)(189003)(199004)(28163001)(69234005)(105586002)(106356001)(97736004)(76176011)(16526019)(26005)(446003)(11346002)(2616005)(956004)(14444005)(36756003)(6636002)(6862004)(50466002)(486006)(69596002)(21086003)(476003)(53936002)(53376002)(48376002)(386003)(7736002)(6666003)(1720100001)(66066001)(305945005)(47776003)(478600001)(7696005)(53546011)(51416003)(25786009)(52116002)(4326008)(966005)(55016002)(6306002)(16586007)(86362001)(575784001)(5660300001)(37006003)(3846002)(8676002)(6116002)(8936002)(316002)(81166006)(68736007)(50226002)(1076002)(2906002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3980; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB3PR0502MB3980; 23:fV0ksyQihnCqRtzuVM5C24T5y7GMyaLS7/1bvCD?= =?us-ascii?Q?MhDpB/X8PwmsjfGeXIlCmAZHqjOn5pq+b80Osqbpb2OnDW88qfYjPB5VL95y?= =?us-ascii?Q?xqEjnv6YM6a5k9zksWjVrlpYLPbXEjpxkUIlAPZaoteKqoT4qaRQmRXxkYy8?= =?us-ascii?Q?0mIHxNDy+TqDGBoZfvgf7yD4oBPvMUsLOIOSxjc8WQjwDLckuG7lnGnGOCb2?= =?us-ascii?Q?pWFknmSh6NkUa+77XbbUWoWUymMTYpTopgNEPsi9LCWGqSXKSWXNzrlKDwNU?= =?us-ascii?Q?ZCn7GF0OAT1GT+vYW2zv7uWcfHzKIK6bc750H2xcx6B4iaGaNzVfPas/ZKO+?= =?us-ascii?Q?bMCvfEylr/nDrqw+csVyA3DJ3mpeagAjEh/+HGRQsa8vPpFmWx3bsyM71Us+?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zE2Ew77LarqZV2qg2E0vhfSW2cvVXZmH8O2DJg==; 5:vabXbnbLexF9yHSjWOqcb410mOkPlsgNhSc4a5o0BmXIv1pOlA9gFmasSgvQ5scT6jW9EkEtXwqrmFCFEGQrB1yioFliDwvD1b3vB7zDaEeKH2N9nv+PRfb1jkbIxcBvbtzuWOq1mOPPPo6Uur2lV5ozxbZzWmXIFpx0ewxqIIk=; 7:RLC4iYm85+K5EAYl+uv358KNDni02jFGGynd6M3OrBQ9SK5iMeqLCQmbwILPnll+SJH4dvN8ZOs9kTdITEwkk4xncXAlnzRdUiiE8oo3ykHBDAq0e1wcLojVJe61JvdrVF7bzvzVA5H7XeFB14ztXlaaqyRXoTlQr5b5l1DqHAASTGvwSLiRhR1YTtNJSNYhzEBsrsAx5Cqluujzaf/xJT4YHros24yqLalh0WzEn/0KIQNJwPdeub78BUst4/yX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2018 20:42:33.0190 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49df9430-0729-40fa-7d37-08d6015d4c01 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3980 Subject: [dpdk-stable] patch 'net/mlx5: fix secondary process resource leakage' has been queued to LTS release 17.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 20:42:34 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/15/18. So please shout if anyone has objections. Thanks. Yongseok --- >>From a546122e90627552c02ffd5967a9f1f98edeccaa Mon Sep 17 00:00:00 2001 From: Ophir Munk Date: Tue, 31 Jul 2018 22:38:04 +0000 Subject: [PATCH] net/mlx5: fix secondary process resource leakage [ upstream commit 09e0fd260e2e414134154b6e0e955c8424b51c0a ] When running testpmd with an mlx5 device and then executing at testpmd prompt in a raw: "port start all" followed by "port stop all" a new file named /var/tmp/net_mlx5_ is created as a result of creating a new unix domain socket (used for communication between the primary and secondary processes). When the new unix socket file is created the old unix socket file should have been removed. This commit fixes it by closing the old unix socket just before creating the new one in function mlx5_socket_init() Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file descriptor") Signed-off-by: Ophir Munk --- drivers/net/mlx5/mlx5_socket.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mlx5/mlx5_socket.c b/drivers/net/mlx5/mlx5_socket.c index 7ab310007..97f90c072 100644 --- a/drivers/net/mlx5/mlx5_socket.c +++ b/drivers/net/mlx5/mlx5_socket.c @@ -62,6 +62,12 @@ mlx5_socket_init(struct rte_eth_dev *dev) int flags; /* + * Close the last socket that was used to communicate + * with the secondary process + */ + if (priv->primary_socket) + mlx5_socket_uninit(dev); + /* * Initialise the socket to communicate with the secondary * process. */ -- 2.11.0