librss: Remove rss_socket_set_rss_bucket()
In preparation for the removal of the IP_RSS_LISTEN_BUCKET socket option. PR: 261398 (exp-run) Reviewed by: glebius Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38821
This commit is contained in:
parent
399a5655e6
commit
d1d0ae97ca
@ -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 @@ datagrams/connections that are not initially consumed by a PCB aware
|
||||
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.
|
||||
|
@ -46,38 +46,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#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)
|
||||
{
|
||||
|
@ -46,13 +46,6 @@ typedef enum {
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user