]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Revise MFW command locking
authorTomer Tayar <Tomer.Tayar@cavium.com>
Thu, 23 Mar 2017 13:50:15 +0000 (15:50 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 26 Jul 2017 03:46:48 +0000 (20:46 -0700)
commitffc2b98cd6cdf30e44a091d2c5322f0b47ea3c4c
tree1dadaecbb401072d46f54f1665323f8e6aad1bb0
parentba96beb280586ad89447df697b482ed929a18c6f
qed: Revise MFW command locking

Orabug: 2593305326439680

Interaction of driver -> management firmware is based
on a one-pending mailbox [per interface], and various
mailbox commands need to be synchronized.

Current scheme is messy, and there's a difficulty extending
it as it deals differently with various commands as well as
making assumption on the required behavior for load/unload
requests.

Drop the current scheme into a completion-list-based approach;
Each flow would try sending the command when possible,
allowing one flow to complete another flow's completion and
relieve the mailbox before sending its own command.

Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h