]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/tf_core/tfp.c
net/ice: save rule on switch filter creation
[dpdk.git] / drivers / net / bnxt / tf_core / tfp.c
index 4d9b37f749864a01ef3be25cc6e495e7178b9340..a4b0934610f7383b290ae68b4b4c4741bf0adad4 100644 (file)
@@ -134,7 +134,7 @@ tfp_get_fid(struct tf *tfp, uint16_t *fw_fid)
        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;
 
@@ -151,7 +151,7 @@ tfp_get_pf(struct tf *tfp, uint16_t *pf)
        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;