enic: fix Rx descriptor limit
authorNelson Escobar <neescoba@cisco.com>
Fri, 18 Mar 2016 18:33:34 +0000 (11:33 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:01:37 +0000 (19:01 +0100)
commit65ca78fdf9a684743bfca278cf1fcfea4603931d
tree2cfb4fd7787e224d4eb9e0b3ffd40aa34a31ed66
parent57524648749fb7dc1daf3af3213dab472ee432de
enic: fix Rx descriptor limit

On initialization, the rq descriptor count was set to the limit
of the vic.  When the requested number of rx descriptors was
less than this count, enic_alloc_rq() was incorrectly setting
the count to the lower value.  This results in later calls to
enic_alloc_rq() incorrectly using the lower value as the adapter
limit.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c