Page MenuHomeFreeBSD

D38821.diff
No OneTemporary

D38821.diff

diff --git a/lib/librss/librss.h b/lib/librss/librss.h
--- a/lib/librss/librss.h
+++ b/lib/librss/librss.h
@@ -46,13 +46,6 @@
typedef void rss_bucket_rebalance_cb_t(void *arg);
-/*
- * Set the RSS bucket for the given file descriptor.
- *
- * This must be done before bind().
- */
-extern int rss_sock_set_rss_bucket(int fd, int af, int rss_bucket);
-
/*
* Enable or disable receiving RSS/flowid information on
* received UDP frames.
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_rss_bucket "int fd" "int af" "int rss_bucket"
-.Ft int
.Fn rss_sock_set_recvrss "int fd" "int af" "int val"
.Sh DESCRIPTION
The
@@ -110,13 +108,6 @@
socket.
.Pp
The
-.Fn rss_sock_set_rss_bucket
-function configures the RSS bucket which a socket belongs in.
-Note that TCP sockets created by
-.Xr accept 2
-will automatically be assigned to the RSS bucket.
-.Pp
-The
.Fn rss_sock_set_recvrss
function enables or disables receiving RSS related information
as socket options in.
diff --git a/lib/librss/librss.c b/lib/librss/librss.c
--- a/lib/librss/librss.c
+++ b/lib/librss/librss.c
@@ -46,38 +46,6 @@
#include "librss.h"
-int
-rss_sock_set_rss_bucket(int fd, int af, int rss_bucket)
-{
- int opt;
- socklen_t optlen;
- int retval;
- int f, p;
-
- switch (af) {
- case AF_INET:
- p = IPPROTO_IP;
- f = IP_RSS_LISTEN_BUCKET;
- break;
- case AF_INET6:
- p = IPPROTO_IPV6;
- f = IPV6_RSS_LISTEN_BUCKET;
- break;
- default:
- return (-1);
- }
-
- /* Set RSS bucket */
- opt = rss_bucket;
- optlen = sizeof(opt);
- retval = setsockopt(fd, p, f, &opt, optlen);
- if (retval < 0) {
- warn("%s: setsockopt(IP_RSS_LISTEN_BUCKET)", __func__);
- return (-1);
- }
- return (0);
-}
-
int
rss_sock_set_recvrss(int fd, int af, int val)
{

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 28, 9:37 PM (15 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29083375
Default Alt Text
D38821.diff (1 KB)

Event Timeline