Commit 3474c42
committed
rpmsg: rpmsg_virtio: fix API to get rx buf
New virtio feature allows to configure rpmsg single buffer size via
virtio device config space. Hence, rx buffer size can be provided by
vdev device config space as well. If failed to calculate rx buf size
using vq descriptor, and rx buf size is available in the config space,
then use it from there.
Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>1 parent 5ac8096 commit 3474c42
2 files changed
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
743 | 744 | | |
744 | 745 | | |
745 | 746 | | |
746 | | - | |
| 747 | + | |
| 748 | + | |
747 | 749 | | |
748 | 750 | | |
749 | 751 | | |
| |||
763 | 765 | | |
764 | 766 | | |
765 | 767 | | |
| 768 | + | |
| 769 | + | |
766 | 770 | | |
767 | | - | |
768 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
769 | 784 | | |
770 | 785 | | |
771 | 786 | | |
| |||
831 | 846 | | |
832 | 847 | | |
833 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
834 | 856 | | |
835 | 857 | | |
836 | 858 | | |
| |||
0 commit comments