Displaying 2 results from an estimated 2 matches for "cc92086".
Did you mean:
92086
2009 Dec 22
1
[PATCH] vhost-net: comment use of invalid fd when setting vhost backend
...se, but it's just a special case to shutdown
the backend. Clarify with a comment.
Signed-off-by: Chris Wright <chrisw at redhat.com>
---
drivers/vhost/net.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 22d5fef..cc92086 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -465,6 +465,7 @@ static struct socket *get_tun_socket(int fd)
static struct socket *get_socket(int fd)
{
struct socket *sock;
+ /* special case to disable backend */
if (fd == -1)
return NULL;
sock = get_raw_socket(fd);
2009 Dec 22
1
[PATCH] vhost-net: comment use of invalid fd when setting vhost backend
...se, but it's just a special case to shutdown
the backend. Clarify with a comment.
Signed-off-by: Chris Wright <chrisw at redhat.com>
---
drivers/vhost/net.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 22d5fef..cc92086 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -465,6 +465,7 @@ static struct socket *get_tun_socket(int fd)
static struct socket *get_socket(int fd)
{
struct socket *sock;
+ /* special case to disable backend */
if (fd == -1)
return NULL;
sock = get_raw_socket(fd);