mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -224,6 +224,7 @@ struct tcp_hdr {
|
|||
#define IP_HEADER_VERSION_6 (6)
|
||||
#define IP_PROTO_TCP (6)
|
||||
#define IP_PROTO_UDP (17)
|
||||
#define IP_PROTO_SCTP (132)
|
||||
#define IPTOS_ECN_MASK 0x03
|
||||
#define IPTOS_ECN(x) ((x) & IPTOS_ECN_MASK)
|
||||
#define IPTOS_ECN_CE 0x03
|
||||
|
@ -379,7 +380,8 @@ typedef struct eth_ip4_hdr_info_st {
|
|||
typedef enum EthL4HdrProto {
|
||||
ETH_L4_HDR_PROTO_INVALID,
|
||||
ETH_L4_HDR_PROTO_TCP,
|
||||
ETH_L4_HDR_PROTO_UDP
|
||||
ETH_L4_HDR_PROTO_UDP,
|
||||
ETH_L4_HDR_PROTO_SCTP
|
||||
} EthL4HdrProto;
|
||||
|
||||
typedef struct eth_l4_hdr_info_st {
|
||||
|
|
|
@ -30,5 +30,6 @@
|
|||
|
||||
|
||||
uint32_t crc32c(uint32_t crc, const uint8_t *data, unsigned int length);
|
||||
uint32_t iov_crc32c(uint32_t crc, const struct iovec *iov, size_t iov_cnt);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue