Displaying 4 results from an estimated 4 matches for "1ffb5b7".
Did you mean:
1cfb5ba
2019 Jun 09
1
Re: [PATCH libnbd 2/3] states: Add handle h->wflags field.
...else
return 1; /* more data */
+
+ next_state:
+ h->wflags = 0; /* reset this when moving to next state */
+ return 0; /* move to next state */
}
/*----- End of prologue. -----*/
diff --git a/lib/internal.h b/lib/internal.h
index 1ffb5b7..e7be05b 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -110,6 +110,7 @@ struct nbd_handle {
/* As above, but for writing using send_from_wbuf. */
const void *wbuf;
size_t wlen;
+ int wflags;
/* Static buffer used for short amounts of data, such as handshake
* and commands....
2019 Jun 08
6
[PATCH libnbd 0/3] states: Use MSG_MORE to coalesce messages.
Appears to have a measurable benefit, see 3/3 for test results.
Rich.
2019 Jun 08
0
[PATCH libnbd 2/3] states: Add handle h->wflags field.
...if (h->wlen == 0)
+ if (h->wlen == 0) {
+ h->wflags = 0; /* reset this when moving to next state */
return 0; /* move to next state */
+ }
else
return 1; /* more data */
}
diff --git a/lib/internal.h b/lib/internal.h
index 1ffb5b7..e7be05b 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -110,6 +110,7 @@ struct nbd_handle {
/* As above, but for writing using send_from_wbuf. */
const void *wbuf;
size_t wlen;
+ int wflags;
/* Static buffer used for short amounts of data, such as handshake
* and commands....
2019 Jun 08
0
[PATCH libnbd 1/3] lib: socket: Add .send flags parameter.
...socket *sock, void *buf, size_t len)
static ssize_t
tls_send (struct nbd_handle *h,
- struct socket *sock, const void *buf, size_t len)
+ struct socket *sock, const void *buf, size_t len, int flags)
{
ssize_t r;
diff --git a/lib/internal.h b/lib/internal.h
index 503bf34..1ffb5b7 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -201,7 +201,7 @@ struct socket_ops {
ssize_t (*recv) (struct nbd_handle *h,
struct socket *sock, void *buf, size_t len);
ssize_t (*send) (struct nbd_handle *h,
- struct socket *sock, const void *buf, siz...