Refactor tap into its own plugin (upstream commit cb19c526d)

This commit is contained in:
2026-02-10 22:39:14 +01:00
parent 3db02d166c
commit d8f47fdda2
2 changed files with 3 additions and 6 deletions

View File

@@ -33,7 +33,7 @@
#include <vnet/adj/adj_mcast.h>
#include <vnet/udp/udp.h>
#include <vnet/tcp/tcp.h>
#include <vnet/devices/tap/tap.h>
#include <tap/tap.h>
#include <vnet/devices/virtio/virtio.h>
#include <vnet/devices/netlink.h>
#include <vlibapi/api_helper_macros.h>
@@ -1060,10 +1060,7 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name,
* get the hw and ethernet of the tap
*/
hw = vnet_get_sup_hw_interface (vnm, args.sw_if_index);
virtio_main_t *mm = &virtio_main;
virtio_if_t *vif = pool_elt_at_index (mm->interfaces, hw->dev_instance);
vif_index = vif->ifindex;
vif_index = tap_get_ifindex (vm, args.sw_if_index);
/*
* force the tap in promiscuous mode.

View File

@@ -28,7 +28,7 @@
#include <plugins/lcpng/lcpng_interface.h>
#include <plugins/lcpng/lcpng_netlink.h>
#include <vnet/devices/tap/tap.h>
#include <tap/tap.h>
#include <vnet/fib/fib_table.h>
#include <vnet/mfib/mfib_table.h>
#include <vnet/ip/ip6_ll_table.h>