drivers: hv: kvp: Add/cleanup connector defines.
authorOlaf Hering <ohering@suse.de>
Mon, 26 Mar 2012 13:52:26 +0000 (15:52 +0200)
committerOlaf Hering <ohering@suse.de>
Mon, 26 Mar 2012 13:52:30 +0000 (15:52 +0200)
suse-commit: c67d0b64d452b6ef48e04e10a6d187911efc6ae2

drivers/hv/hv_kvp.h
include/linux/connector.h
tools/hv/hv_kvp_daemon.c

index 9b765d7..c2c5bba 100644 (file)
  * the KVP user-mode component.
  */
 
-#define CN_KVP_VAL             0x1 /* This supports queries from the kernel */
-#define CN_KVP_USER_VAL       0x2 /* This supports queries from the user */
-
 enum hv_ku_op {
        KVP_REGISTER = 0, /* Register the user mode component */
        KVP_KERNEL_GET, /* Kernel is requesting the value */
index 3c9c54f..7638407 100644 (file)
@@ -43,6 +43,7 @@
 #define CN_IDX_DRBD                    0x8
 #define CN_VAL_DRBD                    0x1
 #define CN_KVP_IDX                     0x9     /* HyperV KVP */
+#define CN_KVP_VAL                     0x1     /* queries from the kernel */
 
 #define CN_NETLINK_USERS               10      /* Highest index + 1 */
 
index 11224ed..2b6a2d9 100644 (file)
 #include <syslog.h>
 
 /*
- * KYS: TODO. Need to register these in the kernel.
  *
  * The following definitions are shared with the in-kernel component; do not
  * change any of this without making the corresponding changes in
  * the KVP kernel component.
  */
-#define CN_KVP_IDX             0x9     /* MSFT KVP functionality */
-#define CN_KVP_VAL             0x1 /* This supports queries from the kernel */
-#define CN_KVP_USER_VAL                0x2 /* This supports queries from the user  */
 
 /*
  * KVP protocol: The user mode component first registers with the