Commit b155d93
vsock: use the len from the header for the data size
Even though the driver is allowed to set a size for the
payload that is > than the size from the header, the size
of the data should be the `len` header field. Updated the
code accordingly on the TX path (where the buffers are filled
by the driver). On RX path we can't use the `len` field
because it is = 0 when parsing the chain.
Signed-off-by: Laura Loghin <lauralg@amazon.com>1 parent bb0f847 commit b155d93
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
| 811 | + | |
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| |||
0 commit comments