cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
session_lookup_controller.hpp
Go to the documentation of this file.
1 
17 
43 
56 #ifndef _TOE_SLC_H_
57 #define _TOE_SLC_H_
58 
59 #include "../../../../NTS/nts_utils.hpp"
60 #include "../../../../NTS/toe/src/toe.hpp"
61 
62 using namespace hls;
63 
64 
68 
72 
73 //=========================================================
74 //== SLc - Internal Session Lookup Query
75 //=========================================================
76 class SLcQuery {
77  public:
81  SLcQuery() {}
82  SLcQuery(SLcFourTuple tuple, bool allowCreation, LkpSrcBit src) :
83  tuple(tuple), allowCreation(allowCreation), source(src) {}
84 };
85 
86 //=========================================================
87 //== SLc - Internal Reverse Lookup
88 //=========================================================
90 {
91  public:
96  key(key), value(value) {}
97 };
98 
99 
100 
106  stream<SessionLookupQuery> &siRXe_SessLookupReq,
107  stream<SessionLookupReply> &soRXe_SessLookupRep,
108  stream<SessionId> &siSTt_SessReleaseCmd,
109  stream<TcpPort> &soPRt_ClosePortCmd,
110  stream<SocketPair> &siTAi_SessLookupReq,
111  stream<SessionLookupReply> &soTAi_SessLookupRep,
112  stream<SessionId> &siTXe_ReverseLkpReq,
113  stream<fourTuple> &soTXe_ReverseLkpRep,
114  stream<CamSessionLookupRequest> &soCAM_SessLookupReq,
115  stream<CamSessionLookupReply> &siCAM_SessLookupRep,
116  stream<CamSessionUpdateRequest> &soCAM_SessUpdateReq,
117  stream<CamSessionUpdateReply> &siCAM_SessUpdateRep,
118  stream<ap_uint<16> > &soSssRelCnt,
119  stream<ap_uint<16> > &soSssRegCnt
120 );
121 
122 #endif
123 
SLcQuery(SLcFourTuple tuple, bool allowCreation, LkpSrcBit src)
SLcReverseLkp(SessionId key, SLcFourTuple value)
void session_lookup_controller(stream< SessionLookupQuery > &siRXe_SessLookupReq, stream< SessionLookupReply > &soRXe_SessLookupRep, stream< SessionId > &siSTt_SessReleaseCmd, stream< TcpPort > &soPRt_ClosePortCmd, stream< SocketPair > &siTAi_SessLookupReq, stream< SessionLookupReply > &soTAi_SessLookupRep, stream< SessionId > &siTXe_ReverseLkpReq, stream< fourTuple > &soTXe_ReverseLkpRep, stream< CamSessionLookupRequest > &soCAM_SessLookupReq, stream< CamSessionLookupReply > &siCAM_SessLookupRep, stream< CamSessionUpdateRequest > &soCAM_SessUpdateReq, stream< CamSessionUpdateReply > &siCAM_SessUpdateRep, stream< ap_uint< 16 > > &soSssRelCnt, stream< ap_uint< 16 > > &soSssRegCnt)
Session Lookup Controller (SLc)
FourTuple SLcFourTuple
ap_uint< 16 > SessionId
Definition: nts_types.hpp:136
ap_uint< 1 > LkpSrcBit
Definition: nts_types.hpp:379