For RX: if corresponding QP is not supported, it will not validate the csum, 
but packets are still received normally. 
For TX: if corresponding QP is not supported for csum calculation and user 
application sets the IBV_SEND_IP_CSUM flag, it will return error.

-----Original Message-----
From: Christoph Lameter [mailto:c...@linux.com] 
Sent: Wednesday, September 16, 2015 12:07 PM
To: Bodong Wang
Cc: dledf...@redhat.com; linux-rdma@vger.kernel.org; Bodong Wang; Or Gerlitz; 
jguntho...@obsidianresearch.com; Moshe Lazer; Haggai Eran; Matan Barak
Subject: Re: [PATCH 1/3] IB/core: Add support of checksum capability reporting 
in ib verbs

On Wed, 16 Sep 2015, Bodong Wang wrote:

> A new filed csum_cap is added to both ib_query_device. It contains two 
> members:
> eth_csum_cap and ib_csum_cap, indicates checksum capability of 
> Ethernet and Infiniband link layer respectively for different QP types.
>
> Current checksum caps use the following enum members:
> - IB_CSUM_SUPPORT_UD: device supports validation/calculation of csum for UD 
> QP.
> - IB_CSUM_SUPPORT_RAW: device supports validation/calculation of csum for raw 
> QP.

A combination? Is it possible then to also support calculation without 
validation? Maybe we want to receive packets that do have invalid checksums.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to