Search International and National Patent Collections

1. (WO2017032178) CHECKSUM CALCULATION METHOD, NETWORK PROCESSOR AND COMPUTER STORAGE MEDIUM

Pub. No.:    WO/2017/032178    International Application No.:    PCT/CN2016/089700
Publication Date: Fri Mar 03 00:59:59 CET 2017 International Filing Date: Tue Jul 12 01:59:59 CEST 2016
IPC: G06F 9/48
Applicants: SANECHIPS TECHNOLOGY CO., LTD.
深圳市中兴微电子技术有限公司
Inventors: HU, Da
胡达
Title: CHECKSUM CALCULATION METHOD, NETWORK PROCESSOR AND COMPUTER STORAGE MEDIUM
Abstract:
A checksum calculation method, a network processor and a computer storage medium. The method comprises: a multi-thread micro-engine (11) acquires, based on a received user instruction and a descriptor field in a data storage unit (12), a calculation parameter corresponding to a current thread, and sends the calculation parameter to a calculation unit (14) (S201); the calculation unit (14) performs, based on source data read from the data storage unit (12) and the calculation parameter, a checksum calculation, and at the same time schedules the current thread to enter a dormant state (S202); when the calculation is completed, the calculation unit (14) writes the checksum obtained from the calculation into a checksum register of the current thread, and instructs a thread schedule module (15) to schedule the current thread to enter a wakeup state (S203); and when the thread schedule module (15) schedules the current thread to enter a working state from the wakeup state, the multi-thread micro-engine (11) writes the checksum obtained from the calculation into a position corresponding to the current thread in the data storage unit (12) (S204).