summaryrefslogtreecommitdiffstats
path: root/lib/ringbuf.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-04-27 00:42:19 +0200
committerQuentin Young <qlyoung@nvidia.com>2021-04-29 18:12:32 +0200
commit6c55ee964e600cba385afabb8438b9d09eb509f2 (patch)
tree00d2573aeaee899b63d64d84118254a64327a742 /lib/ringbuf.h
parentRevert "bgpd: improve socket read performance" (diff)
downloadfrr-6c55ee964e600cba385afabb8438b9d09eb509f2.tar.xz
frr-6c55ee964e600cba385afabb8438b9d09eb509f2.zip
Revert "lib: add ringbuf socket read function"
This reverts commit d9d7af1a52d77ed0074ebb72f87678308296e74e.
Diffstat (limited to '')
-rw-r--r--lib/ringbuf.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/ringbuf.h b/lib/ringbuf.h
index 209687512..b8f4d9798 100644
--- a/lib/ringbuf.h
+++ b/lib/ringbuf.h
@@ -126,17 +126,6 @@ void ringbuf_reset(struct ringbuf *buf);
*/
void ringbuf_wipe(struct ringbuf *buf);
-/**
- * Perform a socket/file `read()` in to the ring buffer.
- *
- * \param buf the ring buffer pointer.
- * \param sock the file descriptor.
- * \returns the number of bytes read, `0` on connection close or `-1` with
- * `errno` pointing the error (see `readv()` man page for more
- * information.)
- */
-ssize_t ringbuf_read(struct ringbuf *buf, int sock);
-
#ifdef __cplusplus
}
#endif