Only one cpu can talk to virtio NIC directly (at least without multiqueue), so other cpus receive packets from the one that drives virtio and forward packets that need to be send back. This is done by proxy net interface.
14 lines
257 B
C++
14 lines
257 B
C++
#ifndef PROXY_HH_
|
|
#define PROXY_HH_
|
|
|
|
#include <memory>
|
|
#include "net.hh"
|
|
#include "packet.hh"
|
|
|
|
namespace net {
|
|
|
|
std::unique_ptr<device> create_proxy_net_device(boost::program_options::variables_map opts = boost::program_options::variables_map());
|
|
|
|
}
|
|
#endif
|