File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,18 @@ static bool vhost_vdpa_has_ufo(NetClientState *nc)
262
262
263
263
}
264
264
265
+ /*
266
+ * FIXME: vhost_vdpa doesn't have an API to "set h/w endianness". But it's
267
+ * reasonable to assume that h/w is LE by default, because LE is what
268
+ * virtio 1.0 and later ask for. So, this function just says "yes, the h/w is
269
+ * LE". Otherwise, on a BE machine, higher-level code would mistakely think
270
+ * the h/w is BE and can't support VDPA for a virtio 1.0 client.
271
+ */
272
+ static int vhost_vdpa_set_vnet_le (NetClientState * nc , bool enable )
273
+ {
274
+ return 0 ;
275
+ }
276
+
265
277
static bool vhost_vdpa_check_peer_type (NetClientState * nc , ObjectClass * oc ,
266
278
Error * * errp )
267
279
{
@@ -429,6 +441,7 @@ static NetClientInfo net_vhost_vdpa_info = {
429
441
.cleanup = vhost_vdpa_cleanup ,
430
442
.has_vnet_hdr = vhost_vdpa_has_vnet_hdr ,
431
443
.has_ufo = vhost_vdpa_has_ufo ,
444
+ .set_vnet_le = vhost_vdpa_set_vnet_le ,
432
445
.check_peer_type = vhost_vdpa_check_peer_type ,
433
446
.set_steering_ebpf = vhost_vdpa_set_steering_ebpf ,
434
447
};
You can’t perform that action at this time.
0 commit comments