From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0058.outbound.protection.outlook.com [104.47.41.58]) by dpdk.org (Postfix) with ESMTP id 37B3E1B616 for ; Tue, 7 Nov 2017 09:35:45 +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=lB7fKZHtcaSaUA0v1Ih1ZmEciwaDJjDmQn2HJj7qA0g=; b=bE7ijqdFrlJ9oJ9vRHUl6nqd2ZZrEFtyfaSOU4goa4r9jC0ADmc6bKTd2n5o1q7h6/kQID7iIf73sDiWLwnKvEiGrLh8Yrvx4nR5f4tJaoBFD7RBIAr9NyAYwv71P5f+Epn7jXPFS6goVOryKEqCnZyilwWv+Xhqqdeg3D2an28= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; Received: from cavium.com (198.186.0.2) by CY4PR0701MB3827.namprd07.prod.outlook.com (2603:10b6:910:94::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Tue, 7 Nov 2017 08:35:44 +0000 From: Rasesh Mody To: dev@dpdk.org Cc: Rasesh Mody , ferruh.yigit@intel.com, Dept-EngDPDKDev@cavium.com Date: Tue, 7 Nov 2017 00:34:22 -0800 Message-Id: <1510043665-8160-6-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1510043665-8160-1-git-send-email-rasesh.mody@cavium.com> References: <1510043665-8160-1-git-send-email-rasesh.mody@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.186.0.2] X-ClientProxiedBy: YQXPR0101CA0004.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:15::17) To CY4PR0701MB3827.namprd07.prod.outlook.com (2603:10b6:910:94::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78a79a18-2dc3-410e-156d-08d525ba89cc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:CY4PR0701MB3827; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3827; 3:ZXB2wK3FPcDqOxh/WLo66WDU364wCPg8Swb9MoIiCbYLEdinlolKwSyrCUPvTqVVu8BpMM2dc6YYt1YkFCDf1lxgAAxOksCqHSOJ/RfTwbMSNOjy/QwXL7Fbin7rWmb/f7/RUKETgWr7iTt6tzQIlK7R6oLVdBTSSqBuVcqWvctvS5+oj8CxfiLe5mTlxBRE3grOAL15b/3hGC1Ws29ncIQxNvwzuM7Ile4+oXtfYw1oxtxlYlvWBAFIZpzGW630; 25:cRINyMSbyebTJfutvQSbppFxa6FxnsspM9zYauNsA/LCH6Jbbw8UpVKLTZN8tPMLdKIAH+ecfCoKij+mA43BE1SMWZZPj9oWEngY4NBc08+EmGKiAAPLJxvjcxDJ6oCT5I5kihZxPiswfb+MsLpi46QwrnnzQNb8bmuQHJ2vKrwyAXanKlA+Be04Zi7x0q4CAGAFHmhe1LnHx13hZAT1Edfat1NpKUznN9/g8hK9aTQxKDanIKRKwRsmVhc39Wlv/J4W2mxu8Tt+GaZT2SvXye9cAL7SlDxtcEJf3uXiKS6c0t2QldYsLOxFt+cmhd8sqtoz5XJvYi488qaVnovueQ==; 31:4tB/paDFpyCQq+SGo9cuCDLpsWN7Z4PHekR0SOaj9E+3Pf2Y+fxt52SLR1sIoTdWv6QqXkzeF0QbcwPlgBtdwEQebNidkUkx15UJDG9JfvrPjUjqRdhCa2gqTjhHiUjoaSDtM3PbI/Nc4aAN9e8P3Da6Dfyztj/9flgGzNeE7pLAtRmmtjN3NU59A528n7SJXiaPcHa2KAZw3mKws8bhWGTRaaEwsG73kfQzuDUXeT4= X-MS-TrafficTypeDiagnostic: CY4PR0701MB3827: X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3827; 20:F9e+Mo+Xs8BsBKW3bPNmetGAlWzynLTHv6t15HeIUXtm5yj29cw5Pxx2VNvUVEmW83dMeccEBwA22V3wRl0TeFBvPShgrAnnuBV362F+sXybBNZocF6cOJcYBAOCYEs7eS3TC8jLi+zCLAsdc07yQHmQzPynOY2nB4Lir4KqJMFLmknICbFN4XhU1JSWUrWSSGfN3LIbC24L1zgQc+vsrfNYuUeUdZM/76zMQ2tq0J4IF7x3ufHBSN3WX4Sk9FMKR9l+bDfWn0PXM3z1v8JCyL3uS4ZIjJwb7P4yOG9qU74Cgs/NzoqEXwaaXni9gd2p3+bD8l3ImfUsnKCmVFLIIezjGx0a509nRrR7+R6mYboBcJlVRXv/iD3DGl4dKN81PNl6cGxgE1s17ote1GQTfQASjaOUlgwOY1u9ObcV+TcAh0cdukPnicKj8Y94ntro1atL0O1qn/SRsgJphBJ03TehOCnuvPzP2uCCiVX4D98jd0l7SO5//ayL+lW0QTQj; 4:iaXmtcngBvUBTTGXFqlhwGF4lH+3vkSQGgwkQTAhgoRBnqSI/aUgNojJL4R+5+EMHr4d4n/gE6TxyIHiMEefSeMW0CKJq5eAxANQis6W6XZlCeZWSTRa0JA1Mfozs/1JwH+3Gm2J4ZQKR2YwolLBSUXjOzpAaat0cWi5xx4IMiCap010mehr/J7ZUXoIgnfCeRhSB5sHH/OKqJR0nQo4V6/buzB/9BWpnTOxADsGDOxQzQlPHQ32Ck2ig1m54QevVrC4UJosomoWg4VxqgvdZg== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3231021)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR0701MB3827; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR0701MB3827; X-Forefront-PRVS: 0484063412 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(2351001)(47776003)(50226002)(6916009)(36756003)(76176999)(53936002)(8936002)(68736007)(55016002)(2950100002)(4326008)(48376002)(50466002)(50986999)(5003940100001)(66066001)(97736004)(8676002)(86362001)(316002)(16586007)(81156014)(81166006)(2361001)(478600001)(33646002)(72206003)(6666003)(305945005)(21086003)(106356001)(7736002)(69596002)(107886003)(189998001)(4720700003)(25786009)(2906002)(5660300001)(6116002)(105586002)(16526018)(3846002)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3827; H:cavium.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; CY4PR0701MB3827; 23:Q0K581Ri1YpLPoDVAAqDZztGi1xYMsQ7Y1PALvE?= =?us-ascii?Q?PJu7FZSncb1h/rn4fqWkE83uV88o/mDEsEDbviixKfB0u1Kg+Zzd2OVqoKTu?= =?us-ascii?Q?LdVx5ZIPaIrnR6hp/fiBc8MjsTIjT6EN2hray0YnMKeh9sAd6nEQt0TjNqqO?= =?us-ascii?Q?lVk9DaDsDgdnkKXKXPE3n/Y76KBPHKwOzhbWQiOUvhZ60FWC3GflHplsJU64?= =?us-ascii?Q?wfiuSO9cMy9RPSBuS4C5GFWJLyjWqBljf5pDbxwoPDY8OnRsoIGMOmGI41Z2?= =?us-ascii?Q?L3VjUvMNxPlWDDyVcoORDm1asa/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q?NdMnP8k1qtC3cPkk=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3827; 6:PPrMyuMeRhUY9rZoTrxIzp3Xe9Os4slVMw4oWkd7vaa4KBzsViSnpJpF7puqA1IyS6dnTse3AbJv5RMywMSA9rsDhm7Ik7MfI4WxPji959gFdno7RsC4Gp4uztUzIILl8hD7XKQ2hObiYSkF6b8MUlaFIQHI+9RFoOUc+cHywtJbuMI9Sy2FaM6QUhRw9d+eN128sNGI3JqBsdxegBzoaTpmgsgH44yrkj9T8b/itZjwhc2FT52O4U+X+0hKRw59LYt/BDn4jSpYoP89ATSNKfbwDgLnjC7Zj0TClOH0ICUvT578rq7JtytvGO9eNcb7Dd7DzSaMl73rQTN4jRmlNcYzRgKitJgbCGBEQCuZVDU=; 5:G56HEYsUmEJ68VLeyVsRwUt0VVoTQm7+X0aZoAg6OkEu1iSQXCOUv0jOPmHfMKbPq5J4o2JYr5apCovCne6XOnCVsbp3UXP9L9g8mpPzNIkkKse+i2QSAimWJzMtuR8O5+JnprCXjhrSa8XpQ6INfMcrcKGvmPDsw4pj+QaVje0=; 24:cW2zqH0hFVxV8wmfIVufxIzyEGTf2vzjZejm13NhVUofXVWOnHE1OKx1S4Hti5UrelS+nICx/BSDitxhOcsNtoKTiYLdmnlRbkxVPCzk/t4=; 7:KFKTlryvnpUMwiWa3XwLcWAcKZZ6gVaofOuLPr7fn6GCe1CMI9V8UFYwsAzgx9IMWJVZqwXu1bUrIDyu/zi5ZTf6hI+5nqOFrkxU7O4OSFvpHnOOJaIMf+Zjgw6XJHXv2rrEbUWQ14sje1SZ8n65qBk8BuuFpdEa4uDLDH2js/oQbOzTGLp3jbM+bnoykRKcbgR7LCBwQSl8GYua6TD1E5TxAL3m35RILov9odgZ45qj86MOPyHskUjEpE10q1Io SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 08:35:44.0353 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78a79a18-2dc3-410e-156d-08d525ba89cc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3827 Subject: [dpdk-dev] [PATCH 5/8] net/qede: fix to release the acquired ptt 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, 07 Nov 2017 08:35:47 -0000 Appropriately release the ptt[PF translation table] handler that is acquired in error case Fixes: e0947ed912f7 ("net/qede: add support for VXLAN UDP port config over VF") Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 4ef08ad..7a589a2 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -637,6 +637,8 @@ static void qede_set_ucast_cmn_params(struct ecore_filter_ucast *ucast) if (rc != ECORE_SUCCESS) { DP_ERR(edev, "Failed to update tunn_clss %u\n", tunn.vxlan.tun_cls); + if (IS_PF(edev)) + ecore_ptt_release(p_hwfn, p_ptt); break; } } -- 1.7.10.3