Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream' into vhds-init-manager
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
  • Loading branch information
Dmitri Dolguikh committed Nov 23, 2019
2 parents 94abf00 + cddf4ac commit e7b6615
Show file tree
Hide file tree
Showing 69 changed files with 794 additions and 1,618 deletions.
12 changes: 11 additions & 1 deletion api/envoy/api/v2/route/route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,19 @@ message VirtualHost {
google.protobuf.UInt32Value per_request_buffer_limit_bytes = 18;
}

// A filter-defined action type.
message FilterAction {
google.protobuf.Any action = 1;
}

// A route is both a specification of how to match a request as well as an indication of what to do
// next (e.g., redirect, forward, rewrite, etc.).
//
// .. attention::
//
// Envoy supports routing on HTTP method via :ref:`header matching
// <envoy_api_msg_route.HeaderMatcher>`.
// [#next-free-field: 17]
// [#next-free-field: 18]
message Route {
reserved 6;

Expand All @@ -180,6 +185,11 @@ message Route {

// Return an arbitrary HTTP response directly, without proxying.
DirectResponseAction direct_response = 7;

// [#not-implemented-hide:]
// If true, a filter will define the action (e.g., it could dynamically generate the
// RouteAction).
FilterAction filter_action = 17;
}

// The Metadata field can be used to provide additional information
Expand Down
12 changes: 11 additions & 1 deletion api/envoy/api/v3alpha/route/route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,19 @@ message VirtualHost {
google.protobuf.UInt32Value per_request_buffer_limit_bytes = 18;
}

// A filter-defined action type.
message FilterAction {
google.protobuf.Any action = 1;
}

// A route is both a specification of how to match a request as well as an indication of what to do
// next (e.g., redirect, forward, rewrite, etc.).
//
// .. attention::
//
// Envoy supports routing on HTTP method via :ref:`header matching
// <envoy_api_msg_api.v3alpha.route.HeaderMatcher>`.
// [#next-free-field: 17]
// [#next-free-field: 18]
message Route {
reserved 6, 8;

Expand All @@ -177,6 +182,11 @@ message Route {

// Return an arbitrary HTTP response directly, without proxying.
DirectResponseAction direct_response = 7;

// [#not-implemented-hide:]
// If true, a filter will define the action (e.g., it could dynamically generate the
// RouteAction).
FilterAction filter_action = 17;
}

// The Metadata field can be used to provide additional information
Expand Down
9 changes: 9 additions & 0 deletions api/envoy/config/filter/http/grpc_stats/v2alpha/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ message FilterConfig {
// counts.
bool emit_filter_state = 1;
}

// gRPC statistics filter state object in protobuf form.
message FilterObject {
// Count of request messages in the request stream.
uint64 request_message_count = 1;

// Count of response messages in the response stream.
uint64 response_message_count = 2;
}
113 changes: 69 additions & 44 deletions bazel/external/quiche.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ envoy_cc_library(
"quiche/http2/platform/api/http2_logging.h",
"quiche/http2/platform/api/http2_macros.h",
"quiche/http2/platform/api/http2_optional.h",
"quiche/http2/platform/api/http2_ptr_util.h",
"quiche/http2/platform/api/http2_string.h",
"quiche/http2/platform/api/http2_string_piece.h",
"quiche/http2/platform/api/http2_string_utils.h",
# TODO: uncomment the following files as implementations are added.
Expand Down Expand Up @@ -719,7 +717,6 @@ envoy_cc_library(
"quiche/spdy/platform/api/spdy_map_util.h",
"quiche/spdy/platform/api/spdy_mem_slice.h",
"quiche/spdy/platform/api/spdy_ptr_util.h",
"quiche/spdy/platform/api/spdy_string.h",
"quiche/spdy/platform/api/spdy_string_piece.h",
"quiche/spdy/platform/api/spdy_string_utils.h",
],
Expand Down Expand Up @@ -1346,6 +1343,17 @@ envoy_cc_library(
deps = [":quic_platform_export"],
)

envoy_cc_library(
name = "quic_core_coalesced_packet_lib",
srcs = ["quiche/quic/core/quic_coalesced_packet.cc"],
hdrs = ["quiche/quic/core/quic_coalesced_packet.h"],
copts = quiche_copts,
repository = "@envoy",
deps = [
":quic_core_packets_lib",
],
)

envoy_cc_library(
name = "quic_core_config_lib",
srcs = ["quiche/quic/core/quic_config.cc"],
Expand Down Expand Up @@ -1591,12 +1599,12 @@ envoy_cc_library(
":quic_core_crypto_crypto_handshake_lib",
":quic_core_crypto_encryption_lib",
":quic_core_framer_lib",
":quic_core_mtu_discovery_lib",
":quic_core_one_block_arena_lib",
":quic_core_packet_creator_lib",
":quic_core_packet_generator_lib",
":quic_core_packet_writer_interface_lib",
":quic_core_packets_lib",
":quic_core_pending_retransmission_lib",
":quic_core_proto_cached_network_parameters_proto_header",
":quic_core_sent_packet_manager_lib",
":quic_core_time_lib",
Expand Down Expand Up @@ -1737,6 +1745,7 @@ envoy_cc_library(
"quiche/quic/core/crypto/chacha_base_encrypter.cc",
"quiche/quic/core/crypto/null_decrypter.cc",
"quiche/quic/core/crypto/null_encrypter.cc",
"quiche/quic/core/crypto/quic_crypter.cc",
"quiche/quic/core/crypto/quic_decrypter.cc",
"quiche/quic/core/crypto/quic_encrypter.cc",
],
Expand Down Expand Up @@ -1964,6 +1973,7 @@ envoy_cc_library(
":quic_core_error_codes_lib",
":quic_core_interval_lib",
":quic_core_types_lib",
":quic_core_versions_lib",
":quic_platform_base",
":quic_platform_mem_slice_span",
],
Expand Down Expand Up @@ -2001,6 +2011,7 @@ envoy_cc_library(
":quic_core_crypto_encryption_lib",
":quic_core_http_spdy_session_lib",
":quic_core_packets_lib",
":quic_core_qpack_qpack_streams_lib",
":quic_core_server_id_lib",
":quic_core_session_lib",
":quic_core_types_lib",
Expand Down Expand Up @@ -2040,6 +2051,7 @@ envoy_cc_library(
":quic_core_data_lib",
":quic_core_error_codes_lib",
":quic_core_http_http_frames_lib",
":quic_core_http_spdy_utils_lib",
":quic_core_types_lib",
":quic_platform_base",
],
Expand All @@ -2056,6 +2068,7 @@ envoy_cc_library(
":quic_core_data_lib",
":quic_core_error_codes_lib",
":quic_core_http_http_frames_lib",
":quic_core_http_spdy_utils_lib",
":quic_platform_base",
],
)
Expand Down Expand Up @@ -2118,7 +2131,7 @@ envoy_cc_library(
":quic_core_http_http_constants_lib",
":quic_core_http_http_decoder_lib",
":quic_core_http_http_encoder_lib",
":quic_core_http_spdy_stream_body_buffer_lib",
":quic_core_http_spdy_stream_body_manager_lib",
":quic_core_http_spdy_utils_lib",
":quic_core_packets_lib",
":quic_core_proto_cached_network_parameters_proto_header",
Expand All @@ -2127,6 +2140,7 @@ envoy_cc_library(
":quic_core_qpack_qpack_decoder_stream_sender_lib",
":quic_core_qpack_qpack_encoder_lib",
":quic_core_qpack_qpack_encoder_stream_sender_lib",
":quic_core_qpack_qpack_streams_lib",
":quic_core_qpack_qpack_utils_lib",
":quic_core_session_lib",
":quic_core_utils_lib",
Expand All @@ -2140,9 +2154,9 @@ envoy_cc_library(
)

envoy_cc_library(
name = "quic_core_http_spdy_stream_body_buffer_lib",
srcs = ["quiche/quic/core/http/quic_spdy_stream_body_buffer.cc"],
hdrs = ["quiche/quic/core/http/quic_spdy_stream_body_buffer.h"],
name = "quic_core_http_spdy_stream_body_manager_lib",
srcs = ["quiche/quic/core/http/quic_spdy_stream_body_manager.cc"],
hdrs = ["quiche/quic/core/http/quic_spdy_stream_body_manager.h"],
copts = quiche_copts,
repository = "@envoy",
tags = ["nofips"],
Expand All @@ -2162,6 +2176,7 @@ envoy_cc_library(
tags = ["nofips"],
deps = [
":quic_core_http_header_list_lib",
":quic_core_http_http_constants_lib",
":quic_core_packets_lib",
":quic_platform_base",
":spdy_core_framer_lib",
Expand Down Expand Up @@ -2199,6 +2214,17 @@ envoy_cc_library(
deps = [":quic_platform_base"],
)

envoy_cc_library(
name = "quic_core_mtu_discovery_lib",
srcs = ["quiche/quic/core/quic_mtu_discovery.cc"],
hdrs = ["quiche/quic/core/quic_mtu_discovery.h"],
copts = quiche_copts,
repository = "@envoy",
deps = [
":quic_core_constants_lib",
],
)

envoy_cc_library(
name = "quic_core_one_block_arena_lib",
srcs = ["quiche/quic/core/quic_one_block_arena.h"],
Expand All @@ -2220,12 +2246,12 @@ envoy_cc_library(
repository = "@envoy",
tags = ["nofips"],
deps = [
":quic_core_coalesced_packet_lib",
":quic_core_constants_lib",
":quic_core_crypto_encryption_lib",
":quic_core_data_lib",
":quic_core_framer_lib",
":quic_core_packets_lib",
":quic_core_pending_retransmission_lib",
":quic_core_types_lib",
":quic_core_utils_lib",
":quic_core_versions_lib",
Expand All @@ -2243,7 +2269,6 @@ envoy_cc_library(
deps = [
":quic_core_crypto_random_lib",
":quic_core_packet_creator_lib",
":quic_core_pending_retransmission_lib",
":quic_core_sent_packet_manager_lib",
":quic_core_types_lib",
":quic_core_utils_lib",
Expand Down Expand Up @@ -2314,19 +2339,6 @@ envoy_cc_library(
],
)

envoy_cc_library(
name = "quic_core_pending_retransmission_lib",
hdrs = ["quiche/quic/core/quic_pending_retransmission.h"],
repository = "@envoy",
tags = ["nofips"],
deps = [
":quic_core_frames_frames_lib",
":quic_core_transmission_info_lib",
":quic_core_types_lib",
":quic_platform_export",
],
)

envoy_cc_library(
name = "quic_core_process_packet_interface_lib",
hdrs = ["quiche/quic/core/quic_process_packet_interface.h"],
Expand Down Expand Up @@ -2391,6 +2403,7 @@ envoy_cc_library(
":quic_core_qpack_qpack_decoder_stream_receiver_lib",
":quic_core_qpack_qpack_encoder_stream_sender_lib",
":quic_core_qpack_qpack_header_table_lib",
":quic_core_qpack_qpack_index_conversions_lib",
":quic_core_qpack_qpack_instruction_encoder_lib",
":quic_core_qpack_qpack_required_insert_count_lib",
":quic_core_qpack_value_splitting_header_list_lib",
Expand Down Expand Up @@ -2455,6 +2468,7 @@ envoy_cc_library(
":quic_core_qpack_qpack_decoder_stream_sender_lib",
":quic_core_qpack_qpack_encoder_stream_receiver_lib",
":quic_core_qpack_qpack_header_table_lib",
":quic_core_qpack_qpack_index_conversions_lib",
":quic_core_qpack_qpack_instruction_decoder_lib",
":quic_core_qpack_qpack_required_insert_count_lib",
":quic_core_types_lib",
Expand Down Expand Up @@ -2492,6 +2506,7 @@ envoy_cc_library(
":quic_core_qpack_qpack_constants_lib",
":quic_core_qpack_qpack_instruction_encoder_lib",
":quic_core_qpack_qpack_stream_sender_delegate_lib",
":quic_core_types_lib",
":quic_platform_base",
],
)
Expand Down Expand Up @@ -2547,6 +2562,18 @@ envoy_cc_library(
],
)

envoy_cc_library(
name = "quic_core_qpack_qpack_index_conversions_lib",
srcs = ["quiche/quic/core/qpack/qpack_index_conversions.cc"],
hdrs = ["quiche/quic/core/qpack/qpack_index_conversions.h"],
copts = quiche_copts,
repository = "@envoy",
deps = [
":quic_platform_base",
":quic_platform_export",
],
)

envoy_cc_library(
name = "quic_core_qpack_qpack_static_table_lib",
srcs = ["quiche/quic/core/qpack/qpack_static_table.cc"],
Expand All @@ -2569,6 +2596,25 @@ envoy_cc_library(
deps = [":quic_platform_base"],
)

envoy_cc_library(
name = "quic_core_qpack_qpack_streams_lib",
srcs = [
"quiche/quic/core/qpack/qpack_receive_stream.cc",
"quiche/quic/core/qpack/qpack_send_stream.cc",
],
hdrs = [
"quiche/quic/core/qpack/qpack_receive_stream.h",
"quiche/quic/core/qpack/qpack_send_stream.h",
],
copts = quiche_copts,
repository = "@envoy",
deps = [
":quic_core_qpack_qpack_stream_receiver_lib",
":quic_core_qpack_qpack_stream_sender_delegate_lib",
":quic_core_session_lib",
],
)

envoy_cc_library(
name = "quic_core_qpack_qpack_decoded_headers_accumulator_lib",
srcs = ["quiche/quic/core/qpack/qpack_decoded_headers_accumulator.cc"],
Expand Down Expand Up @@ -2598,26 +2644,6 @@ envoy_cc_library(
],
)

# envoy_cc_library(
# name = "quic_core_qpack_qpack_streams_lib",
# srcs = [
# "quiche/quic/core/qpack/qpack_receive_stream.cc",
# "quiche/quic/core/qpack/qpack_send_stream.cc",
# ],
# hdrs = [
# "quiche/quic/core/qpack/qpack_receive_stream.h",
# "quiche/quic/core/qpack/qpack_send_stream.h",
# ],
# copts = quiche_copts,
# repository = "@envoy",
# deps = [
# ":quic_core_http_spdy_session_lib",
# ":quic_core_qpack_qpack_stream_sender_delegate_lib",
# ":quic_core_session_lib",
# ":quic_platform_base",
# ],
# )

envoy_cc_library(
name = "quic_core_qpack_qpack_stream_sender_delegate_lib",
hdrs = ["quiche/quic/core/qpack/qpack_stream_sender_delegate.h"],
Expand Down Expand Up @@ -2661,7 +2687,6 @@ envoy_cc_library(
":quic_core_connection_stats_lib",
":quic_core_crypto_encryption_lib",
":quic_core_packets_lib",
":quic_core_pending_retransmission_lib",
":quic_core_proto_cached_network_parameters_proto_header",
":quic_core_sustained_bandwidth_recorder_lib",
":quic_core_transmission_info_lib",
Expand Down
Loading

0 comments on commit e7b6615

Please sign in to comment.