@@ -548,7 +548,7 @@ bnxt_ulp_init(struct bnxt *bp)
}
/* update the port database */
- rc = ulp_port_db_dev_port_intf_update(bp->ulp_ctx, bp);
+ rc = ulp_port_db_dev_port_intf_update(bp->ulp_ctx, bp->eth_dev);
if (rc) {
BNXT_TF_DBG(ERR,
"Failed to update port database\n");
@@ -584,7 +584,7 @@ bnxt_ulp_init(struct bnxt *bp)
}
/* update the port database */
- rc = ulp_port_db_dev_port_intf_update(bp->ulp_ctx, bp);
+ rc = ulp_port_db_dev_port_intf_update(bp->ulp_ctx, bp->eth_dev);
if (rc) {
BNXT_TF_DBG(ERR, "Failed to update port database\n");
goto jump_to_error;
@@ -104,10 +104,11 @@ int32_t ulp_port_db_deinit(struct bnxt_ulp_context *ulp_ctxt)
* Returns 0 on success or negative number on failure.
*/
int32_t ulp_port_db_dev_port_intf_update(struct bnxt_ulp_context *ulp_ctxt,
- struct bnxt *bp)
+ struct rte_eth_dev *eth_dev)
{
struct bnxt_ulp_port_db *port_db;
- uint32_t port_id = bp->eth_dev->data->port_id;
+ struct bnxt *bp = eth_dev->data->dev_private;
+ uint32_t port_id = eth_dev->data->port_id;
uint32_t ifindex;
struct ulp_interface_info *intf;
int32_t rc;
@@ -71,7 +71,7 @@ int32_t ulp_port_db_deinit(struct bnxt_ulp_context *ulp_ctxt);
* Returns 0 on success or negative number on failure.
*/
int32_t ulp_port_db_dev_port_intf_update(struct bnxt_ulp_context *ulp_ctxt,
- struct bnxt *bp);
+ struct rte_eth_dev *eth_dev);
/*
* Api to get the ulp ifindex for a given device port.