summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/silan
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@emulex.com>2015-10-12 03:47:20 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-13 04:32:44 -0700
commit72ef3a88fa8e225301aaea296ffc95407de21986 (patch)
tree910c1b04e5576344be97dee2d27a8aa10a118cd2 /drivers/net/ethernet/silan
parent8227e9901ded28d071f20313238e91e71d6bfdce (diff)
downloadlinux-stable-72ef3a88fa8e225301aaea296ffc95407de21986.tar.gz
linux-stable-72ef3a88fa8e225301aaea296ffc95407de21986.tar.bz2
linux-stable-72ef3a88fa8e225301aaea296ffc95407de21986.zip
be2net: set pci_func_num while issuing GET_PROFILE_CONFIG cmd
The FW requires the pf_num field in the cmd hdr to be set for it to return the specific function's descriptors in the GET_PROFILE_CONFIG cmd. If not set, the FW returns the descriptors of all the functions on the device. If the first descriptor is not what is being queried for, the driver will read wrong data. This patch fixes this issue by using the GET_CNTL_ATTRIB cmd to query the real pci_func_num of a function and then uses it in the GET_PROFILE_CONFIG cmd. Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/silan')
0 files changed, 0 insertions, 0 deletions