Re: [RDMA PATCH 01/16] i40iw: Fix overflow of region length

Leon Romanovsky
2016-04-11T09:23:24Z

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

On Thu, Apr 07, 2016 at 11:30:49AM -0500, Mustafa Ismail wrote:
> Change region_length to u64 as a region can be > 4GB.

I suppose that you will have a casting warning while setting u64 variable to u32 variable.
$grep -r pbl_depth drivers/infiniband/hw/i40iw/*
drivers/infiniband/hw/i40iw/i40iw_verbs.c: u32 pbl_depth = 0;
drivers/infiniband/hw/i40iw/i40iw_verbs.c: pbl_depth = region_length >> 12;

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]