def METHOD_NAME(self, iface: str, mark: str, qid: str, proto: int = PROTOCOL) -> int:
    """
    Create TC Filter for given HTB class.
    """
    LOG.debug("Create Filter iface %s qid %s", iface, qid)
    try:
        if_index = self._get_if_index(iface)
        class_id = int(PARENT_ID) | int(qid, 16)
        ret = self._ipr.tc(
            "add-filter", "fw", if_index, int(mark, 16),
            parent=PARENT_ID,
            prio=1,
            protocol=proto,
            classid=class_id,
        )
        LOG.debug("Return: %s", ret)
    except (ValueError, NetlinkError) as ex:
        return log_error_and_get_code(ex, "create-filter")
    return 0