s390/qeth: make cmd/reply matching more flexible
authorJulian Wiedmann <jwi@linux.ibm.com>
Sat, 25 Jan 2020 15:53:02 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jan 2020 14:20:32 +0000 (15:20 +0100)
commit7f92316c5393b583c5217bb2cfc789d6820ec393
treeb0c80e1f44087668ba2e424914c8feac05203a3c
parent91003f354e6bbe8d225b4d54127d80c694d201d9
s390/qeth: make cmd/reply matching more flexible

When data is received on the READ channel, the matching logic for cmds
that are waiting for a reply is currently hard-coded into the channel's
main IO callback.
Move this into a per-cmd callback, so that we can apply custom matching
logic for each individual cmd.

This also allows us to remove the coarse-grained check for unexpected
non-IPA replies, since they will no longer match against _all_ pending
cmds.

Note that IDX cmds use _no_ matcher, since their reply is synchronously
received as part of the cmd's IO.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c