kernel-hacking-2024-linux-s.../drivers/vhost
Michael S. Tsirkin eaae8132ef vhost-net: select tx zero copy dynamically
Even when vhost-net is in zero-copy transmit mode,
net core might still decide to copy the skb later
which is somewhat slower than a copy in user
context: data copy overhead is added to the cost of
page pin/unpin. The result is that enabling tx zero copy
option leads to higher CPU utilization for guest to guest
and guest to host traffic.

To fix this, suppress zero copy tx after a given number of
packets triggered late data copy. Re-enable periodically
to detect workload changes.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-02 21:29:58 -04:00
..
Kconfig tcm_vhost: Initial merge for vhost level target fabric driver 2012-07-29 13:49:10 -07:00
Kconfig.tcm tcm_vhost: Initial merge for vhost level target fabric driver 2012-07-29 13:49:10 -07:00
Makefile tcm_vhost: Initial merge for vhost level target fabric driver 2012-07-29 13:49:10 -07:00
net.c vhost-net: select tx zero copy dynamically 2012-11-02 21:29:58 -04:00
tcm_vhost.c vhost: move -net specific code out 2012-11-02 21:29:58 -04:00
tcm_vhost.h tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls 2012-10-02 14:16:20 -07:00
test.c vhost: Separate vhost-net features from vhost features 2012-07-22 01:21:53 +03:00
test.h
vhost.c vhost: move -net specific code out 2012-11-02 21:29:58 -04:00
vhost.h vhost: move -net specific code out 2012-11-02 21:29:58 -04:00