ec: Determine exact conditions where gf_gen_rs_matrix works

Add a program calculating some of the exact conditions where gf_gen_rs_matrix
works, add comments stating these bounds to gf_gen_rs_matrix, and fix erasure
code test that violates the bounds.

Change-Id: I1d0010b09fea97731bfd24f4f76e24609538b24f
Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
Roy Oursler
2017-06-06 11:04:28 -07:00
committed by Xiaodong Liu
parent 1a7c640ef9
commit 82a6ac65dc
4 changed files with 129 additions and 5 deletions

View File

@@ -287,7 +287,7 @@ int main(int argc, char *argv[])
return -1;
}
// Pick a first test
m = 15;
m = 14;
k = 10;
if (m > MMAX || k > KMAX)
return -1;