* Returns success or failure code.
*/
int
-tfp_send_msg_direct(struct tf *tfp,
+tfp_send_msg_direct(struct bnxt *bp,
struct tfp_send_msg_parms *parms)
{
int rc = 0;
if (parms->mailbox == TF_CHIMP_MB)
use_kong_mb = 0;
- rc = bnxt_hwrm_tf_message_direct(container_of(tfp,
- struct bnxt,
- tfp),
+ rc = bnxt_hwrm_tf_message_direct(bp,
use_kong_mb,
parms->tf_type,
parms->req_data,
if (tfp == NULL || fw_fid == NULL)
return -EINVAL;
- bp = container_of(tfp, struct bnxt, tfp);
+ bp = (struct bnxt *)tfp->bp;
if (bp == NULL)
return -EINVAL;
if (tfp == NULL || pf == NULL)
return -EINVAL;
- bp = container_of(tfp, struct bnxt, tfp);
+ bp = (struct bnxt *)tfp->bp;
if (BNXT_VF(bp) && bp->parent) {
*pf = bp->parent->fid - 1;
return 0;