[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 05/10] linkstate: Wire up the remote protocol



---
 src/remote/remote_driver.c   |    2 ++
 src/remote/remote_protocol.x |   21 ++++++++++++++++++++-
 src/remote_protocol-structs  |   16 ++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index e5bfa4b..604b9fc 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -4300,6 +4300,8 @@ static virDriver remote_driver = {
     .domainMigrateFinish = remoteDomainMigrateFinish, /* 0.3.2 */
     .domainBlockStats = remoteDomainBlockStats, /* 0.3.2 */
     .domainInterfaceStats = remoteDomainInterfaceStats, /* 0.3.2 */
+    .domainInterfaceLinkSetState = remoteDomainInterfaceLinkSetState, /* 0.9.5 */
+    .domainInterfaceLinkGetState = remoteDomainInterfaceLinkGetState, /* 0.9.5 */
     .domainMemoryStats = remoteDomainMemoryStats, /* 0.7.5 */
     .domainBlockPeek = remoteDomainBlockPeek, /* 0.4.2 */
     .domainMemoryPeek = remoteDomainMemoryPeek, /* 0.4.2 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 8f68808..20b9bdb 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -560,6 +560,23 @@ struct remote_domain_interface_stats_ret { /* insert 2 */
     hyper tx_drop;
 };

+struct remote_domain_interface_link_set_state_args {
+    remote_nonnull_domain dom;
+    remote_nonnull_string path;
+    unsigned int state;
+    unsigned int flags;
+};
+
+struct remote_domain_interface_link_get_state_args {
+    remote_nonnull_domain dom;
+    remote_nonnull_string path;
+    unsigned int flags;
+};
+
+struct remote_domain_interface_link_get_state_ret {
+    int state;
+};
+
 struct remote_domain_memory_stats_args {
     remote_nonnull_domain dom;
     unsigned int maxStats;
@@ -2475,7 +2492,9 @@ enum remote_procedure {
     REMOTE_PROC_DOMAIN_BLOCK_JOB_SET_SPEED = 239, /* autogen autogen */
     REMOTE_PROC_DOMAIN_BLOCK_PULL = 240, /* autogen autogen */

-    REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB = 241 /* skipgen skipgen */
+    REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB = 241, /* skipgen skipgen */
+    REMOTE_PROC_DOMAIN_INTERFACE_LINK_SET_STATE = 242, /* autogen autogen */
+    REMOTE_PROC_DOMAIN_INTERFACE_LINK_GET_STATE = 243  /*autogen autogen */

     /*
      * Notice how the entries are grouped in sets of 10 ?
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 91b3ca5..2f8b115 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -287,6 +287,20 @@ struct remote_domain_interface_stats_ret {
         int64_t                    tx_errs;
         int64_t                    tx_drop;
 };
+struct remote_domain_interface_link_set_state_args {
+        remote_nonnull_domain      dom;
+        remote_nonnull_string      path;
+        u_int                      state;
+        u_int                      flags;
+};
+struct remote_domain_interface_link_get_state_args {
+        remote_nonnull_domain      dom;
+        remote_nonnull_string      path;
+        u_int                      flags;
+};
+struct remote_domain_interface_link_get_state_ret {
+        int                        state;
+};
 struct remote_domain_memory_stats_args {
         remote_nonnull_domain      dom;
         u_int                      maxStats;
@@ -1936,4 +1950,6 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_BLOCK_JOB_SET_SPEED = 239,
         REMOTE_PROC_DOMAIN_BLOCK_PULL = 240,
         REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB = 241,
+        REMOTE_PROC_DOMAIN_INTERFACE_LINK_SET_STATE = 242,
+        REMOTE_PROC_DOMAIN_INTERFACE_LINK_GET_STATE = 243,
 };
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]