Page MenuHomeFreeBSD

D38574.diff
No OneTemporary

D38574.diff

diff --git a/lib/librss/librss.h b/lib/librss/librss.h
--- a/lib/librss/librss.h
+++ b/lib/librss/librss.h
@@ -46,14 +46,6 @@
typedef void rss_bucket_rebalance_cb_t(void *arg);
-/*
- * Enable/disable whether to allow for multiple bind()s to the
- * given PCB entry.
- *
- * This must be done before bind().
- */
-extern int rss_sock_set_bindmulti(int fd, int af, int val);
-
/*
* Set the RSS bucket for the given file descriptor.
*
diff --git a/lib/librss/librss.3 b/lib/librss/librss.3
--- a/lib/librss/librss.3
+++ b/lib/librss/librss.3
@@ -23,8 +23,6 @@
.Ft int
.Fn rss_set_bucket_rebalance_cb "rss_bucket_rebalance_cb_t *cb" "void *cbdata"
.Ft int
-.Fn rss_sock_set_bindmulti "int fd" "int af" "int val"
-.Ft int
.Fn rss_sock_set_rss_bucket "int fd" "int af" "int rss_bucket"
.Ft int
.Fn rss_sock_set_recvrss "int fd" "int af" "int val"
@@ -102,16 +100,6 @@
.Fn rss_config_free
is called to free the RSS configuration structure.
.Pp
-To make a
-.Vt bind
-socket RSS aware, the
-.Fn rss_sock_set_bindmulti
-function is used to enable or disable per-RSS bucket
-behaviour.
-The socket filedescriptor, address family and enable flag
-.Vt val
-are passed in.
-.Pp
If
.Vt val
is set to 1, the socket can be placed in an RSS bucket and will only accept
diff --git a/lib/librss/librss.c b/lib/librss/librss.c
--- a/lib/librss/librss.c
+++ b/lib/librss/librss.c
@@ -46,28 +46,6 @@
#include "librss.h"
-int
-rss_sock_set_bindmulti(int fd, int af, int val)
-{
- int opt;
- socklen_t optlen;
- int retval;
-
- /* Set bindmulti */
- opt = val;
- optlen = sizeof(opt);
- retval = setsockopt(fd,
- af == AF_INET ? IPPROTO_IP : IPPROTO_IPV6,
- af == AF_INET ? IP_BINDMULTI : IPV6_BINDMULTI,
- &opt,
- optlen);
- if (retval < 0) {
- warn("%s: setsockopt(IP_BINDMULTI)", __func__);
- return (-1);
- }
- return (0);
-}
-
int
rss_sock_set_rss_bucket(int fd, int af, int rss_bucket)
{

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 28, 4:49 AM (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16249348
Default Alt Text
D38574.diff (1 KB)

Event Timeline