MCPcopy Create free account
hub / github.com/F-Stack/f-stack / virtio_negotiate_features

Function virtio_negotiate_features

dpdk/drivers/net/virtio/virtio.c:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "virtio_logs.h"
10
11uint64_t
12virtio_negotiate_features(struct virtio_hw *hw, uint64_t host_features)
13{
14 uint64_t features;
15
16 /*
17 * Limit negotiated features to what the driver, virtqueue, and
18 * host all support.
19 */
20 features = host_features & hw->guest_features;
21 VIRTIO_OPS(hw)->set_features(hw, features);
22
23 return features;
24}
25
26
27void

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected