qed: configure the RoCE max message size
authorRam Amrani <Ram.Amrani@cavium.com>
Sun, 30 Apr 2017 08:49:05 +0000 (11:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 15:42:13 +0000 (11:42 -0400)
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c

index b8c811f9520541318e75dd2627a2afbd68ccf7ae..5d4061577767c4d006f0dc1ef3d3ee4bff73ce0e 100644 (file)
@@ -750,6 +750,8 @@ static struct qed_rdma_port *qed_rdma_query_port(void *rdma_cxt)
 
        p_port->link_speed = p_hwfn->mcp_info->link_output.speed;
 
+       p_port->max_msg_size = RDMA_MAX_DATA_SIZE_IN_WQE;
+
        return p_port;
 }