Myricom logotype

Receive-Side Scaling (RSS)
[SNF API Reference]


Data Structures

struct  snf_rss_mode_function
struct  snf_rss_params

Defines

#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 }

Detailed Description

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

Define Documentation

#define SNF_RSS_IPV4   SNF_RSS_IP

Alias for SNF_RSS_IP since IPv4 and IPv6 are always both enabled


Enumeration Type Documentation

enum snf_rss_mode_flags

RSS parameters for SNF_RSS_FLAGS, flags that can be specified to let the implementation know which IP/TCP/UDP 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, the equivalent of which would be

 struct snf_rss_params rssp;
 rssp.mode = SNF_RSS_FLAGS;
 rssp.params.rss_flags = SNF_RSS_IP | SNF_RSS_SRC_PORT | SNF_RSS_DST_PORT;

 snf_handle_t hsnf;
 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 SRC port in hash
SNF_RSS_DST_PORT  Include TCP/UDP DST port in hash

enum snf_rss_params_mode

RSS select mode

Enumerator:
SNF_RSS_FLAGS  Apply RSS using specified flags
SNF_RSS_FUNCTION  Apply RSS using user-defined function


Myricom banner
26 October 2010 Sniffer10G 1.0.2_pcap1.1.1