1 diff -urNp sheepdog-sheepdog-d659b9b.orig/include/fec.h sheepdog-sheepdog-d659b9b/include/fec.h
2 --- sheepdog-sheepdog-d659b9b.orig/include/fec.h 2015-06-07 07:55:29.000000000 +0000
3 +++ sheepdog-sheepdog-d659b9b/include/fec.h 2015-07-08 14:21:04.501517808 +0000
4 @@ -100,8 +100,10 @@ void fec_decode_buffer(struct fec *ctx,
9 void isa_decode_buffer(struct fec *ctx, uint8_t *input[], const int in_idx[],
14 * @param inpkts an array of packets (size k); If a primary block, i, is present
15 @@ -177,10 +179,12 @@ static inline void ec_encode(struct fec
16 for (int i = 0; i < p; i++)
21 ec_encode_data_sse(SD_EC_DATA_STRIPE_SIZE / ctx->d, ctx->d, p,
22 ctx->ec_tbl, (unsigned char **)ds, ps);
25 fec_encode(ctx, ds, ps, pidx, p, SD_EC_DATA_STRIPE_SIZE /
28 @@ -207,9 +211,11 @@ static inline void ec_destroy(struct fec
29 static inline void ec_decode_buffer(struct fec *ctx, uint8_t *input[],
30 const int in_idx[], char *buf, int idx)
34 isa_decode_buffer(ctx, input, in_idx, buf, idx);
37 fec_decode_buffer(ctx, input, in_idx, buf, idx);
40 diff -urNp sheepdog-sheepdog-d659b9b.orig/lib/fec.c sheepdog-sheepdog-d659b9b/lib/fec.c
41 --- sheepdog-sheepdog-d659b9b.orig/lib/fec.c 2015-06-07 07:55:29.000000000 +0000
42 +++ sheepdog-sheepdog-d659b9b/lib/fec.c 2015-07-08 14:20:53.744517808 +0000
43 @@ -454,8 +454,10 @@ void fec_free(struct fec *p)
44 assert(p != NULL && p->magic == (((FEC_MAGIC ^ p->d) ^ p->dp) ^
45 (unsigned long) (p->enc_matrix)));
54 @@ -496,11 +498,13 @@ struct fec *fec_new(unsigned short d, un
60 retval->ec_tbl = xmalloc(dp * d * 32);
61 ec_init_tables(d, dp - d, retval->enc_matrix + (d * d),
65 retval->ec_tbl = NULL;
68 @@ -712,6 +716,7 @@ void fec_decode_buffer(struct fec *ctx,
73 void isa_decode_buffer(struct fec *ctx, uint8_t *input[], const int in_idx[],
76 @@ -739,3 +744,4 @@ void isa_decode_buffer(struct fec *ctx,
77 ec_init_tables(ed, 1, cm, ec_tbl);
78 ec_encode_data_sse(len, ed, 1, ec_tbl, input, lost);