Module driverkit::net::csum[][src]

Expand description

Flags indicating checksum, segmentation and other offload work to be done, or already done, by hardware or lower layers. It is split into separate inbound and outbound flags.

Outbound flags that are set by upper protocol layers requesting lower layers, or ideally the hardware, to perform these offloading tasks. For outbound packets this field and its flags can be directly tested against ifnet if_hwassist. Note that the outbound and the inbound flags do not collide right now but they could be allowed to (as long as the flags are scrubbed appropriately when the direction of an mbuf changes). CSUM_BITS would also have to split into CSUM_BITS_TX and CSUM_BITS_RX.

CSUM_INNER_ is the same as CSUM_ but it applies to the inner frame. The CSUM_ENCAP_ bits identify the outer encapsulation.

Constants

CSUM_COALESCED

contains merged segments

CSUM_DATA_VALID
CSUM_DATA_VALID_IPV6
CSUM_DELAY_DATA
CSUM_DELAY_DATA_IPV6
CSUM_DELAY_IP

Only v4, no v6 IP hdr csum

CSUM_ENCAP_RSVD1
CSUM_ENCAP_VXLAN

VXLAN outer encapsulation

CSUM_FLAGS_RX
CSUM_FLAGS_TX
CSUM_INNER_IP
CSUM_INNER_IP6_TCP
CSUM_INNER_IP6_TSO
CSUM_INNER_IP6_UDP
CSUM_INNER_IP_TCP
CSUM_INNER_IP_TSO
CSUM_INNER_IP_UDP
CSUM_INNER_L3_CALC
CSUM_INNER_L3_VALID
CSUM_INNER_L4_CALC
CSUM_INNER_L4_VALID
CSUM_INNER_TSO
CSUM_IP

IP header checksum offload

CSUM_IP6_ISCSI

iSCSI checksum offload

CSUM_IP6_SCTP

SCTP checksum offload

CSUM_IP6_TCP

TCP checksum offload

CSUM_IP6_TSO

TCP segmentation offload

CSUM_IP6_UDP

UDP checksum offload

CSUM_IP_CHECKED
CSUM_IP_ISCSI

iSCSI checksum offload

CSUM_IP_SCTP

SCTP checksum offload

CSUM_IP_TCP

TCP checksum offload

CSUM_IP_TSO

TCP segmentation offload

CSUM_IP_UDP

UDP checksum offload

CSUM_IP_VALID
CSUM_L3_CALC

calculated layer 3 csum

CSUM_L3_VALID

checksum is correct

CSUM_L4_CALC

calculated layer 4 csum

CSUM_L4_VALID

checksum is correct

CSUM_L5_CALC

calculated layer 5 csum

CSUM_L5_VALID

checksum is correct

CSUM_PSEUDO_HDR
CSUM_SCTP
CSUM_SCTP_IPV6
CSUM_SCTP_VALID
CSUM_SND_TAG

Packet header has send tag

CSUM_TCP
CSUM_TCP_IPV6
CSUM_TSO
CSUM_UDP
CSUM_UDP_IPV6