File contains low level utility function and inline macros to enable hardware offload for keystone devices. Static inline NWAL utility functions. Can be used in the case of Applications using low NWL overhead mode and being able to get access to low level hardware TX and RX.
More...
Defines |
#define | NWAL_PAFRM_DEST_PKTDMA 6 |
#define | NWAL_MAX_PS_COMMAND_SIZE 68 |
| Cookie updated by NWAL for the packet flow.
|
Functions |
nwal_RetValue | nwal_initPSCmdInfo (nwal_Inst nwalInst, nwalTxPktInfo_t *pPktInfo, nwalTxPSCmdInfo_t *pTxPSCmdInfo) |
| nwal_initPsCmdInfo API for Initializing PS Command Info
|
static void | nwal_mCmdUpdatePSData (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, Cppi_HostDesc **ppPktDesc, uint8_t **ppPsDataBuf) |
| nwal_mCmdUpdatePSData Update NetCP command for any offload functionilty for TX packets.
|
static void | nwal_mCmdSetPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, nwal_enetPort_t enetPort) |
| nwal_mCmdSetPort Minimal NetCP offload case. EMAC port information for outgoing packet will be updated.
|
static void | nwal_mCmdSetL4CkSumPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t l4OffBytes, uint16_t l4Len, uint16_t pseudoHdrChecksum, nwal_enetPort_t enetPort) |
| nwal_mCmdSetL4CkSumPort Update L4 checksum command and outgoing EMAC port to NetCP command.
|
static void | nwal_mCmdSetCrypPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t saOffBytes, uint16_t saPayloadLen, uint32_t swInfo0, uint32_t swInfo1, nwal_enetPort_t enetPort) |
| nwal_mCmdSetCrypPort Update Crypto command and outgoing EMAC port to NetCP command.
|
static void | nwal_mCmdSetL3CkSumCrypPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t saOffBytes, uint16_t saPayloadLen, uint32_t swInfo0, uint32_t swInfo1, nwal_enetPort_t enetPort) |
| nwal_mCmdSetL3CkSumCrypPort Update L3 checksum, Crypto command and outgoing EMAC port to NetCP command.
|
static void | nwal_mCmdSetL4CkSumCrypPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t l4OffBytes, uint16_t l4Len, uint16_t pseudoHdrChecksum, uint16_t saOffBytes, uint16_t saPayloadLen, uint32_t swInfo0, uint32_t swInfo1, nwal_enetPort_t enetPort) |
| nwal_mCmdSetL4CkSumCrypPort Update L4 checksum,Crypto and outgoing EMAC port to NetCP command.
|
static void | nwal_mCmdSetAHCrypPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t saOffBytes, uint16_t saPayloadLen, uint32_t swInfo0, uint32_t swInfo1, uint16_t saAhIcvOffBytes, uint16_t saAhMacSize, nwal_enetPort_t enetPort) |
| nwal_mCmdSetAHCrypPort Update Crypto command and outgoing EMAC port to NetCP command for IPSec AH mode.
|
static void | nwal_mCmdSetL4CkSumAHCrypPort (Ti_Pkt *pPkt, nwalTxPSCmdInfo_t *pTxPSCmdInfo, uint16_t l4OffBytes, uint16_t l4Len, uint16_t pseudoHdrChecksum, uint16_t saOffBytes, uint16_t saPayloadLen, uint32_t swInfo0, uint32_t swInfo1, uint16_t saAhIcvOffBytes, uint16_t saAhMacSize, nwal_enetPort_t enetPort) |
| nwal_mCmdSetL4CkSumAHCrypPort Update L4 checksum,Crypto and outgoing EMAC port for IPSec AH packet to NetCP command.
|
static void | nwal_mmGetDmAuthTag (Ti_Pkt *pPkt, uint8_t **ppAuthTag, uint32_t *pAuthTagLen) |
| nwal_mmGetDmAuthTag Get Authentication Tag for Data Mode SA packet
|
static void | nwal_mmGetDmAppCtxId (Ti_Pkt *pPkt, uint32_t *pAppCtxId) |
| nwal_mmGetDmAppCtxId Get Application Context for Data Mode SA packet
|
static nwal_Bool_t | nwal_mGetAppidFmPkt (Ti_Pkt *pPkt, nwal_AppId *pAppId) |
| nwal_mGetAppidFmPkt Get App ID from an incoming packet from NetCP
|
static pasahoLongInfo_t * | nwal_mGetProtoInfo (Ti_Pkt *pPkt) |
| nwal_mGetProtoInfo Get Protocol Info data from an incoming packet from NetCP
|
static uint16_t | nwal_mGetL3OffBytes (pasahoLongInfo_t *protoInfo) |
| nwal_mGetL3OffBytes Get offset to the L3 header. This is valid if packet had gone through Layer 2 classification at NetCP
|
static uint16_t | nwal_mGetL4Offset (pasahoLongInfo_t *protoInfo) |
| nwal_mGetL4Offset Get Offset to L4 protocol
|
static uint16_t | nwal_mGetL4ProtoType (pasahoLongInfo_t *protoInfo) |
| nwal_mGetL4ProtoType Get L4 protocol type
|
static uint16_t | nwal_mGetPloadOffBytes (pasahoLongInfo_t *protoInfo) |
| nwal_mGetPloadOffBytes Get offset to the payload. This is valid if packet had gone through Layer 4 classification at NetCP
|
static uint16_t | nwal_mGetPloadLen (pasahoLongInfo_t *protoInfo) |
| nwal_mGetPloadLen Get length of the payload. This is valid if packet had gone through Layer 4 classification at NetCP
|
static nwal_rxFlag1_t | nwal_mGetCryptoStatus (pasahoLongInfo_t *protoInfo) |
| nwal_mGetCryptoStatus Get the status of crypto action by NetCP for incoming packet
|
static nwal_Bool_t | nwal_mIsMacBroadcast (pasahoLongInfo_t *protoInfo) |
| nwal_mIsMacBroadcast Return nwal_TRUE for MAC broadcast packet
|
static nwal_Bool_t | nwal_mIsFragmentPkt (pasahoLongInfo_t *protoInfo) |
| nwal_mIsFragmentPkt Return nwal_TRUE for IP fragment packet received
|
static nwal_Bool_t | nwal_mIsMacMulticast (pasahoLongInfo_t *protoInfo) |
| nwal_mIsMacMulticast Return nwal_TRUE for MAC Multicast packet
|
static nwal_macPktType_t | nwal_mGetRxEmacPort (pasahoLongInfo_t *protoInfo) |
| nwal_mGetRxEmacPort Get the incoming port id for the packet
|
static nwal_Bool_t | nwal_mIsL3CksumStatusPass (Ti_Pkt *pPkt) |
| nwal_mIsL3CksumStatusPass Layer 3 Checksum result is PASS
|
static nwal_Bool_t | nwal_mIsL4CksumStatusPass (Ti_Pkt *pPkt) |
| nwal_mIsL4CksumStatusPass Layer 4 Checksum result is PASS
|
File contains low level utility function and inline macros to enable hardware offload for keystone devices. Static inline NWAL utility functions. Can be used in the case of Applications using low NWL overhead mode and being able to get access to low level hardware TX and RX.
path ti/drv/nwal/nwal_util.h