git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: remove sys/queue.h from public headers
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_core
/
tfp.c
diff --git
a/drivers/net/bnxt/tf_core/tfp.c
b/drivers/net/bnxt/tf_core/tfp.c
index
37c49b5
..
a4b0934
100644
(file)
--- a/
drivers/net/bnxt/tf_core/tfp.c
+++ b/
drivers/net/bnxt/tf_core/tfp.c
@@
-28,7
+28,7
@@
* Returns success or failure code.
*/
int
* Returns success or failure code.
*/
int
-tfp_send_msg_direct(struct
tf *tf
p,
+tfp_send_msg_direct(struct
bnxt *b
p,
struct tfp_send_msg_parms *parms)
{
int rc = 0;
struct tfp_send_msg_parms *parms)
{
int rc = 0;
@@
-40,9
+40,7
@@
tfp_send_msg_direct(struct tf *tfp,
if (parms->mailbox == TF_CHIMP_MB)
use_kong_mb = 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,
use_kong_mb,
parms->tf_type,
parms->req_data,
@@
-136,7
+134,7
@@
tfp_get_fid(struct tf *tfp, uint16_t *fw_fid)
if (tfp == NULL || fw_fid == NULL)
return -EINVAL;
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 (bp == NULL)
return -EINVAL;
@@
-153,7
+151,7
@@
tfp_get_pf(struct tf *tfp, uint16_t *pf)
if (tfp == NULL || pf == 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;
if (BNXT_VF(bp) && bp->parent) {
*pf = bp->parent->fid - 1;
return 0;