FreeBSD kernel IPv4 code
in_rss.h File Reference
#include <netinet/in.h>
Include dependency graph for in_rss.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t rss_hash_ip4_4tuple (struct in_addr src, u_short srcport, struct in_addr dst, u_short dstport)
 
uint32_t rss_hash_ip4_2tuple (struct in_addr src, struct in_addr dst)
 
int rss_mbuf_software_hash_v4 (const struct mbuf *m, int dir, uint32_t *hashval, uint32_t *hashtype)
 
int rss_proto_software_hash_v4 (struct in_addr src, struct in_addr dst, u_short src_port, u_short dst_port, int proto, uint32_t *hashval, uint32_t *hashtype)
 
struct mbuf * rss_soft_m2cpuid_v4 (struct mbuf *m, uintptr_t source, u_int *cpuid)
 
uint32_t xps_proto_software_hash_v4 (struct in_addr s, struct in_addr d, u_short sp, u_short dp, int proto, uint32_t *hashtype)
 

Function Documentation

◆ rss_hash_ip4_2tuple()

uint32_t rss_hash_ip4_2tuple ( struct in_addr  src,
struct in_addr  dst 
)

Definition at line 64 of file in_rss.c.

Referenced by rss_proto_software_hash_v4(), and xps_proto_software_hash_v4().

Here is the caller graph for this function:

◆ rss_hash_ip4_4tuple()

uint32_t rss_hash_ip4_4tuple ( struct in_addr  src,
u_short  srcport,
struct in_addr  dst,
u_short  dstport 
)

Definition at line 81 of file in_rss.c.

Referenced by rss_proto_software_hash_v4(), and xps_proto_software_hash_v4().

Here is the caller graph for this function:

◆ rss_mbuf_software_hash_v4()

int rss_mbuf_software_hash_v4 ( const struct mbuf *  m,
int  dir,
uint32_t hashval,
uint32_t hashtype 
)

Definition at line 207 of file in_rss.c.

References ip::ip_dst, ip::ip_hl, IP_MF, ip::ip_off, IP_OFFMASK, ip::ip_p, IPPROTO_TCP, IPPROTO_UDP, rss_proto_software_hash_v4(), udphdr::uh_dport, and udphdr::uh_sport.

Referenced by ip_reass(), and rss_soft_m2cpuid_v4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rss_proto_software_hash_v4()

int rss_proto_software_hash_v4 ( struct in_addr  src,
struct in_addr  dst,
u_short  src_port,
u_short  dst_port,
int  proto,
uint32_t hashval,
uint32_t hashtype 
)

Definition at line 114 of file in_rss.c.

References IPPROTO_TCP, IPPROTO_UDP, rss_hash_ip4_2tuple(), and rss_hash_ip4_4tuple().

Referenced by rss_mbuf_software_hash_v4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rss_soft_m2cpuid_v4()

struct mbuf * rss_soft_m2cpuid_v4 ( struct mbuf *  m,
uintptr_t  source,
u_int *  cpuid 
)

Definition at line 372 of file in_rss.c.

References rss_mbuf_software_hash_v4().

Here is the call graph for this function:

◆ xps_proto_software_hash_v4()

uint32_t xps_proto_software_hash_v4 ( struct in_addr  s,
struct in_addr  d,
u_short  sp,
u_short  dp,
int  proto,
uint32_t hashtype 
)

Definition at line 161 of file in_rss.c.

References IPPROTO_TCP, IPPROTO_UDP, rss_hash_ip4_2tuple(), and rss_hash_ip4_4tuple().

Here is the call graph for this function: