diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2019-11-26 20:52:32 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2019-11-28 16:51:44 +0100 |
commit | 89ee730a60e9cd0e70c0f1a748ef0abc2a4ebed9 (patch) | |
tree | 088d9ade219093e1c423ffa7a4aae74c95a6e8c5 /ofproto/ofproto-provider.h | |
parent | 9965fef8db795fbf06ca9e6e65d1f5f19740d78d (diff) | |
download | openvswitch-89ee730a60e9cd0e70c0f1a748ef0abc2a4ebed9.tar.gz |
ofproto-provider: Move datapath capabilities callback to correct section.
'get_datapath_cap' callback was mistakenly placed in
'Connection tracking' section of the 'struct dpif_class'
while belongs to the 'Datapath information'.
CC: William Tu <u9012063@gmail.com>
Fixes: 27501802d09f ("ofproto-dpif: Expose datapath capability to ovsdb.")
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'ofproto/ofproto-provider.h')
-rw-r--r-- | ofproto/ofproto-provider.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h index afe9e2fec..a9622876c 100644 --- a/ofproto/ofproto-provider.h +++ b/ofproto/ofproto-provider.h @@ -1873,6 +1873,9 @@ struct ofproto_class { */ const char *(*get_datapath_version)(const struct ofproto *); + /* Get capabilities of the datapath type 'dp_type'. */ + void (*get_datapath_cap)(const char *dp_type, struct smap *caps); + /* Pass custom configuration options to the 'type' datapath. * * This function should be NULL if an implementation does not support it. @@ -1895,8 +1898,6 @@ struct ofproto_class { /* Deletes the timeout policy associated with 'zone' in datapath type * 'dp_type'. */ void (*ct_del_zone_timeout_policy)(const char *dp_type, uint16_t zone); - /* Get the datapath's capabilities. */ - void (*get_datapath_cap)(const char *dp_type, struct smap *caps); }; extern const struct ofproto_class ofproto_dpif_class; |