| 1882 | } |
| 1883 | |
| 1884 | static void |
| 1885 | ulp_cust_vxlan_free(struct bnxt *bp) |
| 1886 | { |
| 1887 | int rc; |
| 1888 | |
| 1889 | if (ULP_APP_CUST_VXLAN_SUPPORT(bp->ulp_ctx)) { |
| 1890 | rc = bnxt_tunnel_dst_port_free(bp, |
| 1891 | bp->ulp_ctx->cfg_data->vxlan_port, |
| 1892 | HWRM_TUNNEL_DST_PORT_ALLOC_INPUT_TUNNEL_TYPE_VXLAN); |
| 1893 | if (rc) |
| 1894 | BNXT_TF_DBG(ERR, "Failed to clear global vxlan port\n"); |
| 1895 | } |
| 1896 | |
| 1897 | if (ULP_APP_CUST_VXLAN_IP_SUPPORT(bp->ulp_ctx)) { |
| 1898 | rc = bnxt_tunnel_dst_port_free(bp, |
| 1899 | bp->ulp_ctx->cfg_data->vxlan_ip_port, |
| 1900 | HWRM_TUNNEL_DST_PORT_ALLOC_INPUT_TUNNEL_TYPE_VXLAN_V4); |
| 1901 | if (rc) |
| 1902 | BNXT_TF_DBG(ERR, "Failed to clear global custom vxlan port\n"); |
| 1903 | } |
| 1904 | } |
| 1905 | |
| 1906 | /* |
| 1907 | * When a port is de-initialized by dpdk. This functions clears up |
no test coverage detected