Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154623660
D54929.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
D54929.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -2059,8 +2059,16 @@
}
}
- m->m_pkthdr.flowid = rxq->vtnrx_id;
- M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE);
+ if (sc->vtnet_act_vq_pairs == 1) {
+ /*
+ * When RSS is not needed (one active rx queue), let the upper
+ * layer know and react.
+ */
+ M_HASHTYPE_CLEAR(m);
+ } else {
+ m->m_pkthdr.flowid = rxq->vtnrx_id;
+ M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE);
+ }
if (hdr->flags &
(VIRTIO_NET_HDR_F_NEEDS_CSUM | VIRTIO_NET_HDR_F_DATA_VALID)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 2:02 AM (15 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32429937
Default Alt Text
D54929.diff (629 B)
Attached To
Mode
D54929: vtnet: remove M_HASHTYPE when there is only one pair of rx/tx queue
Attached
Detach File
Event Timeline
Log In to Comment