Home
last modified time | relevance | path

Searched full:rss (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/freebsd/sys/net/
H A Drss_config.c51 * Operating system parts of receiver-side scaling (RSS), which allows
53 * of header tuples. This implementation aligns RSS buckets with connection
58 * Network device drivers needing to configure RSS will query this framework
59 * for parameters, such as the current RSS key, hashing policies, number of
63 * into the stack on as close to the right CPU as possible, if playing by RSS
69 * - Event handler drivers can register to pick up RSS configuration changes.
82 SYSCTL_NODE(_net_inet, OID_AUTO, rss, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
86 * Toeplitz is the only required hash function in the RSS spec, so use it by
91 "RSS hash algorithm");
93 #ifdef RSS
[all …]
H A Drss_config.h36 * Supported RSS hash functions.
39 #define RSS_HASH_TOEPLITZ 0x00000002 /* Required by RSS. */
45 * Instances of struct inpcbinfo declare an RSS hash type indicating what
53 * Define RSS representations of the M_HASHTYPE_* values, representing
83 * For RSS hash methods that do a software hash on an mbuf, the packet
100 printf("RSS (%s:%u): " format, __func__, __LINE__,\
107 #ifdef RSS
109 * Device driver interfaces to query RSS properties that must be programmed
128 #endif /* RSS */
/freebsd/lib/librss/
H A Dlibrss.330 the system RSS configuration and interacting with RSS aware
35 to fetch the current RSS configuration from the system and perform
37 This typically involves spawning worker threads, one per RSS bucket,
54 function to fetch the number of RSS buckets, create one thread
55 per RSS bucket for RSS aware work, then one RSS aware socket to receive
57 in each particular RSS bucket / thread.
91 rebalances RSS buckets.
93 reprogram the RSS key, so typically the only work to be performed
96 Once RSS setup is completed,
98 is called to free the RSS configuration structure.
[all …]
H A Dlibrss.c77 /* Enable/disable RSS bucket reception */ in rss_sock_set_recvrss()
119 retval = sysctlbyname("net.inet.rss.bucket_mapping", bstr, &rlen, NULL, 0); in rss_getbucketmap()
121 warn("sysctlbyname (net.inet.rss.bucket_mapping)"); in rss_getbucketmap()
158 rc->rss_ncpus = rss_getsysctlint("net.inet.rss.ncpus"); in rss_config_get()
160 fprintf(stderr, "%s: couldn't fetch net.inet.rss.ncpus\n", __func__); in rss_config_get()
164 rc->rss_nbuckets = rss_getsysctlint("net.inet.rss.buckets"); in rss_config_get()
166 fprintf(stderr, "%s: couldn't fetch net.inet.rss.nbuckets\n", __func__); in rss_config_get()
170 rc->rss_basecpu = rss_getsysctlint("net.inet.rss.basecpu"); in rss_config_get()
172 fprintf(stderr, "%s: couldn't fetch net.inet.rss.basecpu\n", __func__); in rss_config_get()
178 warn("%s: calloc (rss buckets; %d entries)", __func__, rc->rss_nbuckets); in rss_config_get()
[all …]
H A Dlibrss.h48 * Enable or disable receiving RSS/flowid information on
54 * Fetch RSS configuration information.
59 * Free an RSS configuration structure.
64 * Return how many RSS buckets there are.
69 * Fetch the cpuset configuration for the given RSS bucket and
/freebsd/sys/dev/ice/
H A Dice_rss.h34 * @brief default RSS values if kernel RSS is not enabled
36 * This header includes default definitions for RSS functionality if the
37 * kernel RSS interface is not enabled. This allows main driver code to avoid
38 * having to check the RSS ifdef throughout, but instead just use the RSS
47 /* Make sure our key size buffer has enough space to store the kernel RSS key */
50 #ifdef RSS
51 /* RSS CPU/bucket mapping functions - only available with options RSS */
53 /* Stub CPU/bucket functions when RSS not configured */
86 #endif /* !RSS */
/freebsd/sys/contrib/ena-com/
H A Dena_com.c1146 return ena_dev->rss.hash_func; in ena_com_get_current_hash_function()
1152 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1163 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_allocate() local
1169 sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1170 rss->hash_key, in ena_com_hash_key_allocate()
1171 rss->hash_key_dma_addr, in ena_com_hash_key_allocate()
1172 rss->hash_key_mem_handle); in ena_com_hash_key_allocate()
1174 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1182 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_destroy() local
1184 if (rss->hash_key) in ena_com_hash_key_destroy()
[all …]
/freebsd/sys/dev/cxgbe/common/
H A Dt4vf_hw.c228 * t4vf_get_rss_glb_config - retrieve adapter RSS Global Configuration
231 * Retrieves global RSS mode and parameters with which we have to live
232 * and stores them in the @adapter's RSS parameters.
236 struct rss_params *rss = &adapter->params.rss; in t4vf_get_rss_glb_config() local
241 * Execute an RSS Global Configuration read command to retrieve in t4vf_get_rss_glb_config()
242 * our RSS configuration. in t4vf_get_rss_glb_config()
254 * Transate the big-endian RSS Global Configuration into our in t4vf_get_rss_glb_config()
255 * cpu-endian format based on the RSS mode. We also do first level in t4vf_get_rss_glb_config()
259 rss->mode = G_FW_RSS_GLB_CONFIG_CMD_MODE( in t4vf_get_rss_glb_config()
261 switch (rss->mode) { in t4vf_get_rss_glb_config()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonRegisterInfo.td95 // Rss - 64-bit system registers.
96 class Rss<bits<7> num, string n, list<Register> subregs,
373 def SGP1_0 : Rss<0, "s1:0", [SGP0, SGP1], ["sgp1:0"]>, DwarfRegNum<[144]>;
374 def S3_2 : Rss<2, "s3:2", [STID, ELR]>, DwarfRegNum<[146]>;
375 def S5_4 : Rss<4, "s5:4", [BADVA0, BADVA1], ["badva1:0"]>,
377 def S7_6 : Rss<6, "s7:6", [SSR, CCR], ["ccr:ssr"]>, DwarfRegNum<[150]>;
378 def S9_8 : Rss<8, "s9:8", [HTID, BADVA]>, DwarfRegNum<[152]>;
379 def S11_10 : Rss<10, "s11:10", [IMASK, S11]>, DwarfRegNum<[154]>;
380 def S13_12 : Rss<12, "s13:12", [S12, S13]>, DwarfRegNum<[156]>;
381 def S15_14 : Rss<14, "s15:14", [S14, S15]>, DwarfRegNum<[158]>;
[all …]
H A DHexagonIntrinsicsV5.td24 //Rdd=vrmpyweh(Rss,Rtt)[:<<1]
28 //Rdd=vrmpywoh(Rss,Rtt)[:<<1]
32 //Rdd+=vrmpyweh(Rss,Rtt)[:<<1]
36 //Rdd=vrmpywoh(Rss,Rtt)[:<<1]
61 //Rxx^=asr(Rss,Rt)
63 //Rxx^=asl(Rss,Rt)
65 //Rxx^=lsr(Rss,Rt)
67 //Rxx^=lsl(Rss,Rt)
154 // Rdd=vcnegh(Rss,Rt)
182 // Rxx+=vrcrotate(Rss,Rt,#u2)
[all …]
H A DHexagonPatterns.td1197 def: Pat<(bswap I64:$Rss), (Combinew (A2_swiz (LoReg $Rss)),
1198 (A2_swiz (HiReg $Rss)))>;
1641 def: Pat<(v2i32 (mulhu V2I32:$Rss, V2I32:$Rtt)),
1642 (Combinew (M2_mpyu_up (HiReg $Rss), (HiReg $Rtt)),
1643 (M2_mpyu_up (LoReg $Rss), (LoReg $Rtt)))>;
1645 def: Pat<(v2i32 (mulhs V2I32:$Rss, V2I32:$Rtt)),
1646 (Combinew (M2_mpy_up (HiReg $Rss), (HiReg $Rtt)),
1647 (M2_mpy_up (LoReg $Rss), (LoReg $Rtt)))>;
1652 OutPatFrag<(ops node:$Rss, node:$Rtt),
1653 (Combinew (Mulhub4 (HiReg $Rss), (HiReg $Rtt)),
[all …]
/freebsd/share/man/man4/
H A Dena.472 When RSS is enabled, each Tx/Rx queue pair is bound to a corresponding
74 The order of those bindings is based on the RSS bucket mapping.
75 For builds with RSS support disabled, the
77 Receive-side scaling (RSS) is supported for multi-core scaling.
273 .It Va dev.ena.X.rss.indir_table_size
276 Returns the number of entries in the RSS indirection table.
279 To read the RSS indirection table size, the following command should be used:
281 sysctl dev.ena.0.rss.indir_table_size
283 .It Va dev.ena.X.rss.indir_table
286 Updates selected indices of the RSS indirection table.
[all …]
/freebsd/sys/netinet/
H A Din_rss.c53 /* for software rss hash support */
104 * tuple. This depends upon the currently configured RSS hash types.
135 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in rss_proto_software_hash_v4()
153 * tuple. This depends upon the currently configured RSS hash types.
179 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in xps_proto_software_hash_v4()
190 * Do a software calculation of the RSS for the given mbuf.
192 * This is typically used by the input path to recalculate the RSS after
199 * the mbuf already had a valid RSS flowid.
354 #ifdef RSS
359 * If an existing RSS hash exists and it matches what the configured
[all …]
/freebsd/sys/netinet6/
H A Din6_rss.c53 /* for software rss hash support */
105 * tuple. This depends upon the currently configured RSS hash types.
136 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in rss_proto_software_hash_v6()
154 * tuple. This depends upon the currently configured RSS hash types.
181 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in xps_proto_software_hash_v6()
193 * Do a software calculation of the RSS for the given mbuf.
195 * This is typically used by the input path to recalculate the RSS after
202 * the mbuf already had a valid RSS flowid.
379 #ifdef RSS
384 * If an existing RSS hash exists and it matches what the configured
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_libcdep.cpp40 // If RSS has grown 10% since last time, print some information. in BackgroundThread()
42 Printf("%s: RSS: %zdMb\n", SanitizerToolName, current_rss_mb); in BackgroundThread()
54 // Check RSS against the limit. in BackgroundThread()
56 Report("%s: hard rss limit exhausted (%zdMb vs %zdMb)\n", in BackgroundThread()
64 Report("%s: soft rss limit exhausted (%zdMb vs %zdMb)\n", in BackgroundThread()
70 Report("%s: soft rss limit unexhausted (%zdMb vs %zdMb)\n", in BackgroundThread()
77 Printf("\n\nHEAP PROFILE at RSS %zdMb\n", current_rss_mb); in BackgroundThread()
86 // Start the background thread if one of the rss limits is given. in MaybeStartBackgroudThread()
/freebsd/sys/dev/ixgbe/
H A Dixgbe_rss.h40 #ifdef RSS
41 /* RSS CPU/bucket mapping functions - only available with options RSS */
43 /* Stub CPU/bucket functions when RSS not configured */
/freebsd/sys/dev/vnic/
H A Dnicvf_main.c1012 struct nicvf_rss_info *rss; in nicvf_config_rss() local
1016 rss = &nic->rss_info; in nicvf_config_rss()
1017 ind_tbl_len = rss->rss_size; in nicvf_config_rss()
1021 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
1030 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; in nicvf_config_rss()
1041 struct nicvf_rss_info *rss; in nicvf_set_rss_key() local
1045 rss = &nic->rss_info; in nicvf_set_rss_key()
1049 nicvf_reg_write(nic, key_addr, rss->key[idx]); in nicvf_set_rss_key()
1057 struct nicvf_rss_info *rss; in nicvf_rss_init() local
1062 rss = &nic->rss_info; in nicvf_rss_init()
[all …]
/freebsd/contrib/blocklist/bin/
H A Dblacklistd.c120 getremoteaddress(bl_info_t *bi, struct sockaddr_storage *rss, socklen_t *rsl) in getremoteaddress() argument
122 *rsl = sizeof(*rss); in getremoteaddress()
123 memset(rss, 0, *rsl); in getremoteaddress()
125 if (getpeername(bi->bi_fd, (void *)rss, rsl) != -1) in getremoteaddress()
157 memcpy(rss, &bi->bi_ss, *rsl); in getremoteaddress()
160 if (*rsl != rss->ss_len) { in getremoteaddress()
163 (unsigned)*rsl, (unsigned)rss->ss_len); in getremoteaddress()
173 struct sockaddr_storage rss; in process() local
193 if (getremoteaddress(bi, &rss, &rsl) == -1) in process()
197 sockaddr_snprintf(rbuf, sizeof(rbuf), "%a:%p", (void *)&rss); in process()
[all …]
H A Dblocklistd.c120 getremoteaddress(bl_info_t *bi, struct sockaddr_storage *rss, socklen_t *rsl) in getremoteaddress() argument
122 *rsl = sizeof(*rss); in getremoteaddress()
123 memset(rss, 0, *rsl); in getremoteaddress()
125 if (getpeername(bi->bi_fd, (void *)rss, rsl) != -1) in getremoteaddress()
157 memcpy(rss, &bi->bi_ss, *rsl); in getremoteaddress()
160 if (*rsl != rss->ss_len) { in getremoteaddress()
163 (unsigned)*rsl, (unsigned)rss->ss_len); in getremoteaddress()
173 struct sockaddr_storage rss; in process() local
193 if (getremoteaddress(bi, &rss, &rsl) == -1) in process()
197 sockaddr_snprintf(rbuf, sizeof(rbuf), "%a:%p", (void *)&rss); in process()
[all …]
/freebsd/sys/dev/ena/
H A Dena_sysctl.c44 /* Kernel option RSS prevents manipulation of key hash and indirection table. */
45 #ifndef RSS
54 #ifndef RSS
193 #ifndef RSS in ena_sysctl_add_nodes()
318 #ifdef RSS in ena_sysctl_add_stats()
602 /* Kernel option RSS prevents manipulation of key hash and indirection table. */
603 #ifndef RSS
619 /* RSS options */ in ena_sysctl_add_rss()
620 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "rss", in ena_sysctl_add_rss()
624 /* RSS hash key */ in ena_sysctl_add_rss()
[all …]
H A Dena_rss.c49 ("Requested more bytes than ENA RSS key can hold")); in ena_rss_key_fill()
114 #ifdef RSS in ena_rss_init_default()
164 /* In case the RSS table was destroyed */ in ena_rss_configure()
165 if (!ena_dev->rss.tbl_log_size) { in ena_rss_configure()
169 "WARNING: RSS was not properly re-initialized," in ena_rss_configure()
216 "WARNING: RSS was not properly initialized," in ena_rss_init_default_deferred()
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dhexagon_protos.h27 C Intrinsic Prototype: Word64 Q6_P_abs_P(Word64 Rss)
171 C Intrinsic Prototype: Word64 Q6_P_add_PP(Word64 Rss, Word64 Rtt)
180 C Intrinsic Prototype: Word64 Q6_P_add_PP_sat(Word64 Rss, Word64 Rtt)
225 C Intrinsic Prototype: Word64 Q6_P_and_PP(Word64 Rss, Word64 Rtt)
315 C Intrinsic Prototype: Word64 Q6_P_max_PP(Word64 Rss, Word64 Rtt)
333 C Intrinsic Prototype: UWord64 Q6_P_maxu_PP(Word64 Rss, Word64 Rtt)
351 C Intrinsic Prototype: Word64 Q6_P_min_PP(Word64 Rtt, Word64 Rss)
369 C Intrinsic Prototype: UWord64 Q6_P_minu_PP(Word64 Rtt, Word64 Rss)
387 C Intrinsic Prototype: Word64 Q6_P_neg_P(Word64 Rss)
414 C Intrinsic Prototype: Word64 Q6_P_not_P(Word64 Rss)
[all …]
/freebsd/sys/dev/liquidio/
H A Dlio_rss.c53 lio_dev_err(oct, "Failed to SET RSS params\n"); in lio_set_rss_callback()
55 lio_dev_info(oct, "SET RSS params\n"); in lio_set_rss_callback()
70 #ifdef RSS in lio_set_rss_info()
140 lio_dev_info(oct, "RSS itable: Size %u\n", rss_param->param.itablesize); in lio_send_rss_param()
158 /* swap cmd and rss params */ in lio_send_rss_param()
/freebsd/sys/dev/iavf/
H A Diavf_lib.c61 * iavf_get_default_rss_key - Get the default RSS key for this driver
64 * Copies the driver's default RSS key into the provided key variable.
497 "VSIs %d, QPs %d, MSI-X %d, RSS sizes: key %d lut %d\n", in iavf_print_device_info()
1079 * iavf_config_rss_reg - Configure RSS using registers
1082 * Configures RSS for this function using the device registers. Called if the
1083 * PF does not support configuring RSS over the virtchnl interface.
1096 /* Don't set up RSS if using a single queue */ in iavf_config_rss_reg()
1104 /* Fetch the configured RSS key */ in iavf_config_rss_reg()
1111 /* Enable PCTYPES for RSS: */ in iavf_config_rss_reg()
1137 #ifdef RSS in iavf_config_rss_reg()
[all …]
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c42 int is_tx, int rss, int qpn, int cqn, in mlx4_en_fill_qp_context() argument
49 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); in mlx4_en_fill_qp_context()
52 if (!is_tx && !rss) in mlx4_en_fill_qp_context()
67 if (!rss && in mlx4_en_fill_qp_context()

12345678910>>...16