mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
igb: Implement Rx SCTP CSO
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
abc9a29d6b
commit
907209e311
8 changed files with 93 additions and 17 deletions
|
@ -113,3 +113,11 @@ uint32_t crc32c(uint32_t crc, const uint8_t *data, unsigned int length)
|
|||
return crc^0xffffffff;
|
||||
}
|
||||
|
||||
uint32_t iov_crc32c(uint32_t crc, const struct iovec *iov, size_t iov_cnt)
|
||||
{
|
||||
while (iov_cnt--) {
|
||||
crc = crc32c(crc, iov->iov_base, iov->iov_len) ^ 0xffffffff;
|
||||
iov++;
|
||||
}
|
||||
return crc ^ 0xffffffff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue