On 2/3/2016 7:05 PM, Bodong Wang wrote:
RX checksum verification status is reported through wc_flag when polling CQ. When IBV_WC_IP_CSUM_OK is set, that means both IPv4 header checksum and TCP/UDP checksum are OK. TX checksum offload will be enabled for TCP/UDP over IPv4 if user sets send_flag IBV_SEND_IP_CSUM. A new field, qp_cap_cache, is added to mlx5_qp in order to 'cache' the csum capabilities to minimize perfromance hit on poll_one function. The device and port capabilities are cached inside mlx5_init_context. Change-Id: I4d26f43027c08e7142e77a977744e2abe08a6e58 Signed-off-by: Bodong Wang <bodong@xxxxxxxxxxxx> --- src/cq.c | 31 ++++++++++++++++++++++++++++--- src/mlx5.c | 12 ++++++++++++ src/mlx5.h | 16 ++++++++++++++++ src/qp.c | 10 ++++++++++ src/verbs.c | 16 ++++++++++++++++ src/wqe.h | 5 +++++ 6 files changed, 87 insertions(+), 3 deletions(-)
Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html