]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/tf_ulp/ulp_utils.c
net/bnxt: add flow templates for Thor
[dpdk.git] / drivers / net / bnxt / tf_ulp / ulp_utils.c
index fc4f435c9760aa6be3772b703a222712772bcdd8..686b80e4566f0a61c0ead387bc04feb6f8263aba 100644 (file)
@@ -964,8 +964,11 @@ ulp_blob_append(struct ulp_blob *dst, struct ulp_blob *src,
                ulp_bs_put_msb(dst->data, dst->write_idx,
                               ULP_BLOB_BYTE, bluff);
                dst->write_idx += remaining;
+               src_offset += remaining;
        }
 
+       src_buf += ULP_BITS_2_BYTE_NR(src_offset);
+
        /* Push the byte aligned pieces */
        for (k = 0; k < ULP_BITS_2_BYTE_NR(src_len); k++) {
                ulp_bs_put_msb(dst->data, dst->write_idx, ULP_BLOB_BYTE,