Re: [PATCH net 1/2] hinic3: Fix skb_checksum_help() failure handling in Tx path

Fan Gong <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
> From: Fan Gong <[email protected]>
>
> hinic3_tx_csum() falls back to skb_checksum_help() for unsupported VXLAN
> packets, but ignores its return value. On failure, this can cause packets
> with uncalculated or corrupted checksums to be transmitted.
>
> Fix this by returning the error status of skb_checksum_help() and marking
> the offload as HINIC3_TX_OFFLOAD_INVALID in hinic3_tx_offload() so that the
> packet is properly dropped.
>
> Fixes: 17fcb3dc12bb ("hinic3: module initialization and tx/rx logic")

Oops. This patch was mistakenly sent. We will send a new patch after 24 hours.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.