1syntax = "proto3"; 2 3package envoy.config.core.v3; 4 5import "google/protobuf/wrappers.proto"; 6 7import "udpa/annotations/status.proto"; 8import "validate/validate.proto"; 9 10option java_package = "io.envoyproxy.envoy.config.core.v3"; 11option java_outer_classname = "UdpSocketConfigProto"; 12option java_multiple_files = true; 13option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; 14option (udpa.annotations.file_status).package_version_status = ACTIVE; 15 16// [#protodoc-title: UDP socket config] 17 18// Generic UDP socket configuration. 19message UdpSocketConfig { 20 // The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate 21 // more memory per socket. Received datagrams above this size will be dropped. If not set 22 // defaults to 1500 bytes. 23 google.protobuf.UInt64Value max_rx_datagram_size = 1 24 [(validate.rules).uint64 = {lt: 65536 gt: 0}]; 25 26 // Configures whether Generic Receive Offload (GRO) 27 // <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the 28 // UDP socket. The default is context dependent and is documented where UdpSocketConfig is used. 29 // This option affects performance but not functionality. If GRO is not supported by the operating 30 // system, non-GRO receive will be used. 31 google.protobuf.BoolValue prefer_gro = 2; 32} 33