NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Enumerations | Functions | Variables
txhdr.c File Reference
#include "txhdr.h"
#include "hdr-impl.h"

Macros

#define BUF_TAIL   (RTE_PTR_ADD(hdr->buf, hdr->len))
 

Enumerations

enum  { VXLAN_SRCPORT_BASE = 0xC000 , VXLAN_SRCPORT_MASK = 0x3FFF }
 

Functions

void EthTxHdr_Prepare (EthTxHdr *hdr, const EthLocator *loc, bool hasChecksumOffloads)
 Prepare TX header from locator. More...
 

Variables

const EthTxHdr_PrependFunc EthTxHdr_PrependJmp []
 

Macro Definition Documentation

◆ BUF_TAIL

#define BUF_TAIL   (RTE_PTR_ADD(hdr->buf, hdr->len))

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VXLAN_SRCPORT_BASE 
VXLAN_SRCPORT_MASK 

Function Documentation

◆ EthTxHdr_Prepare()

void EthTxHdr_Prepare ( EthTxHdr hdr,
const EthLocator loc,
bool  hasChecksumOffloads 
)

Prepare TX header from locator.

Variable Documentation

◆ EthTxHdr_PrependJmp

const EthTxHdr_PrependFunc EthTxHdr_PrependJmp[]
Initial value:
= {
[EthTxHdrActNoHdr] = TxNoHdr,
[EthTxHdrActEther] = TxEther,
[EthTxHdrActUdp4Checksum] = TxUdp4Checksum,
[EthTxHdrActUdp4Offload] = TxUdp4Offload,
[EthTxHdrActUdp6Checksum] = TxUdp6Checksum,
[EthTxHdrActUdp6Offload] = TxUdp6Offload,
}
@ EthTxHdrActUdp6Checksum
Definition: txhdr.h:14
@ EthTxHdrActUdp6Offload
Definition: txhdr.h:15
@ EthTxHdrActUdp4Checksum
Definition: txhdr.h:12
@ EthTxHdrActUdp4Offload
Definition: txhdr.h:13
@ EthTxHdrActNoHdr
Definition: txhdr.h:9
@ EthTxHdrActEther
Definition: txhdr.h:10