基于多核处理器的加密卡异步并行驱动设计
秦培斌;肖志辉;杨大川;杨洋;李希源
【期刊名称】《通信技术》 【年(卷),期】2014(000)007
【摘要】文中通过对 VxWorks 下多核编程的研究,根据 IPSec 层异步加解密调用的需求,设计了一种稳定高效的加密卡缓存和数据收发方案,满足了数据高速加解密的需求。加密卡内含6个加解密信道,6个加解密信道通过一个万兆以太通道与主机端相连。驱动程序接收来自 IPSec 层的加解密数据并进行缓存后,将报文通过万兆以太通道发送给加密卡上相应的加解密信道进行处理。加密卡处理完成后将加解密数据通过以太通道送回主机端,并返回加密卡驱动层,由加密卡驱动层的回调函数返回 IPSec。多核并行运行时,不同的核都可以进行异步加解密操作。测试结果表明,这种设计方案是一种高效的、具有良好兼容性的驱动实现方法。%With the study of VxWorks multi-core programming and according to the IPSec layer asynchronous encryption and decryption calls, a stable and efficient encryption card data caching and transceiver solutions is designed, which meets high-speed encryption and decryption needs. The encryption card contains six channels, connecting to the host through a Gigabit Ethernet channel. After receiving packets from the IPSec layer and making them into cache, the driver layer sends the packets to the corresponding channels in the encryption card via the Gigabit Ethernet channel. The packets are sent back to the host via the Gigabit Eth-ernet channel after the encryption