ofproto: Correctly report table miss configuration in table stats.
authorBen Pfaff <blp@nicira.com>
Mon, 28 Jul 2014 18:08:36 +0000 (11:08 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Aug 2014 18:10:53 +0000 (11:10 -0700)
commitb187a283c621acbccec65dc7b5f3dc67cb837ce7
tree41ed458892ca578df879da2c28c49d3c34e51660
parent8e97815ea7b8a45ab8c0c2d90ee163f813b0b4b5
ofproto: Correctly report table miss configuration in table stats.

OFPTC11_TABLE_MISS_MASK isn't a valid value at all, let alone always the
value in use.  We should report the value actually in use, as this commit
does.

There is a remaining problem: the default table configuration is
OFPROTO_TABLE_MISS_DEFAULT, which doesn't correspond to any particular
OFPTC11_* value or, more precisely, corresponds to a different OFPTC11_*
value based on the OpenFlow version.  The following commit fixes that
problem.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c