Discussion:
[ovs-discuss] group stats bit in capabilities inside OFPT_FEATURES_REPLY
Anup Khadka
2014-10-20 19:25:40 UTC
Permalink
Seeing this in OVS 2.1 encounter (but looks like the code is same now too)

The group stats bit is set to false in capabilities inside
OFPT_FEATURES_REPLY.

Is there a reason why that's done, despite the fact that there is already
support for group stats?

Looking at the git source right now (function: handle_features_request,
file: ofproto.c), and I still see:
features.capabilities = (OFPUTIL_C_FLOW_STATS | OFPUTIL_C_TABLE_STATS |
OFPUTIL_C_PORT_STATS | OFPUTIL_C_QUEUE_STATS);

Why isn't OFPUTIL_C_GROUP_STATS included there?

Thanks,
Anup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20141020/60e2a7f3/attachment.html>
Anup Khadka
2014-10-20 21:32:32 UTC
Permalink
This is something I have been doing as a temporary workaround (the code
wrapped inside ifdef ANUP_EXTENSION). But, I am not sure if the aim was to
handle this somewhere else, and I am missing something.

features.capabilities = (OFPUTIL_C_FLOW_STATS | OFPUTIL_C_TABLE_STATS |
OFPUTIL_C_PORT_STATS | OFPUTIL_C_QUEUE_STATS);
#ifdef ANUP_EXTENSION
/* advertise support for group stats in features reply */
protocol = ofconn_get_protocol(ofconn);
version = ofputil_protocol_to_ofp_version(protocol);
switch(version) {
case OFP11_VERSION:
case OFP12_VERSION:
case OFP13_VERSION:
features.capabilities |= OFPUTIL_C_GROUP_STATS;
default:
break;
}
#endif
Post by Anup Khadka
Seeing this in OVS 2.1 encounter (but looks like the code is same now too)
The group stats bit is set to false in capabilities inside
OFPT_FEATURES_REPLY.
Is there a reason why that's done, despite the fact that there is already
support for group stats?
Looking at the git source right now (function: handle_features_request,
features.capabilities = (OFPUTIL_C_FLOW_STATS | OFPUTIL_C_TABLE_STATS |
OFPUTIL_C_PORT_STATS | OFPUTIL_C_QUEUE_STATS);
Why isn't OFPUTIL_C_GROUP_STATS included there?
Thanks,
Anup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20141020/de60c3ac/attachment.html>
Ben Pfaff
2014-10-20 22:06:34 UTC
Permalink
Post by Anup Khadka
Seeing this in OVS 2.1 encounter (but looks like the code is same now too)
The group stats bit is set to false in capabilities inside
OFPT_FEATURES_REPLY.
Is there a reason why that's done, despite the fact that there is already
support for group stats?
Looking at the git source right now (function: handle_features_request,
features.capabilities = (OFPUTIL_C_FLOW_STATS | OFPUTIL_C_TABLE_STATS |
OFPUTIL_C_PORT_STATS | OFPUTIL_C_QUEUE_STATS);
Why isn't OFPUTIL_C_GROUP_STATS included there?
It's an oversight. Thank you for reporting this bug.

I sent out a patch:
http://openvswitch.org/pipermail/dev/2014-October/047556.html

Loading...