Modify ulp_port_db_dev_port_intf_update prototype to take
"struct rte_eth_dev *" as the second parameter.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
}
/* 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");
}
/* 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;
* 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;
* 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.