Skip to content
Snippets Groups Projects
Commit f5746335 authored by Bin Meng's avatar Bin Meng Committed by Jason Wang
Browse files

net: checksum: Introduce fine control over checksum type


At present net_checksum_calculate() blindly calculates all types of
checksums (IP, TCP, UDP). Some NICs may have a per type setting in
their BDs to control what checksum should be offloaded. To support
such hardware behavior, introduce a 'csum_flag' parameter to the
net_checksum_calculate() API to allow fine control over what type
checksum is calculated.

Existing users of this API are updated accordingly.

Signed-off-by: default avatarBin Meng <bin.meng@windriver.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
parent d97f1159
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment