ofproto: Don't count hidden rules in table stats.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2015 17:27:32 +0000 (09:27 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2015 17:27:32 +0000 (09:27 -0800)
commit3fbbcba77615e6f14d0ee4f8d40b9b4838c2ac20
tree8398912ecc4e67645cd95c7924c3d717cae96f0c
parent9e917416f87a18e9deb2480f32a4ff9c0f9d194c
ofproto: Don't count hidden rules in table stats.

The hidden rules created by in-band control and fail-open should not be
included in the table stats reported via OpenFlow.  I seem to recall that
this was done correctly in some previous version but it has broken since
then.  This commit fixes the problem and adds a test that should make it
harder to break again in the future.

Reported-by: Ashok Chippa <a.n.chippa@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/connmgr.c
ofproto/connmgr.h
ofproto/fail-open.c
ofproto/fail-open.h
ofproto/in-band.c
ofproto/in-band.h
ofproto/ofproto.c
tests/ofproto.at