| 6a113992 | 06-Mar-2017 |
Shrikrishna Khare <[email protected]> |
net/vmxnet3: add cmd to register memory region
In vmxnet3 version 3, the emulation added support for the vmxnet3 driver to communicate information about the memory regions the driver will use for rx
net/vmxnet3: add cmd to register memory region
In vmxnet3 version 3, the emulation added support for the vmxnet3 driver to communicate information about the memory regions the driver will use for rx/tx buffers. The driver can also indicate which rx/tx queue the memory region is applicable for. If this information is communicated to the emulation, the emulation will always keep these memory regions mapped, thereby avoiding the mapping/unmapping overhead for every packet.
Signed-off-by: Shrikrishna Khare <[email protected]> Signed-off-by: Guolin Yang <[email protected]> Acked-by: Yong Wang <[email protected]> Acked-by: Jin Heo <[email protected]>
show more ...
|
| c4be1a65 | 06-Mar-2017 |
Shrikrishna Khare <[email protected]> |
net/vmxnet3: support receive data ring
vmxnet3 driver preallocates buffers for receiving packets and posts the buffers to the emulation. In order to deliver a received packet to the guest, the emula
net/vmxnet3: support receive data ring
vmxnet3 driver preallocates buffers for receiving packets and posts the buffers to the emulation. In order to deliver a received packet to the guest, the emulation must map buffer(s) and copy the packet into it.
To avoid this memory mapping overhead, this patch introduces the receive data ring - a set of small sized buffers that are always mapped by the emulation. If a packet fits into the receive data ring buffer, the emulation delivers the packet via the receive data ring (which must be copied by the guest driver), or else the usual receive path is used.
Signed-off-by: Shrikrishna Khare <[email protected]> Acked-by: Yong Wang <[email protected]> Acked-by: Jin Heo <[email protected]>
show more ...
|