Commit fb00064
committed
virtio-msg: fix-up response matching as discussed Oct 23
Simplify the response matching as discussed in the PR and in the Oct 23
meeting.
* Bus messages have a dev_num and it is normally 0 so we don't need to
say that matching dev_num if only for transport messages.
* Drop msg_id from matching. Altough the msg_id would normally match
there may be some cases where it would not. The token field should
be unique for a given dev_num.
* This simplifys the description of the matching tuple as well
Signed-off-by: Bill Mills <bill.mills@linaro.org>1 parent ae1a63c commit fb00064
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
375 | | - | |
376 | | - | |
| 374 | + | |
377 | 375 | | |
378 | 376 | | |
379 | 377 | | |
380 | | - | |
381 | | - | |
382 | 378 | | |
383 | 379 | | |
384 | 380 | | |
| |||
0 commit comments