Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

IxCryptoAccCodelet.h File Reference

This is the header file for the Crypto Access Component Codelet. More...

Go to the source code of this file.

Defines

#define INLINE
#define IX_CRYPTOACC_CODELET_CRYPTOACC_CFG
 Selects the interface's (to the NPE) to be initialized by the codelet. Use one of the values defined in IxCryptoAccCfg. IX_CRYPTO_ACC_CFG_CRYPTO_NPE_ACC_EN : Enable's access to the Crypto NPE.

#define IX_CRYPTOACC_CODELET_NPEC_IMAGE_ID
 The build ID for NPE C image, default is IX_NPEDL_NPEIMAGE_NPEC_CRYPTO_AES_CCM_ETH.

#define IX_CRYPTOACC_CODELET_NPEA_IMAGE_ID
 The build ID for NPE A image, default is IX_NPEDL_NPEIMAGE_NPEA_WEP.

#define PERFORMANCE_WINDOW_SIZE
 Number of crypto packets need to be sent in for performance benchmarking (sampling size), 1 unit represents 1000 of packets.

#define IX_CRYPTOACC_CODELET_CRYPTO_MBUF_POOL_SIZE
 Size of MBuf pool, ie number of buffers to circulate.

#define IX_CRYPTOACC_CODELET_BATCH_LEN
 Number of packets per sampling for performance benchmarking.

#define IX_CRYPTOACC_CODELET_QMR_DISPATCHER_PRIORITY
 Recommended priority of queue manager dispatch loop.

#define IX_CRYPTOACC_CODELET_XSCALE_TICK
 The XScale tick is 66 MHz.

#define IX_CRYPTOACC_CODELET_REGISTER_WAIT_TIME
 The codelet register wait time (in ms) in a for loop.

#define IX_CRYPTOACC_CODELET_PERFORM_WAIT_TIME
 The codelet perform wait time (in ms) in a for loop.

#define IX_CRYPTOACC_CODELET_MAX_TIME_WAIT
 Maximum time (in ms) to wait before exiting the program.

#define IX_CRYPTOACC_CODELET_MIN_CRYPTO_PKT_SIZE
 The minimum packet size.

#define IX_CRYPTOACC_CODELET_MAX_CRYPTO_PKT_SIZE
 The maximum packet size.

#define IX_CRYPTOACC_CODELET_QMGR_DISPATCHER_MODE
 QMgr Dispatcher Mode, whether in interrupt (TRUE) or poll (FALSE) mode.

#define IX_CRYPTOACC_CODELET_QMGR_DISPATCHER_MODE
 QMgr Dispatcher Mode, whether in interrupt (TRUE) or poll (FALSE) mode.


Functions

IX_STATUS ixCryptoAccCodeletMain (INT32 srvIndex, UINT32 packetLen)
 This is the entry point function to the codelet to choose the service for the codelet and packet length to be used. This is the main function of the codelet where crypto contexts registration and crypto perform services are done. Based on the selected operation and selected packet length, packets are sent to cryptoAcc for processing.


Detailed Description

This is the header file for the Crypto Access Component Codelet.

Date:
October-31-2002

Version:
Revision
1.19
-- Intel Copyright Notice --
Copyright 2002-2003 Intel Corporation All Rights Reserved.
The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors.
The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way except in accordance with the applicable license agreement .
No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel, except in accordance with the applicable license agreement.
Unless otherwise agreed by Intel in writing, you may not remove or alter this notice or any other notice embedded in Materials by Intel or Intel's suppliers or licensors in any way.
For further details, please see the file README.TXT distributed with this software.
-- End Intel Copyright Notice --

Definition in file IxCryptoAccCodelet.h.


Define Documentation

#define IX_CRYPTOACC_CODELET_QMGR_DISPATCHER_MODE
 

QMgr Dispatcher Mode, whether in interrupt (TRUE) or poll (FALSE) mode.

Note:
1. QMgr dispatcher can be run in both poll mode and interrupt mode in vxWorks platform. When QMgr dispatcher is running in interrupt mode, the display of packet rate for Ethernet software loopback on the windshell is very slow if the crypto packet length chosen is very small. This is due to the time taken by NPE to service crypto packet is very fast and QMgr callbacks with higher priority are triggered frequently and blocked the task of displaying.

2. In linux platform, QMgr Dispatcher is NOT advisible to run in poll mode. This is due to the task scheduling in poll mode is not fair enough between multiple threads that cause the performance rate to drop tremendously. Thus the performance rate displayed in Linux platform using poll mode is not accurate. Performance rate is more accurate when QMgr dispatcher is running in interrupt mode.

Definition at line 423 of file IxCryptoAccCodelet.h.

Automatically generated from sources. © Intel Corp. 2003