X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_ulp%2Fulp_utils.h;h=e1b0e773f3a265bc5c7f0d8b64a3730e93240ffc;hb=f787952d13d20b7eceaf6d1742ea591239b63ba1;hp=5dd22cf8c33dea3f40f73594689b97b2a0f8c902;hpb=741172be52deceaae86368f14dd5835a4c24d8c2;p=dpdk.git diff --git a/drivers/net/bnxt/tf_ulp/ulp_utils.h b/drivers/net/bnxt/tf_ulp/ulp_utils.h index 5dd22cf8c3..e1b0e773f3 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_utils.h +++ b/drivers/net/bnxt/tf_ulp/ulp_utils.h @@ -64,10 +64,10 @@ /* Macros to read the computed fields */ #define ULP_COMP_FLD_IDX_RD(params, idx) \ - rte_be_to_cpu_32((params)->comp_fld[(idx)]) + rte_be_to_cpu_64((params)->comp_fld[(idx)]) #define ULP_COMP_FLD_IDX_WR(params, idx, val) \ - ((params)->comp_fld[(idx)] = rte_cpu_to_be_32((val))) + ((params)->comp_fld[(idx)] = rte_cpu_to_be_64((uint64_t)(val))) /* * Making the blob statically sized to 128 bytes for now. * The blob must be initialized with ulp_blob_init prior to using. @@ -272,7 +272,7 @@ ulp_blob_push_32(struct ulp_blob *blob, * The offset of the data is updated after each push of data. * NULL returned on error, pointer pushed value otherwise. */ -uint32_t +int32_t ulp_blob_push_encap(struct ulp_blob *blob, uint8_t *data, uint32_t datalen);