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

Function ulp_cust_vxlan_alloc

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

Source from the content-addressed store, hash-verified

1727}
1728
1729static int
1730ulp_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

Callers 1

bnxt_ulp_port_initFunction · 0.85

Calls 1

Tested by

no test coverage detected