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 <rasesh.mody@cavium.com>
This commit is contained in:
Rasesh Mody 2017-11-07 00:34:22 -08:00 committed by Ferruh Yigit
parent a96b86a12b
commit feea1b85ce

View File

@ -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;
}
}