]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Prevent false warning when accessing MACs
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Thu, 25 Jun 2015 12:19:23 +0000 (15:19 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:00:39 +0000 (18:00 -0400)
commit42f130729f329dd3719e0465a927137b1b06a068
tree42ac1de675034b3f5199e4d8787069c86ec0d10e
parent19246fbda2e9e232ea582c819fb23c5f1f81053a
bnx2x: Prevent false warning when accessing MACs

Orabug: 22066196

Each time a flow finishes reads from the classification shadow
configuration in the driver, that flow would check for pending commands
and pass them to FW if possible.
In case there's already a completion pending command, I.e., a ramrod
that has been sent to the FW and is yet to be completed while said flow
tries to configure the pending command we would get a false error message
in logs [and panic if SOE was used for driver compilation] since the
command could not have been completed.

This prevents said print [and panic]; The pending command will be sent by
the time the completion of the current sent command would arrive.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9d18d270d7d160d8fa2f9d9af4545d17cbab91d8)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c