diff options
author | Mengke Liu <mengke.liu@intel.com> | 2015-12-16 02:47:50 +0800 |
---|---|---|
committer | Jesse Gross <jesse@kernel.org> | 2015-12-15 13:06:11 -0800 |
commit | 4e548ad9e60f8248090a467fefcc58da5f298c96 (patch) | |
tree | 6a3becb2d557b741e23cca80926a6aeb74fe5de4 /lib/tun-metadata.h | |
parent | aa68cf38e14d159ae3fef061765d7986b7376f6e (diff) | |
download | openvswitch-4e548ad9e60f8248090a467fefcc58da5f298c96.tar.gz |
geneve-map-rename: rename geneve-map to tlv-map.
This patch renames the command name related with geneve-map to a more
generic name as following:
add-geneve-map -> add-tlv-map
del-geneve-map -> del-tlv-map
dump-geneve-map -> dump-tlv-map
It also renames the Geneve_table to tlv_table.
By doing this renaming, the NSH variable context header (the same TLV
format as Geneve) or other protocol can reuse the field tun_metadata<N>
in the future.
Signed-off-by: Mengke Liu <mengke.liu@intel.com>
Signed-off-by: Ricky Li <ricky.li@intel.com>
Signed-off-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'lib/tun-metadata.h')
-rw-r--r-- | lib/tun-metadata.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tun-metadata.h b/lib/tun-metadata.h index 71842b7c5..4b0993e68 100644 --- a/lib/tun-metadata.h +++ b/lib/tun-metadata.h @@ -29,8 +29,8 @@ struct flow_tnl; struct match; struct mf_field; union mf_value; -struct ofputil_geneve_table_mod; -struct ofputil_geneve_table_reply; +struct ofputil_tlv_table_mod; +struct ofputil_tlv_table_reply; struct tun_table; #define TUN_METADATA_NUM_OPTS 64 @@ -70,7 +70,7 @@ struct tun_metadata { union { uint8_t u8[TUN_METADATA_TOT_OPT_SIZE]; /* Values from tunnel TLVs. */ - struct geneve_opt gnv[GENEVE_TOT_OPT_SIZE / sizeof(struct geneve_opt)]; + struct geneve_opt gnv[TLV_TOT_OPT_SIZE / sizeof(struct geneve_opt)]; } opts; }; BUILD_ASSERT_DECL(offsetof(struct tun_metadata, opts) % 8 == 0); @@ -113,8 +113,8 @@ struct tun_metadata_allocation { void tun_metadata_init(void); -enum ofperr tun_metadata_table_mod(struct ofputil_geneve_table_mod *); -void tun_metadata_table_request(struct ofputil_geneve_table_reply *); +enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *); +void tun_metadata_table_request(struct ofputil_tlv_table_reply *); void tun_metadata_read(const struct flow_tnl *, const struct mf_field *, union mf_value *); |