Commit 8a7c321
committed
vdpa/mlx5: fix up endian-ness for mtu
VDPA mlx5 accesses config space as native endian - this is
wrong since it's a modern device and actually uses LE.
It only supports modern guests so we could punt and
just force LE, but let's use the full virtio APIs since people
tend to copy/paste code, and this is not data path anyway.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>1 parent cf16fe9 commit 8a7c321
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
1506 | 1507 | | |
1507 | 1508 | | |
1508 | 1509 | | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1509 | 1517 | | |
1510 | 1518 | | |
1511 | 1519 | | |
| |||
1519 | 1527 | | |
1520 | 1528 | | |
1521 | 1529 | | |
| 1530 | + | |
| 1531 | + | |
1522 | 1532 | | |
1523 | 1533 | | |
1524 | 1534 | | |
| |||
1925 | 1935 | | |
1926 | 1936 | | |
1927 | 1937 | | |
1928 | | - | |
| 1938 | + | |
1929 | 1939 | | |
1930 | 1940 | | |
1931 | 1941 | | |
| |||
0 commit comments