ovs_stats: use correct OpenFlow value
authorMatteo Croce <mcroce@redhat.com>
Mon, 22 Oct 2018 14:46:33 +0000 (16:46 +0200)
committerMatteo Croce <mcroce@redhat.com>
Mon, 22 Oct 2018 14:56:37 +0000 (16:56 +0200)
commit63d45096121ed2b5cb8c19a0c4f73d4729ee2e3f
tree077624c1aba52fba2f682172acc11b3eaee3557c
parent6ffc9507f630a20577bf9bc70c08d113e47e5ee4
ovs_stats: use correct OpenFlow value

The correct value in the OpenFlow 1.4 statistics is 1024_to_1522_packets,
even if collectd is using 1024_to_1518_packets:

$ ovs-ofctl -O OpenFlow14 dump-ports ovsbr0
OFPST_PORT reply (OF1.4) (xid=0x2): 3 ports
  port  guest2: rx pkts=0, bytes=0, drop=0, errs=0, frame=?, over=?, crc=?
           tx pkts=0, bytes=0, drop=0, errs=?, coll=?
           duration=132.213s
           rx rfc2819 1_to_64_packets=0, 65_to_127_packets=0,
           128_to_255_packets=0, 256_to_511_packets=0,
           512_to_1023_packets=0, 1024_to_1522_packets=0,
           1523_to_max_packets=0,

Correct it to the right value.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
src/ovs_stats.c