]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed*: LL2 callback operations
authorMichal Kalderon <Michal.Kalderon@cavium.com>
Fri, 9 Jun 2017 14:13:22 +0000 (17:13 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:32 +0000 (22:32 -0700)
commit3a5f9e188883fd21fd50a6ae7693a378b24bb701
treec963e71f7ad371cd5380cc00c3b1c4d1fc7f9530
parentd951ab1a6109a7c2b95574a4c1b7e957db85ad75
qed*: LL2 callback operations

Orabug: 26783820

LL2 today is interrupt driven - when tx/rx completion arrives [or any
other indication], qed needs to operate on the connection and pass
the information to the protocol-driver [or internal qed consumer].
Since we have several flavors of ll2 employeed by the driver,
each handler needs to do an if-else to determine the right functionality
to use based on the connection type.

In order to make things more scalable [given that we're going to add
additional types of ll2 flavors] move the infrastrucutre into using
a callback-based approach - the callbacks would be provided as part
of the connection's initialization parameters.

Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 0518c12f1f79dc2f2020836974c577404e42ae89 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_ll2.c
drivers/net/ethernet/qlogic/qed/qed_ll2.h
drivers/net/ethernet/qlogic/qed/qed_roce.c
drivers/net/ethernet/qlogic/qed/qed_roce.h
include/linux/qed/qed_ll2_if.h
include/linux/qed/qed_roce_if.h