#include <ksync_sock.h>
|
| KSyncSock () |
|
virtual | ~KSyncSock () |
|
virtual bool | BulkDecoder (char *data, KSyncBulkSandeshContext *ctxt)=0 |
|
virtual bool | Decoder (char *data, AgentSandeshContext *ctxt)=0 |
|
void | SendAsync (KSyncEntry *entry, int msg_len, char *msg, KSyncEntry::KSyncEvent event) |
|
std::size_t | BlockingSend (char *msg, int msg_len) |
|
bool | BlockingRecv () |
|
void | GenericSend (IoContext *ctx) |
|
uint32_t | AllocSeqNo (IoContext::Type type) |
|
uint32_t | AllocSeqNo (IoContext::Type type, uint32_t instance) |
|
KSyncReceiveQueue * | GetReceiveQueue (IoContext::Type type, uint32_t instance) |
|
KSyncReceiveQueue * | GetReceiveQueue (uint32_t seqno) |
|
KSyncBulkMsgContext * | LocateBulkContext (uint32_t seqno, IoContext::Type io_context_type, uint32_t work_queue_index) |
|
int | SendBulkMessage (KSyncBulkMsgContext *bulk_context, uint32_t seqno) |
|
bool | TryAddToBulk (KSyncBulkMsgContext *bulk_context, IoContext *ioc) |
|
void | OnEmptyQueue (bool done) |
|
int | tx_count () const |
|
const KSyncTxQueue * | send_queue () const |
|
const KSyncReceiveQueue * | get_receive_work_queue (uint16_t index) const |
|
KSyncReceiveQueue * | AllocQueue (KSyncBulkSandeshContext ctxt[], uint32_t task_id, uint32_t instance, const char *name) |
|
uint32_t | WaitTreeSize () const |
|
void | SetSeqno (uint32_t seq) |
|
void | SetMeasureQueueDelay (bool val) |
|
void | reset_use_wait_tree () |
|
void | set_process_data_inline () |
|
void | EnqueueRxProcessData (KSyncEntry *entry, KSyncEntry::KSyncEvent event) |
|
Definition at line 311 of file ksync_sock.h.
◆ HandlerCb
◆ KSyncReceiveQueue
◆ KSyncRxWorkQueue
◆ WaitTree
◆ WaitTreePair
◆ KSyncSock()
◆ ~KSyncSock()
KSyncSock::~KSyncSock |
( |
| ) |
|
|
virtual |
◆ AllocQueue()
◆ AllocSeqNo() [1/2]
◆ AllocSeqNo() [2/2]
◆ AsyncReceive()
virtual void KSyncSock::AsyncReceive |
( |
boost::asio::mutable_buffers_1 |
, |
|
|
HandlerCb |
|
|
) |
| |
|
privatepure virtual |
◆ AsyncSendTo()
◆ BlockingRecv()
bool KSyncSock::BlockingRecv |
( |
| ) |
|
◆ BlockingSend()
size_t KSyncSock::BlockingSend |
( |
char * |
msg, |
|
|
int |
msg_len |
|
) |
| |
◆ BulkDecoder()
◆ Decoder()
◆ DISALLOW_COPY_AND_ASSIGN()
KSyncSock::DISALLOW_COPY_AND_ASSIGN |
( |
KSyncSock |
| ) |
|
|
private |
◆ EnqueueRxProcessData()
◆ GenericSend()
void KSyncSock::GenericSend |
( |
IoContext * |
ctx | ) |
|
◆ Get() [1/2]
◆ Get() [2/2]
KSyncSock * KSyncSock::Get |
( |
int |
partition_id | ) |
|
|
static |
◆ get_receive_work_queue()
◆ GetAgentSandeshContext()
◆ GetBulkSandeshContext()
◆ GetNetlinkFamilyId()
static int KSyncSock::GetNetlinkFamilyId |
( |
| ) |
|
|
inlinestatic |
◆ GetPid()
static uint32_t KSyncSock::GetPid |
( |
| ) |
|
|
inlinestatic |
◆ GetReceiveQueue() [1/2]
◆ GetReceiveQueue() [2/2]
◆ GetSeqno()
virtual uint32_t KSyncSock::GetSeqno |
( |
char * |
data | ) |
|
|
privatepure virtual |
◆ Init()
void KSyncSock::Init |
( |
bool |
use_work_queue, |
|
|
const std::string & |
cpu_pin_policy |
|
) |
| |
|
staticprotected |
◆ IsMoreData()
virtual bool KSyncSock::IsMoreData |
( |
char * |
data | ) |
|
|
privatepure virtual |
◆ LocateBulkContext()
◆ OnEmptyQueue()
void KSyncSock::OnEmptyQueue |
( |
bool |
done | ) |
|
◆ ProcessDataInline()
void KSyncSock::ProcessDataInline |
( |
char * |
data | ) |
|
|
protected |
◆ ProcessKernelData()
◆ ProcessRxData()
◆ ReadHandler()
void KSyncSock::ReadHandler |
( |
const boost::system::error_code & |
error, |
|
|
size_t |
bytes_transferred |
|
) |
| |
|
private |
◆ Receive()
virtual void KSyncSock::Receive |
( |
boost::asio::mutable_buffers_1 |
| ) |
|
|
privatepure virtual |
◆ reset_use_wait_tree()
void KSyncSock::reset_use_wait_tree |
( |
| ) |
|
|
inline |
◆ send_queue()
◆ SendAsync()
◆ SendAsyncImpl()
bool KSyncSock::SendAsyncImpl |
( |
IoContext * |
ioc | ) |
|
|
private |
◆ SendAsyncStart()
bool KSyncSock::SendAsyncStart |
( |
| ) |
|
|
inlineprivate |
◆ SendBulkMessage()
◆ SendTo()
virtual std::size_t KSyncSock::SendTo |
( |
KSyncBufferList * |
iovec, |
|
|
uint32_t |
seq_no |
|
) |
| |
|
privatepure virtual |
◆ set_process_data_inline()
void KSyncSock::set_process_data_inline |
( |
| ) |
|
|
inline |
◆ SetAgentSandeshContext()
◆ SetMeasureQueueDelay()
void KSyncSock::SetMeasureQueueDelay |
( |
bool |
val | ) |
|
◆ SetNetlinkFamilyId()
void KSyncSock::SetNetlinkFamilyId |
( |
int |
id | ) |
|
|
static |
◆ SetSeqno()
void KSyncSock::SetSeqno |
( |
uint32_t |
seq | ) |
|
◆ SetSockTableEntry()
void KSyncSock::SetSockTableEntry |
( |
KSyncSock * |
sock | ) |
|
|
staticprotected |
◆ Shutdown()
void KSyncSock::Shutdown |
( |
| ) |
|
|
static |
◆ Start()
void KSyncSock::Start |
( |
bool |
read_inline | ) |
|
|
static |
◆ TryAddToBulk()
◆ tx_count()
int KSyncSock::tx_count |
( |
| ) |
const |
|
inline |
◆ Validate()
virtual bool KSyncSock::Validate |
( |
char * |
data | ) |
|
|
privatepure virtual |
◆ ValidateAndEnqueue()
◆ WaitTreeSize()
uint32_t KSyncSock::WaitTreeSize |
( |
| ) |
const |
◆ WriteHandler()
void KSyncSock::WriteHandler |
( |
const boost::system::error_code & |
error, |
|
|
size_t |
bytes_transferred |
|
) |
| |
|
private |
◆ KSyncTxQueue
◆ ack_count_
int KSyncSock::ack_count_ |
|
private |
◆ agent_sandesh_ctx_
◆ bmca_cons_
uint32_t KSyncSock::bmca_cons_ |
|
protected |
◆ bmca_prod_
uint32_t KSyncSock::bmca_prod_ |
|
protected |
◆ bulk_buf_size_
uint32_t KSyncSock::bulk_buf_size_ |
|
protected |
◆ bulk_mctx_arr_
◆ bulk_msg_context_
◆ bulk_msg_count_
uint32_t KSyncSock::bulk_msg_count_ |
|
protected |
◆ bulk_seq_no_
uint32_t KSyncSock::bulk_seq_no_ |
|
protected |
◆ err_count_
int KSyncSock::err_count_ |
|
private |
◆ kBufLen
const unsigned KSyncSock::kBufLen = (4*1024) |
|
static |
◆ kInvalidBulkSeqNo
const unsigned KSyncSock::kInvalidBulkSeqNo = 0xFFFFFFFF |
|
static |
◆ kMaxBulkMsgCount
const unsigned KSyncSock::kMaxBulkMsgCount = 16 |
|
static |
◆ kMsgGrowSize
const int KSyncSock::kMsgGrowSize = 16 |
|
static |
◆ kRxWorkQueueCount
const int KSyncSock::kRxWorkQueueCount = 2 |
|
static |
◆ ksync_bulk_sandesh_context_
◆ ksync_rx_queue
◆ max_bulk_buf_size_
uint32_t KSyncSock::max_bulk_buf_size_ |
|
protected |
◆ max_bulk_msg_count_
uint32_t KSyncSock::max_bulk_msg_count_ |
|
protected |
◆ mutex_
tbb::mutex KSyncSock::mutex_ |
|
protected |
◆ nl_client_
nl_client* KSyncSock::nl_client_ |
|
protected |
◆ pid_
◆ process_data_inline_
bool KSyncSock::process_data_inline_ |
|
private |
◆ read_inline_
bool KSyncSock::read_inline_ |
|
private |
◆ rx_buff_
char* KSyncSock::rx_buff_ |
|
private |
◆ rx_process_queue_
◆ send_queue_
◆ seqno_
tbb::atomic<uint32_t> KSyncSock::seqno_ |
|
private |
◆ shutdown_
tbb::atomic< bool > KSyncSock::shutdown_ |
|
staticprivate |
◆ sock_
std::unique_ptr< KSyncSock > KSyncSock::sock_ |
|
staticprivate |
◆ tx_count_
◆ use_wait_tree_
bool KSyncSock::use_wait_tree_ |
|
private |
◆ uve_bulk_sandesh_context_
◆ uve_rx_queue
◆ uve_seqno_
tbb::atomic<uint32_t> KSyncSock::uve_seqno_ |
|
private |
◆ vnsw_netlink_family_id_
int KSyncSock::vnsw_netlink_family_id_ |
|
staticprivate |
◆ wait_tree_
The documentation for this class was generated from the following files: