virtio-net offloads reconfiguration
Virtio-net driver currently negotiates network offloads on startup via features mechanism and have no ability to disable and re-enable offloads later.
This patch introduced a new control command that allows to configure device network offloads state dynamically. The patch also introduces a new feature flag VIRTIO_NET_F_CTRL_GUEST_OFFLOADS.
VIRTIO_NET_F_CTRL_GUEST_OFFLOADS (2) Control channel offloads reconfiguration support.
control virtqueue “Offloads State Configuration”.
“offloads”是名词,按照名词去阅读spec。
“negotiate”指的是在driver_feature中正确配置好了feature bits。
VIRTIO_NET_F_CTRL_GUEST_OFFLOADS支持动态地更改offloads的状态(enable/disbale)配置。
1 | // feature bits |
1 | /* |
参考资料: