diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-04-06 17:02:02 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-17 09:58:42 -0600 |
commit | 799f9a38bc9f5551819fd118a82826df0a8525cf (patch) | |
tree | 9874bb8e01ae7d609a909e62165e2d79bd631fc2 /include | |
parent | b7aa3d39385dc2d95899f9e379623fef446a2acd (diff) |
nbd: multicast dead link notifications
Provide a mechanism to notify userspace that there's been a link problem
on a NBD device. This will allow userspace to re-establish a connection
and provide the new socket to the device without disrupting the device.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/nbd-netlink.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/uapi/linux/nbd-netlink.h b/include/uapi/linux/nbd-netlink.h index f932f96a7c2f..b69105cc8eea 100644 --- a/include/uapi/linux/nbd-netlink.h +++ b/include/uapi/linux/nbd-netlink.h @@ -18,8 +18,9 @@ #ifndef _UAPILINUX_NBD_NETLINK_H #define _UAPILINUX_NBD_NETLINK_H -#define NBD_GENL_FAMILY_NAME "nbd" -#define NBD_GENL_VERSION 0x1 +#define NBD_GENL_FAMILY_NAME "nbd" +#define NBD_GENL_VERSION 0x1 +#define NBD_GENL_MCAST_GROUP_NAME "nbd_mc_group" /* Configuration policy attributes, used for CONNECT */ enum { @@ -63,6 +64,7 @@ enum { NBD_CMD_CONNECT, NBD_CMD_DISCONNECT, NBD_CMD_RECONFIGURE, + NBD_CMD_LINK_DEAD, __NBD_CMD_MAX, }; #define NBD_CMD_MAX (__NBD_CMD_MAX - 1) |