]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: Provide an alternate way to read pf_num for BEx chips
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Sun, 9 Oct 2016 04:28:49 +0000 (09:58 +0530)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:05:36 +0000 (20:05 -0500)
commitea9384f31369db7f142f2b15f75a02c998062416
tree33100cfe5578c68e9c3eaf3f5dba9a18561e58aa
parent60280b3c46d527d63f66d42c1ae1b273ebc94a1f
be2net: Provide an alternate way to read pf_num for BEx chips

Orabug: 25570957

The driver gets the pf_num for Skyhawk and Lancer using
GET_FUNC_CONFIG FW command. But since that command is not
supported in BEx, we need to get it from some other command.
Otherwise TPE recovery would fail since all NIC PFs would
end up with a func num of 0. There's a pci function number
field in the response  of GET_CNTL_ATTRIBUTES command that
can be read to get the same info for BEx adapters.

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 6ee080bb09889dc0195a9c659288d17999237fb6)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h