net/bnxt: modify port DB dev interface

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>
This commit is contained in:
Venkat Duvvuru 2020-07-02 16:27:52 -07:00 committed by Ferruh Yigit
parent 3fb93bc7c3
commit 410e5b8bed
3 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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.