datapath: Clean up use of TBL_* constants.
authorBen Pfaff <blp@nicira.com>
Tue, 28 Dec 2010 00:20:11 +0000 (16:20 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 28 Dec 2010 17:17:15 +0000 (09:17 -0800)
commit406e37ecf554529e9380ef06863d85ccc94009d1
treece66a93a5795df5213d87582204cbe3dd4923e70
parentc6fadeb1f0488997b44e85a00a8887756232156d
datapath: Clean up use of TBL_* constants.

A lot of the TBL_* constants were being used in conceptually wrong ways,
even though the code was correct because the actual values were correct.
(This is because TBL_L1_BITS, TBL_L2_BITS, and TBL_L1_SHIFT are all 10
and TBL_L1_SIZE and TBL_L2_SIZE are both 1024.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Reported-by: Jesse Gross <jesse@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/table.c