summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorSuresh Reddy2015-12-30 07:29:03 +0100
committerDavid S. Miller2015-12-30 22:33:35 +0100
commit980df249bdab2adc8522d2178bfffceba79c5e6b (patch)
treed67f2d9facfbe677624d7a4255fde3e70b91d7ef /block
parentbe2net: remove unused error variables (diff)
downloadkernel-qcow2-linux-980df249bdab2adc8522d2178bfffceba79c5e6b.tar.gz
kernel-qcow2-linux-980df249bdab2adc8522d2178bfffceba79c5e6b.tar.xz
kernel-qcow2-linux-980df249bdab2adc8522d2178bfffceba79c5e6b.zip
be2net: fix port-res desc query of GET_PROFILE_CONFIG FW cmd
Commit 72ef3a88fa8e ("be2net: set pci_func_num while issuing GET_PROFILE_CONFIG cmd") passed a specific pf_num while issuing a GET_PROFILE_CONFIG cmd as FW returns descriptors for all functions when pf_num is zero. But, when pf_num is set to a non-zero value, FW does not return the Port resource descriptor. This patch fixes this by setting pf_num to 0 while issuing the query cmd and adds code to pick the correct NIC resource descriptor from the list of descriptors returned by FW. Fixes: 72ef3a88fa8e ("be2net: set pci_func_num while issuing GET_PROFILE_CONFIG cmd") Signed-off-by: Suresh Reddy <suresh.reddy@avagotech.com> Signed-off-by: Sathya Perla <sathya.perla@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions