Commit 1b3ce95
vdpa/mlx5: Allow creation/deletion of any given mr struct
This patch adapts the mr creation/deletion code to be able to work with
any given mr struct pointer. All the APIs are adapted to take an extra
parameter for the mr.
mlx5_vdpa_create/delete_mr doesn't need a ASID parameter anymore. The
check is done in the caller instead (mlx5_set_map).
This change is needed for a followup patch which will introduce an
additional mr for the vq descriptor data.
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20231018171456.1624030-12-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Lei Yang <leiyang@redhat.com>1 parent 07a2da4 commit 1b3ce95
3 files changed
Lines changed: 36 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | | - | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| |||
354 | 357 | | |
355 | 358 | | |
356 | 359 | | |
357 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
358 | 363 | | |
359 | | - | |
360 | 364 | | |
361 | 365 | | |
362 | 366 | | |
| |||
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
387 | | - | |
| 391 | + | |
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| |||
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
396 | | - | |
| 400 | + | |
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
| |||
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
492 | | - | |
| 496 | + | |
493 | 497 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
| |||
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
510 | | - | |
| 509 | + | |
| 510 | + | |
511 | 511 | | |
512 | | - | |
513 | | - | |
514 | 512 | | |
515 | 513 | | |
516 | | - | |
| 514 | + | |
517 | 515 | | |
518 | 516 | | |
519 | 517 | | |
520 | 518 | | |
521 | 519 | | |
522 | 520 | | |
523 | | - | |
| 521 | + | |
524 | 522 | | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
528 | | - | |
529 | | - | |
| 526 | + | |
| 527 | + | |
530 | 528 | | |
531 | | - | |
532 | 529 | | |
533 | 530 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 531 | | |
538 | 532 | | |
539 | 533 | | |
540 | 534 | | |
541 | | - | |
| 535 | + | |
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
| |||
550 | 544 | | |
551 | 545 | | |
552 | 546 | | |
553 | | - | |
554 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
555 | 550 | | |
556 | 551 | | |
557 | 552 | | |
558 | 553 | | |
559 | | - | |
| 554 | + | |
560 | 555 | | |
561 | 556 | | |
562 | 557 | | |
| |||
574 | 569 | | |
575 | 570 | | |
576 | 571 | | |
577 | | - | |
| 572 | + | |
578 | 573 | | |
579 | 574 | | |
580 | 575 | | |
| |||
603 | 598 | | |
604 | 599 | | |
605 | 600 | | |
606 | | - | |
| 601 | + | |
607 | 602 | | |
608 | 603 | | |
609 | 604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | | - | |
2688 | | - | |
| 2687 | + | |
| 2688 | + | |
2689 | 2689 | | |
2690 | 2690 | | |
2691 | 2691 | | |
| |||
2700 | 2700 | | |
2701 | 2701 | | |
2702 | 2702 | | |
2703 | | - | |
| 2703 | + | |
2704 | 2704 | | |
2705 | 2705 | | |
2706 | 2706 | | |
| |||
2922 | 2922 | | |
2923 | 2923 | | |
2924 | 2924 | | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
2925 | 2928 | | |
2926 | 2929 | | |
2927 | 2930 | | |
| |||
2934 | 2937 | | |
2935 | 2938 | | |
2936 | 2939 | | |
| 2940 | + | |
2937 | 2941 | | |
2938 | 2942 | | |
2939 | 2943 | | |
| |||
0 commit comments