NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
gtpip.h File Reference
#include "../dpdk/hashtable.h"
#include "../dpdk/mbuf.h"
#include "../iface/faceid.h"
#include <rte_ether.h>

Go to the source code of this file.

Data Structures

struct  EthGtpip
 GTP-IP handler. More...
 

Typedefs

typedef struct EthGtpip EthGtpip
 GTP-IP handler. More...
 

Functions

uint64_t EthGtpip_ProcessDownlinkBulk (EthGtpip *g, struct rte_mbuf *pkts[], uint32_t count)
 Process downlink packets. More...
 
uint64_t EthGtpip_ProcessUplinkBulk (EthGtpip *g, struct rte_mbuf *pkts[], uint32_t count)
 Process uplink packets. More...
 

Typedef Documentation

◆ EthGtpip

typedef struct EthGtpip EthGtpip

GTP-IP handler.

Function Documentation

◆ EthGtpip_ProcessDownlinkBulk()

uint64_t EthGtpip_ProcessDownlinkBulk ( EthGtpip g,
struct rte_mbuf *  pkts[],
uint32_t  count 
)

Process downlink packets.

Parameters
pktsEthernet frames received on N6 interface.
countquantity of pkts , maximum is 64.
Returns
bitset of accepted packets.

If a packet carries IP traffic that matches a known UE in g , its Ethernet header is removed and then the packet is encapsulated in GTP-U tunnel by prepending outer Ethernet + outer IP + outer UDP + GTPv1 headers.

◆ EthGtpip_ProcessUplinkBulk()

uint64_t EthGtpip_ProcessUplinkBulk ( EthGtpip g,
struct rte_mbuf *  pkts[],
uint32_t  count 
)

Process uplink packets.

Parameters
pktsEthernet frames received on N3 interface.
countquantity of pkts , maximum is 64.
Returns
bitset of accepted packets.

If a packet carries GTP-U traffic that matches a known UE in g , its outer Ethernet + outer IP + outer UDP + GTPv1 headers are removed, and then a new Ethernet header is prepended.