The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dpdk_rte_lpm/rte_shim.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef _RTE_SHIM_H_
    2 #define _RTE_SHIM_H_
    3 
    4 #define rte_malloc(_type, _size, _align)        malloc(_size, M_TEMP, M_NOWAIT)
    5 #define rte_free(_ptr)                          free(_ptr, M_TEMP)
    6 #define rte_zmalloc(_type, _size, _align)       malloc(_size, M_TEMP, M_NOWAIT | M_ZERO)
    7 #define rte_zmalloc_socket(_type, _size, _align, _s)    malloc(_size, M_TEMP, M_NOWAIT | M_ZERO)
    8 
    9 #define rte_mcfg_tailq_write_unlock()
   10 #define rte_mcfg_tailq_write_lock()
   11 
   12 #define RTE_CACHE_LINE_SIZE     CACHE_LINE_SIZE
   13 #define strtoull                strtoul
   14 #define assert(_s)              KASSERT((_s), ("DPDK: assert failed"))
   15 #define rte_memcpy              memcpy
   16 #define rte_strerror(_err)      "strerror_not_implemented"
   17 #define RTE_LOG(_sev, _sub, _fmt, ...)  printf("DPDK::" #_sev "::" #_sub " %s: " _fmt, __func__ , ## __VA_ARGS__)
   18 
   19 #include "sys/endian.h"
   20 #define RTE_BYTE_ORDER  BYTE_ORDER
   21 #define RTE_LITTLE_ENDIAN       LITTLE_ENDIAN
   22 #define RTE_BIG_ENDIAN          BIG_ENDIAN
   23 
   24 #include "sys/limits.h" // CHAR_BIT
   25 #define rte_le_to_cpu_32        le32toh
   26 
   27 #include "rte_jhash.h"
   28 #include "rte_common.h"
   29 
   30 
   31 #endif

Cache object: 7199df31a4732e8d2eaeaa2f69e9568c


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.