V3: Add description for table-features get/set struct. V2: No change.
V1: Add table_feature structs in ofproto && oftable to initialize. The struct in ofproto is used to get The struct in oftable is used to set (set is not implement yet) Signed-off-by: Alexander Wu <[email protected]> --- ofproto/ofproto-provider.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h index 2844e4c..6c21d78 100644 --- a/ofproto/ofproto-provider.h +++ b/ofproto/ofproto-provider.h @@ -152,6 +152,13 @@ struct ofproto { struct hmap groups OVS_GUARDED; /* Contains "struct ofgroup"s. */ uint32_t n_groups[4] OVS_GUARDED; /* # of existing groups of each type. */ struct ofputil_group_features ogf; + + /* Table-features to get. READ-ONLY. + * + * Describe the maxium abilities of tables. The memory is compact to + * initialize and copy. Note there are features in the oftable, they are + * used to set and they describe real abilities of tables. */ + struct ofputil_table_features otf[OFTABLE_NUM]; }; void ofproto_init_tables(struct ofproto *, int n_tables); @@ -258,6 +265,13 @@ struct oftable { uint32_t eviction_group_id_basis; struct hmap eviction_groups_by_id; struct heap eviction_groups_by_size; + + /* Table-features to set. + * + * Describe the real abilities of this table. The memory is not compact to + * initialize and copy. Note there are features in the ofproto, they are + * used to get and they describe maxium abilities of tables. */ + struct ofputil_table_features tf; }; /* Assigns TABLE to each oftable, in turn, in OFPROTO. -- 1.7.3.1.msysgit.0 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
