diff options
author | David Fries <David@Fries.net> | 2014-01-15 23:29:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 18:40:17 -0500 |
commit | ac8f73305eea8a12fdcb6090417eb93a74efbcbd (patch) | |
tree | 62e1686b23716165be9ab5de335a0a59bab12908 /drivers/hv | |
parent | 9fcbbac5ded489c3a4e121343db999dd51cd6c75 (diff) |
connector: add portid to unicast in addition to broadcasting
This allows replying only to the requestor portid while still
supporting broadcasting. Pass 0 to portid for the previous behavior.
Signed-off-by: David Fries <David@Fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/hv_kvp.c | 4 | ||||
-rw-r--r-- | drivers/hv/hv_snapshot.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index 09988b289622..ea852537307e 100644 --- a/drivers/hv/hv_kvp.c +++ b/drivers/hv/hv_kvp.c | |||
@@ -113,7 +113,7 @@ kvp_register(int reg_value) | |||
113 | kvp_msg->kvp_hdr.operation = reg_value; | 113 | kvp_msg->kvp_hdr.operation = reg_value; |
114 | strcpy(version, HV_DRV_VERSION); | 114 | strcpy(version, HV_DRV_VERSION); |
115 | msg->len = sizeof(struct hv_kvp_msg); | 115 | msg->len = sizeof(struct hv_kvp_msg); |
116 | cn_netlink_send(msg, 0, GFP_ATOMIC); | 116 | cn_netlink_send(msg, 0, 0, GFP_ATOMIC); |
117 | kfree(msg); | 117 | kfree(msg); |
118 | } | 118 | } |
119 | } | 119 | } |
@@ -435,7 +435,7 @@ kvp_send_key(struct work_struct *dummy) | |||
435 | } | 435 | } |
436 | 436 | ||
437 | msg->len = sizeof(struct hv_kvp_msg); | 437 | msg->len = sizeof(struct hv_kvp_msg); |
438 | cn_netlink_send(msg, 0, GFP_ATOMIC); | 438 | cn_netlink_send(msg, 0, 0, GFP_ATOMIC); |
439 | kfree(msg); | 439 | kfree(msg); |
440 | 440 | ||
441 | return; | 441 | return; |
diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index 0c3546224376..34f14fddb666 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c | |||
@@ -98,7 +98,7 @@ static void vss_send_op(struct work_struct *dummy) | |||
98 | vss_msg->vss_hdr.operation = op; | 98 | vss_msg->vss_hdr.operation = op; |
99 | msg->len = sizeof(struct hv_vss_msg); | 99 | msg->len = sizeof(struct hv_vss_msg); |
100 | 100 | ||
101 | cn_netlink_send(msg, 0, GFP_ATOMIC); | 101 | cn_netlink_send(msg, 0, 0, GFP_ATOMIC); |
102 | kfree(msg); | 102 | kfree(msg); |
103 | 103 | ||
104 | return; | 104 | return; |