-/**
- * Sends preformatted TruFlow msg to the TruFlow Firmware using
- * the Truflow tunnel HWRM message type.
- *
- * Returns success or failure code.
- */
-int
-tfp_send_msg_tunneled(struct tf *tfp,
- struct tfp_send_msg_parms *parms)
-{
- int rc = 0;
- uint8_t use_kong_mb = 1;
-
- if (parms == NULL)
- return -EINVAL;
-
- if (parms->mailbox == TF_CHIMP_MB)
- use_kong_mb = 0;
-
- rc = bnxt_hwrm_tf_message_tunneled(container_of(tfp,
- struct bnxt,
- tfp),
- use_kong_mb,
- parms->tf_type,
- parms->tf_subtype,
- &parms->tf_resp_code,
- parms->req_data,
- parms->req_size,
- parms->resp_data,
- parms->resp_size);
-
- return rc;
-}
-