From: Rasesh Mody Date: Tue, 7 Nov 2017 08:34:22 +0000 (-0800) Subject: net/qede: fix PF translation table release X-Git-Tag: spdx-start~888 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=feea1b85ce514f7466f362a2e791a812cca139ee;p=dpdk.git net/qede: fix PF translation table release 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 --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 4ef08adec6..7a589a2d13 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -637,6 +637,8 @@ qede_vxlan_enable(struct rte_eth_dev *eth_dev, uint8_t clss, 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; } }