diff options
author | John Lo <loj@cisco.com> | 2017-07-12 19:56:45 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-07-13 11:42:29 +0000 |
commit | bea5ebf205e0bec922bf26c6c1a6a9392b4cad67 (patch) | |
tree | 62d0ee611310f94c29697b886d0626d1d264f87d /src/vnet/interface.h | |
parent | e0c6670eba118c26007ce05ec51f1b9c3022a083 (diff) |
Fix crash with worker threads on 4K VXLAN/BD setup (VPP-907)
Cleanup mapping of interface output node for the l2-output node
when interface is configured to L2 or L3 modes. The mapping is
now always done in the main thread as part of API/CLI processing,
instead of initiate mapping in the forwarding path which can be
in the worker threads.
Change-Id: Ia789493e7d9f5c76d68edfaf34db43f3e3f53506
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r-- | src/vnet/interface.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h index d684e356ca4..402acd1715f 100644 --- a/src/vnet/interface.h +++ b/src/vnet/interface.h @@ -419,10 +419,6 @@ typedef struct vnet_hw_interface_t VNET_HW_INTERFACE_FLAG_SPEED_40G | \ VNET_HW_INTERFACE_FLAG_SPEED_100G) - /* l2output node flags */ -#define VNET_HW_INTERFACE_FLAG_L2OUTPUT_SHIFT 9 -#define VNET_HW_INTERFACE_FLAG_L2OUTPUT_MAPPED (1 << 9) - /* rx mode flags */ #define VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE (1 << 10) @@ -572,10 +568,10 @@ typedef struct #define VNET_SW_INTERFACE_FLAG_BOND_SLAVE (1 << 4) -/* Interface does not appear in CLI/API */ + /* Interface does not appear in CLI/API */ #define VNET_SW_INTERFACE_FLAG_HIDDEN (1 << 5) -/* Interface in ERROR state */ + /* Interface in ERROR state */ #define VNET_SW_INTERFACE_FLAG_ERROR (1 << 6) /* Index for this interface. */ |