NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
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.

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,
}
EthTxHdrActUdp4Checksum
Definition txhdr.h:12
EthTxHdrActUdp6Checksum
Definition txhdr.h:14
EthTxHdrActUdp6Offload
Definition txhdr.h:15
EthTxHdrActNoHdr
Definition txhdr.h:9
EthTxHdrActEther
Definition txhdr.h:10
EthTxHdrActUdp4Offload
Definition txhdr.h:13