dev: new device driver infra
[vpp.git] / src / vnet / ethernet / p2p_ethernet.c
index 51aba13..0ece84f 100644 (file)
@@ -146,6 +146,8 @@ p2p_ethernet_add_del (vlib_main_t * vm, u32 parent_if_index,
              vnet_feature_enable_disable ("device-input",
                                           "p2p-ethernet-input",
                                           parent_if_index, 1, 0, 0);
+             vnet_feature_enable_disable ("port-rx-eth", "p2p-ethernet-input",
+                                          parent_if_index, 1, 0, 0);
              /* Set promiscuous mode on the l2 interface */
              ethernet_set_flags (vnm, parent_if_index,
                                  ETHERNET_INTERFACE_FLAG_ACCEPT_ALL);
@@ -176,6 +178,9 @@ p2p_ethernet_add_del (vlib_main_t * vm, u32 parent_if_index,
                  vnet_feature_enable_disable ("device-input",
                                               "p2p-ethernet-input",
                                               parent_if_index, 0, 0, 0);
+                 vnet_feature_enable_disable ("port-rx-eth",
+                                              "p2p-ethernet-input",
+                                              parent_if_index, 0, 0, 0);
                  /* Disable promiscuous mode on the l2 interface */
                  ethernet_set_flags (vnm, parent_if_index, 0);
                }