| 1727 | } |
| 1728 | |
| 1729 | static int |
| 1730 | ulp_cust_vxlan_alloc(struct bnxt *bp) |
| 1731 | { |
| 1732 | int rc = 0; |
| 1733 | |
| 1734 | if (ULP_APP_CUST_VXLAN_SUPPORT(bp->ulp_ctx)) { |
| 1735 | rc = bnxt_tunnel_dst_port_alloc(bp, |
| 1736 | bp->ulp_ctx->cfg_data->vxlan_port, |
| 1737 | HWRM_TUNNEL_DST_PORT_ALLOC_INPUT_TUNNEL_TYPE_VXLAN); |
| 1738 | if (rc) |
| 1739 | BNXT_TF_DBG(ERR, "Failed to set global vxlan port\n"); |
| 1740 | } |
| 1741 | |
| 1742 | if (ULP_APP_CUST_VXLAN_IP_SUPPORT(bp->ulp_ctx)) { |
| 1743 | rc = bnxt_tunnel_dst_port_alloc(bp, |
| 1744 | bp->ulp_ctx->cfg_data->vxlan_ip_port, |
| 1745 | HWRM_TUNNEL_DST_PORT_ALLOC_INPUT_TUNNEL_TYPE_VXLAN_V4); |
| 1746 | if (rc) |
| 1747 | BNXT_TF_DBG(ERR, "Failed to set global custom vxlan_ip port\n"); |
| 1748 | } |
| 1749 | |
| 1750 | return rc; |
| 1751 | } |
| 1752 | |
| 1753 | /* |
| 1754 | * When a port is initialized by dpdk. This functions sets up |
no test coverage detected