qlcnic: Fix QLogic application/driver interface for virtual NIC configuration
authorJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Mon, 14 Apr 2014 14:02:22 +0000 (10:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 17:43:52 +0000 (13:43 -0400)
commit4f0302277718810494f8c618f28d1edb33af859a
tree26725f007f35a69379f1d612d7872e0dc9f6d2aa
parenta78b6da89f52d03997619f5a78a5325bec865977
qlcnic: Fix QLogic application/driver interface for virtual NIC configuration

o Application expect vNIC number as the array index but driver interface
return configuration in array index form.

o Pack the vNIC information array in the buffer such that application can
access it using vNIC number as the array index.

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c