diff options
author | Pavel Kotucek <pkotucek@cisco.com> | 2017-06-20 14:00:26 +0200 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-08-01 14:44:13 +0000 |
commit | 15ac81c16fba83033090299413a3a2dbb848a0f9 (patch) | |
tree | ca9617e0faa21847be31e47c0c65ffc0cacf47eb /src/vnet/interface.c | |
parent | 5b311202b82a827c712d2cb7604c56049266adc9 (diff) |
P2P Ethernet
Change-Id: Idb97e573961b3bc2acdeef77582314590795f8c3
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/vnet/interface.c')
-rw-r--r-- | src/vnet/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c index dad1f315620..721259a7d04 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -1151,6 +1151,10 @@ vnet_hw_interface_compare (vnet_main_t * vnm, int vnet_sw_interface_is_p2p (vnet_main_t * vnm, u32 sw_if_index) { + vnet_sw_interface_t *si = vnet_get_sw_interface (vnm, sw_if_index); + if (si->type == VNET_SW_INTERFACE_TYPE_P2P) + return 1; + vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); vnet_hw_interface_class_t *hc = vnet_get_hw_interface_class (vnm, hw->hw_class_index); |