• Y
    virtio-net: reference implementation of hash report · e22f0603
    Yuri Benditovich 提交于
    Suggest VIRTIO_NET_F_HASH_REPORT if specified in device
    parameters.
    If the VIRTIO_NET_F_HASH_REPORT is set,
    the device extends configuration space. If the feature
    is negotiated, the packet layout is extended to
    accomodate the hash information. In this case deliver
    packet's hash value and report type in virtio header
    extension.
    Use for configuration the same procedure as already
    used for RSS. We add two fields in rss_data that
    controls what the device does with the calculated hash
    if rss_data.enabled is set. If field 'populate' is set
    the hash is set in the packet, if field 'redirect' is
    set the hash is used to decide the queue to place the
    packet to.
    Signed-off-by: NYuri Benditovich <yuri.benditovich@daynix.com>
    Signed-off-by: NJason Wang <jasowang@redhat.com>
    e22f0603
virtio-net.c 111.7 KB