interface: refactor interface capabilities code
[vpp.git] / src / vnet / ethernet / interface.c
index c941f82..9b70ae5 100644 (file)
@@ -460,7 +460,7 @@ ethernet_set_flags (vnet_main_t * vnm, u32 hw_if_index, u32 flags)
       switch (opn_flags)
        {
        case ETHERNET_INTERFACE_FLAG_DEFAULT_L3:
-         if (hi->caps & VNET_HW_INTERFACE_CAP_SUPPORTS_MAC_FILTER)
+         if (hi->caps & VNET_HW_IF_CAP_MAC_FILTER)
            {
              if (ei->flag_change (vnm, hi, opn_flags) != ~0)
                {