]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4129cc7502ecaf1e6ec30e04f7cfdea26d299ba
treeb0c80e1f44087668ba2e424914c8feac05203a3c
parentce4049203d2db304e6c3458f822615ccb45b6180
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