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

Macros

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

Functions

EthRxMatchResult EthRxMatch_MatchGtpInner (const EthRxMatch *match, const struct rte_mbuf *m)
 Check GTP-U inner headers only. More...
 
void EthRxMatch_Prepare (EthRxMatch *match, const EthLocator *loc)
 Prepare RX matcher from locator. More...
 

Variables

const EthRxMatch_MatchFunc EthRxMatch_MatchJmp []
 

Macro Definition Documentation

◆ BUF_TAIL

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

Function Documentation

◆ EthRxMatch_MatchGtpInner()

EthRxMatchResult EthRxMatch_MatchGtpInner ( const EthRxMatch match,
const struct rte_mbuf *  m 
)

Check GTP-U inner headers only.

Parameters
matchEthRxMatch prepared from GTP-U locator.
mmbuf with sufficient data_len.

◆ EthRxMatch_Prepare()

void EthRxMatch_Prepare ( EthRxMatch match,
const EthLocator loc 
)

Prepare RX matcher from locator.

Variable Documentation

◆ EthRxMatch_MatchJmp

const EthRxMatch_MatchFunc EthRxMatch_MatchJmp[]
Initial value:
= {
[EthRxMatchActAlways] = MatchAlways,
[EthRxMatchActEtherUnicast] = MatchEtherUnicast,
[EthRxMatchActEtherMulticast] = MatchEtherMulticast,
[EthRxMatchActUdp] = MatchIpUdp,
[EthRxMatchActVxlan] = MatchVxlan,
[EthRxMatchActGtp] = MatchGtp,
}
@ EthRxMatchActVxlan
Definition: rxmatch.h:13
@ EthRxMatchActEtherMulticast
Definition: rxmatch.h:11
@ EthRxMatchActGtp
Definition: rxmatch.h:14
@ EthRxMatchActEtherUnicast
Definition: rxmatch.h:10
@ EthRxMatchActAlways
Definition: rxmatch.h:9
@ EthRxMatchActUdp
Definition: rxmatch.h:12