Myricom logo

Data Structures | Macros | Enumerations
Receive-Side Scaling (RSS)

Data Structures

struct  snf_rss_mode_function
 
struct  snf_rss_params
 

Macros

#define SNF_RSS_IPV4   SNF_RSS_IP
 

Enumerations

enum  snf_rss_params_mode { SNF_RSS_FLAGS = 0, SNF_RSS_FUNCTION = 1 }
 
enum  snf_rss_mode_flags {
  SNF_RSS_IP = 0x01, SNF_RSS_SRC_PORT = 0x10, SNF_RSS_DST_PORT = 0x20, SNF_RSS_GTP = 0x40,
  SNF_RSS_GRE = 0x80
}
 

Detailed Description

These options can be passed as parameters to snf_open when RSS is used.

Macro Definition Documentation

#define SNF_RSS_IPV4   SNF_RSS_IP

Alias for SNF_RSS_IP since IPv4 and IPv6 are always both enabled

Enumeration Type Documentation

RSS parameters for SNF_RSS_FLAGS, flags that can be specified to let the implementation know which fields are significant when generating the hash. By default, RSS is computed on IPv4/IPv6 addresses and source/destination ports when the protocol is TCP or UDP or SCTP, the equivalent of which would be

struct snf_rss_params rssp;
rssp.params.rss_flags = SNF_RSS_IP | SNF_RSS_SRC_PORT | SNF_RSS_DST_PORT;
int rc = snf_open(0, 0, &rssp, 0, -1, &hsnf);
if (rc == 0)
printf("RSS will by applied to IP addresses and TCP/UDP ports if applicable");
Enumerator
SNF_RSS_IP 

Include IP (v4 or v6) SRC/DST addr in hash

SNF_RSS_SRC_PORT 

Include TCP/UDP/SCTP SRC port in hash

SNF_RSS_DST_PORT 

Include TCP/UDP/SCTP DST port in hash

SNF_RSS_GTP 

Include GTP TEID in hash

SNF_RSS_GRE 

Include GRE contents in hash

RSS select mode

Enumerator
SNF_RSS_FLAGS 

Apply RSS using specified flags

SNF_RSS_FUNCTION 

Apply RSS using user-defined function: Kernel API only

Myricom banner
Thu Jan 7 2021 14:20:25 - SNF 5.3.2.11.54430