MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ulp_cust_vxlan_free

Function ulp_cust_vxlan_free

dpdk/drivers/net/bnxt/tf_ulp/bnxt_ulp.c:1884–1904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1882}
1883
1884static void
1885ulp_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

Callers 1

bnxt_ulp_port_deinitFunction · 0.85

Calls 1

Tested by

no test coverage detected