<div class="zcontentRow"><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">><span style="font-family: Arial, Helvetica, "Microsoft Yahei", sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);">This table should be const, and is the same CRC32 as implemented alread</span><br style="box-sizing: border-box; outline: 0px; font-family: Arial, Helvetica, "Microsoft Yahei", sans-serif; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);"><span style="font-family: Arial, Helvetica, "Microsoft Yahei", sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);">> in lib/hash/rte_crc ?</span></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">Hi Stepen,</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><span style="color: rgb(19, 22, 26); font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">The table and CRC32 as implemented already in lib/hash/rte_crc are different.</span><br style="padding: 0px; margin: 0px; box-sizing: border-box; font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Helvetica, Arial, sans-serif; border-spacing: 0px; color: rgb(19, 22, 26); white-space: normal; background-color: rgb(255, 255, 255);"><span style="color: rgb(19, 22, 26); font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">The table is calculated by build_crc8_table in app/test/test_atomic.c</span></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">Thanks</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><div class="zMailSign" unonamech="李晗晓10332965" unonameen="Li Hanxiao10332965"><p class="zMailSignTitle" unonamech="李晗晓10332965" unonameen="Li Hanxiao10332965" style="display: none;"><label class="sign_nameUno"></label><span class="sign_arrow"></span></p><div class="zMailSignContent"><p style="margin:0;line-height:20px;"><span class="signedit" id="sign_name" style="font-family: 微软雅黑,Microsoft YaHei;color: #008ed3;font-size: 14px">李晗晓</span></p><p style="margin:0;line-height:20px;"><span class="signedit" id="sign_position" style="font-family: 微软雅黑,Microsoft YaHei;font-size: 14px">IT开发工程师</span></p><p style="margin:0;line-height:20px;"><span style="background-color: rgb(255, 255, 255); font-family: 微软雅黑, "Microsoft YaHei"; font-size: 14px;">RCH八部/无线及算力研究院/无线及算力产品经营部</span></p><p style="margin:0;line-height:20px;"><span style="background-color: rgb(255, 255, 255); font-family: 微软雅黑, "Microsoft YaHei"; font-size: 14px;">RCH Dept. VIII/Wireless and Computing Product R&D Institute/Wireless and Computing Product Operation Division</span><span class="signedit" style="font-family: tahoma, verdana, "sans-serif", 宋体; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma, verdana, "sans-serif", 宋体; font-size: 18px; background-color: rgb(255, 255, 255);"></span></span></p><p style="margin:0;line-height:20px;"><strong><span style="font-family: Arial;font-size: 14px"> </span></strong></p><p style="margin:0;line-height:20px;"><span style="font-family: 微软雅黑,Microsoft YaHei;color: #008ed3;font-size: 14px">中兴通讯股份有限公司</span></p><p style="margin:0;line-height:20px;"><span class="signedit" id="sign_addr" style="font-family: 微软雅黑,Microsoft YaHei;font-size: 14px"><span style="box-sizing: border-box; outline: 0px; font-family: 微软雅黑; font-size: 18px; line-height: 20px; background-color: rgb(255, 255, 255);">天津市空港经济区东七道2号中兴产业基地8#楼</span><span style="font-family: 微软雅黑; font-size: 18px; background-color: rgb(255, 255, 255);">, 邮编: </span><span style="box-sizing: border-box; outline: 0px; font-family: 微软雅黑; font-size: 18px; line-height: 20px; background-color: rgb(255, 255, 255);">300300</span></span></p><p style="margin:0;line-height:20px;"><span style="font-family: Arial;color: #008ed3;font-size: 14px">T: </span><span class="signedit" id="sign_fix_phone" style="font-family: Arial;font-size: 14px">+86 15531662716  </span>    </p><p style="margin:0;line-height:20px;"><span style="font-family: Arial;color: #008ed3;font-size: 14px">E: </span><span class="signedit" id="sign_email" style="font-family: Arial;font-size: 14px"><a href="mailto:li.hanxiao@zte.com.cn" target="_blank">li.hanxiao@zte.com.cn</a></span></p><p style="margin:0;line-height:20px;"><a href="http://zmail.zte.com.cn/" target="_blank"><span style="font-family: Arial;font-size: 14px">www.zte.com.cn</span></a></p></div></div><div class="zhistoryRow" style="display:block"><div class="zhistoryDes" style="width: 100%; height: 28px; line-height: 28px; background-color: #E0E5E9; color: #1388FF; text-align: center;" language-data="HistoryOrgTxt">Original</div><div id="zwriteHistoryContainer"><div class="control-group zhistoryPanel"><div class="zhistoryHeader" style="padding: 8px; background-color: #F5F6F8;"><div><strong language-data="HistorySenderTxt">From: </strong><span class="zreadUserName">StephenHemminger <stephen@networkplumber.org></span></div><div><strong language-data="HistoryTOTxt">To: </strong><span class="zreadUserName" style="display: inline;">李晗晓10332965;</span></div><div><strong language-data="HistoryCCTxt">Cc: </strong><span class="zreadUserName" style="display: inline;">dev@dpdk.org <dev@dpdk.org>;</span></div><div><strong language-data="HistoryDateTxt">Date: </strong><span class="">2024年08月08日 23:22</span></div><div><strong language-data="HistorySubjectTxt">Subject: </strong><span class="zreadTitle"><strong>Re: [PATCH 1/4] [v1,1/4] zsda: Introduce zsda device drivers</strong></span></div></div><div class="zhistoryContent">On Thu,  8 Aug 2024 16:50:11 +0800<br>Hanxiao Li <li.hanxiao@zte.com.cn> wrote:<br> <br>> diff --git a/drivers/common/zsda/zsda_common.c b/drivers/common/zsda/zsda_common.c<br>> new file mode 100644<br>> index 0000000000..8f0849c660<br>> --- /dev/null<br>> +++ b/drivers/common/zsda/zsda_common.c<br>> @@ -0,0 +1,166 @@<br>> +/* SPDX-License-Identifier: BSD-3-Clause<br>> + * Copyright(c) 2024 ZTE Corporation<br>> + */<br>> +<br>> +#include "zsda_common.h" <br>> +#include "zsda_logs.h" <br>> +<br>> +#include "bus_pci_driver.h" <br>> +<br>> +#define MAGIC_SEND 0xab<br>> +#define MAGIC_RECV 0xcd<br>> +#define ADMIN_VER 1<br>> +<br>> +static uint8_t crc8_table[256] = {<br>> +    0x00, 0x41, 0x13, 0x52, 0x26, 0x67, 0x35, 0x74, 0x4c, 0x0d, 0x5f, 0x1e,<br>> +    0x6a, 0x2b, 0x79, 0x38, 0x09, 0x48, 0x1a, 0x5b, 0x2f, 0x6e, 0x3c, 0x7d,<br>> +    0x45, 0x04, 0x56, 0x17, 0x63, 0x22, 0x70, 0x31, 0x12, 0x53, 0x01, 0x40,<br>> +    0x34, 0x75, 0x27, 0x66, 0x5e, 0x1f, 0x4d, 0x0c, 0x78, 0x39, 0x6b, 0x2a,<br>> +    0x1b, 0x5a, 0x08, 0x49, 0x3d, 0x7c, 0x2e, 0x6f, 0x57, 0x16, 0x44, 0x05,<br>> +    0x71, 0x30, 0x62, 0x23, 0x24, 0x65, 0x37, 0x76, 0x02, 0x43, 0x11, 0x50,<br>> +    0x68, 0x29, 0x7b, 0x3a, 0x4e, 0x0f, 0x5d, 0x1c, 0x2d, 0x6c, 0x3e, 0x7f,<br>> +    0x0b, 0x4a, 0x18, 0x59, 0x61, 0x20, 0x72, 0x33, 0x47, 0x06, 0x54, 0x15,<br>> +    0x36, 0x77, 0x25, 0x64, 0x10, 0x51, 0x03, 0x42, 0x7a, 0x3b, 0x69, 0x28,<br>> +    0x5c, 0x1d, 0x4f, 0x0e, 0x3f, 0x7e, 0x2c, 0x6d, 0x19, 0x58, 0x0a, 0x4b,<br>> +    0x73, 0x32, 0x60, 0x21, 0x55, 0x14, 0x46, 0x07, 0x48, 0x09, 0x5b, 0x1a,<br>> +    0x6e, 0x2f, 0x7d, 0x3c, 0x04, 0x45, 0x17, 0x56, 0x22, 0x63, 0x31, 0x70,<br>> +    0x41, 0x00, 0x52, 0x13, 0x67, 0x26, 0x74, 0x35, 0x0d, 0x4c, 0x1e, 0x5f,<br>> +    0x2b, 0x6a, 0x38, 0x79, 0x5a, 0x1b, 0x49, 0x08, 0x7c, 0x3d, 0x6f, 0x2e,<br>> +    0x16, 0x57, 0x05, 0x44, 0x30, 0x71, 0x23, 0x62, 0x53, 0x12, 0x40, 0x01,<br>> +    0x75, 0x34, 0x66, 0x27, 0x1f, 0x5e, 0x0c, 0x4d, 0x39, 0x78, 0x2a, 0x6b,<br>> +    0x6c, 0x2d, 0x7f, 0x3e, 0x4a, 0x0b, 0x59, 0x18, 0x20, 0x61, 0x33, 0x72,<br>> +    0x06, 0x47, 0x15, 0x54, 0x65, 0x24, 0x76, 0x37, 0x43, 0x02, 0x50, 0x11,<br>> +    0x29, 0x68, 0x3a, 0x7b, 0x0f, 0x4e, 0x1c, 0x5d, 0x7e, 0x3f, 0x6d, 0x2c,<br>> +    0x58, 0x19, 0x4b, 0x0a, 0x32, 0x73, 0x21, 0x60, 0x14, 0x55, 0x07, 0x46,<br>> +    0x77, 0x36, 0x64, 0x25, 0x51, 0x10, 0x42, 0x03, 0x3b, 0x7a, 0x28, 0x69,<br>> +    0x1d, 0x5c, 0x0e, 0x4f};<br>> +<br> <br>This table should be const, and is the same CRC32 as implemented alread<br>in lib/hash/rte_crc ?</div></div></div></div><p><br></p></div>