FreeBSD kernel kern code
uipc_mbufhash.c File Reference
#include <sys/cdefs.h>
#include "opt_inet.h"
#include "opt_inet6.h"
#include <sys/param.h>
#include <sys/mbuf.h>
#include <sys/fnv_hash.h>
#include <net/ethernet.h>
#include <net/infiniband.h>
Include dependency graph for uipc_mbufhash.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static const void * m_common_hash_gethdr (const struct mbuf *m, const u_int off, const u_int len, void *buf)
 
uint32_t m_ether_tcpip_hash_init (void)
 
uint32_t m_infiniband_tcpip_hash_init (void)
 
static uint32_t m_tcpip_hash (const uint32_t flags, const struct mbuf *m, uint32_t p, int off, const uint16_t etype)
 
uint32_t m_ether_tcpip_hash (const uint32_t flags, const struct mbuf *m, uint32_t p)
 
uint32_t m_infiniband_tcpip_hash (const uint32_t flags, const struct mbuf *m, uint32_t p)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ m_common_hash_gethdr()

static const void * m_common_hash_gethdr ( const struct mbuf *  m,
const u_int  off,
const u_int  len,
void *  buf 
)
static

Definition at line 46 of file uipc_mbufhash.c.

References buf, and m_copydata().

Referenced by m_ether_tcpip_hash(), and m_tcpip_hash().

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

◆ m_ether_tcpip_hash()

uint32_t m_ether_tcpip_hash ( const uint32_t  flags,
const struct mbuf *  m,
uint32_t  p 
)

Definition at line 157 of file uipc_mbufhash.c.

References buf, flags, m_common_hash_gethdr(), and m_tcpip_hash().

Here is the call graph for this function:

◆ m_ether_tcpip_hash_init()

uint32_t m_ether_tcpip_hash_init ( void  )

Definition at line 60 of file uipc_mbufhash.c.

◆ m_infiniband_tcpip_hash()

uint32_t m_infiniband_tcpip_hash ( const uint32_t  flags,
const struct mbuf *  m,
uint32_t  p 
)

Definition at line 195 of file uipc_mbufhash.c.

References flags, and m_tcpip_hash().

Here is the call graph for this function:

◆ m_infiniband_tcpip_hash_init()

uint32_t m_infiniband_tcpip_hash_init ( void  )

Definition at line 69 of file uipc_mbufhash.c.

◆ m_tcpip_hash()

static uint32_t m_tcpip_hash ( const uint32_t  flags,
const struct mbuf *  m,
uint32_t  p,
int  off,
const uint16_t  etype 
)
inlinestatic

Definition at line 78 of file uipc_mbufhash.c.

References buf, flags, and m_common_hash_gethdr().

Referenced by m_ether_tcpip_hash(), and m_infiniband_tcpip_hash().

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