Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 3 | * Copyright 2015 gRPC authors. |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 4 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 8 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 10 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 16 | * |
| 17 | */ |
| 18 | |
Craig Tiller | d608cd6 | 2017-04-02 16:23:17 -0700 | [diff] [blame] | 19 | #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H |
| 20 | #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 21 | |
Craig Tiller | 9eb0fde | 2017-03-31 16:59:30 -0700 | [diff] [blame] | 22 | #include "src/core/ext/filters/client_channel/subchannel.h" |
David Garcia Quintas | 2a50dfe | 2016-05-31 15:09:12 -0700 | [diff] [blame] | 23 | #include "src/core/lib/iomgr/polling_entity.h" |
Craig Tiller | 9533d04 | 2016-03-25 17:11:06 -0700 | [diff] [blame] | 24 | #include "src/core/lib/transport/connectivity_state.h" |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 25 | |
| 26 | /** A load balancing policy: specified by a vtable and a struct (which |
| 27 | is expected to be extended to contain some parameters) */ |
| 28 | typedef struct grpc_lb_policy grpc_lb_policy; |
| 29 | typedef struct grpc_lb_policy_vtable grpc_lb_policy_vtable; |
David Garcia Quintas | 87d5a31 | 2017-06-06 19:45:58 -0700 | [diff] [blame] | 30 | typedef struct grpc_lb_policy_args grpc_lb_policy_args; |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 31 | |
ncteisen | 05294b6 | 2017-11-10 16:57:53 -0800 | [diff] [blame] | 32 | extern grpc_core::DebugOnlyTraceFlag grpc_trace_lb_policy_refcount; |
ncteisen | 9c43fc0 | 2017-06-08 16:06:23 -0700 | [diff] [blame] | 33 | |
Craig Tiller | a82950e | 2015-09-22 12:33:20 -0700 | [diff] [blame] | 34 | struct grpc_lb_policy { |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 35 | const grpc_lb_policy_vtable* vtable; |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 36 | gpr_refcount refs; |
Craig Tiller | 69b093b | 2016-02-25 19:04:07 -0800 | [diff] [blame] | 37 | /* owned pointer to interested parties in load balancing decisions */ |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 38 | grpc_pollset_set* interested_parties; |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 39 | /* combiner under which lb_policy actions take place */ |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 40 | grpc_combiner* combiner; |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 41 | /* callback to force a re-resolution */ |
| 42 | grpc_closure* request_reresolution; |
Craig Tiller | 7c0b4d7 | 2015-06-25 14:44:44 -0700 | [diff] [blame] | 43 | }; |
| 44 | |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 45 | /// State used for an LB pick. |
| 46 | typedef struct grpc_lb_policy_pick_state { |
| 47 | /// Initial metadata associated with the picking call. |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 48 | grpc_metadata_batch* initial_metadata; |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 49 | /// Bitmask used for selective cancelling. See \a |
| 50 | /// grpc_lb_policy_cancel_picks() and \a GRPC_INITIAL_METADATA_* in |
| 51 | /// grpc_types.h. |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 52 | uint32_t initial_metadata_flags; |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 53 | /// Storage for LB token in \a initial_metadata, or NULL if not used. |
| 54 | grpc_linked_mdelem lb_token_mdelem_storage; |
| 55 | /// Closure to run when pick is complete, if not completed synchronously. |
| 56 | grpc_closure* on_complete; |
| 57 | /// Will be set to the selected subchannel, or NULL on failure or when |
| 58 | /// the LB policy decides to drop the call. |
| 59 | grpc_connected_subchannel* connected_subchannel; |
| 60 | /// Will be populated with context to pass to the subchannel call, if needed. |
| 61 | grpc_call_context_element subchannel_call_context[GRPC_CONTEXT_COUNT]; |
| 62 | /// Upon success, \a *user_data will be set to whatever opaque information |
| 63 | /// may need to be propagated from the LB policy, or NULL if not needed. |
| 64 | void** user_data; |
| 65 | /// Next pointer. For internal use by LB policy. |
| 66 | struct grpc_lb_policy_pick_state* next; |
| 67 | } grpc_lb_policy_pick_state; |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 68 | |
Craig Tiller | a82950e | 2015-09-22 12:33:20 -0700 | [diff] [blame] | 69 | struct grpc_lb_policy_vtable { |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 70 | void (*destroy)(grpc_lb_policy* policy); |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 71 | |
| 72 | /// \see grpc_lb_policy_shutdown_locked(). |
| 73 | void (*shutdown_locked)(grpc_lb_policy* policy, grpc_lb_policy* new_policy); |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 74 | |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 75 | /** \see grpc_lb_policy_pick */ |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 76 | int (*pick_locked)(grpc_lb_policy* policy, grpc_lb_policy_pick_state* pick); |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 77 | |
| 78 | /** \see grpc_lb_policy_cancel_pick */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 79 | void (*cancel_pick_locked)(grpc_lb_policy* policy, |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 80 | grpc_lb_policy_pick_state* pick, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 81 | grpc_error* error); |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 82 | |
| 83 | /** \see grpc_lb_policy_cancel_picks */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 84 | void (*cancel_picks_locked)(grpc_lb_policy* policy, |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 85 | uint32_t initial_metadata_flags_mask, |
| 86 | uint32_t initial_metadata_flags_eq, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 87 | grpc_error* error); |
Craig Tiller | c7b5f76 | 2015-06-27 11:48:42 -0700 | [diff] [blame] | 88 | |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 89 | /** \see grpc_lb_policy_ping_one */ |
Yash Tibrewal | d6c292f | 2017-12-07 19:38:43 -0800 | [diff] [blame] | 90 | void (*ping_one_locked)(grpc_lb_policy* policy, grpc_closure* on_initiate, |
| 91 | grpc_closure* on_ack); |
Craig Tiller | 26dab31 | 2015-12-07 14:43:47 -0800 | [diff] [blame] | 92 | |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 93 | /** Try to enter a READY connectivity state */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 94 | void (*exit_idle_locked)(grpc_lb_policy* policy); |
Craig Tiller | 48cb07c | 2015-07-15 16:16:15 -0700 | [diff] [blame] | 95 | |
Craig Tiller | c7b5f76 | 2015-06-27 11:48:42 -0700 | [diff] [blame] | 96 | /** check the current connectivity of the lb_policy */ |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 97 | grpc_connectivity_state (*check_connectivity_locked)( |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 98 | grpc_lb_policy* policy, grpc_error** connectivity_error); |
Craig Tiller | c7b5f76 | 2015-06-27 11:48:42 -0700 | [diff] [blame] | 99 | |
| 100 | /** call notify when the connectivity state of a channel changes from *state. |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 101 | Updates *state with the new state of the policy. Calling with a NULL \a |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 102 | state cancels the subscription. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 103 | void (*notify_on_state_change_locked)(grpc_lb_policy* policy, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 104 | grpc_connectivity_state* state, |
| 105 | grpc_closure* closure); |
David Garcia Quintas | 87d5a31 | 2017-06-06 19:45:58 -0700 | [diff] [blame] | 106 | |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 107 | void (*update_locked)(grpc_lb_policy* policy, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 108 | const grpc_lb_policy_args* args); |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 109 | |
| 110 | /** \see grpc_lb_policy_set_reresolve_closure */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 111 | void (*set_reresolve_closure_locked)(grpc_lb_policy* policy, |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 112 | grpc_closure* request_reresolution); |
Craig Tiller | 9d0e047 | 2015-06-23 09:12:48 -0700 | [diff] [blame] | 113 | }; |
| 114 | |
ncteisen | 9c43fc0 | 2017-06-08 16:06:23 -0700 | [diff] [blame] | 115 | #ifndef NDEBUG |
Craig Tiller | 4ab82d2 | 2015-06-29 09:40:33 -0700 | [diff] [blame] | 116 | #define GRPC_LB_POLICY_REF(p, r) \ |
| 117 | grpc_lb_policy_ref((p), __FILE__, __LINE__, (r)) |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 118 | #define GRPC_LB_POLICY_UNREF(p, r) \ |
| 119 | grpc_lb_policy_unref((p), __FILE__, __LINE__, (r)) |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 120 | void grpc_lb_policy_ref(grpc_lb_policy* policy, const char* file, int line, |
| 121 | const char* reason); |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 122 | void grpc_lb_policy_unref(grpc_lb_policy* policy, const char* file, int line, |
| 123 | const char* reason); |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 124 | #else // !NDEBUG |
Craig Tiller | d7b68e7 | 2015-06-28 11:41:09 -0700 | [diff] [blame] | 125 | #define GRPC_LB_POLICY_REF(p, r) grpc_lb_policy_ref((p)) |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 126 | #define GRPC_LB_POLICY_UNREF(p, r) grpc_lb_policy_unref((p)) |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 127 | void grpc_lb_policy_ref(grpc_lb_policy* policy); |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 128 | void grpc_lb_policy_unref(grpc_lb_policy* policy); |
Craig Tiller | d7b68e7 | 2015-06-28 11:41:09 -0700 | [diff] [blame] | 129 | #endif |
| 130 | |
| 131 | /** called by concrete implementations to initialize the base struct */ |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 132 | void grpc_lb_policy_init(grpc_lb_policy* policy, |
| 133 | const grpc_lb_policy_vtable* vtable, |
| 134 | grpc_combiner* combiner); |
Craig Tiller | f5f1712 | 2015-06-25 08:47:26 -0700 | [diff] [blame] | 135 | |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 136 | /// Shuts down \a policy. |
| 137 | /// If \a new_policy is non-null, any pending picks will be restarted |
| 138 | /// on that policy; otherwise, they will be failed. |
| 139 | void grpc_lb_policy_shutdown_locked(grpc_lb_policy* policy, |
| 140 | grpc_lb_policy* new_policy); |
Mark D. Roth | 1e5f6af | 2016-10-07 08:32:58 -0700 | [diff] [blame] | 141 | |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 142 | /** Finds an appropriate subchannel for a call, based on data in \a pick. |
| 143 | \a pick must remain alive until the pick is complete. |
Mark D. Roth | 1e5f6af | 2016-10-07 08:32:58 -0700 | [diff] [blame] | 144 | |
| 145 | If the pick succeeds and a result is known immediately, a non-zero |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 146 | value will be returned. Otherwise, \a pick->on_complete will be invoked |
Mark D. Roth | 1e5f6af | 2016-10-07 08:32:58 -0700 | [diff] [blame] | 147 | once the pick is complete with its error argument set to indicate |
| 148 | success or failure. |
| 149 | |
Yuchen Zeng | 3efcb48 | 2016-10-10 15:28:50 -0700 | [diff] [blame] | 150 | Any IO should be done under the \a interested_parties \a grpc_pollset_set |
| 151 | in the \a grpc_lb_policy struct. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 152 | int grpc_lb_policy_pick_locked(grpc_lb_policy* policy, |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 153 | grpc_lb_policy_pick_state* pick); |
Craig Tiller | 577c9b2 | 2015-11-02 14:11:15 -0800 | [diff] [blame] | 154 | |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 155 | /** Perform a connected subchannel ping (see \a grpc_connected_subchannel_ping) |
| 156 | against one of the connected subchannels managed by \a policy. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 157 | void grpc_lb_policy_ping_one_locked(grpc_lb_policy* policy, |
Yuchen Zeng | c272dd7 | 2017-12-05 12:18:34 -0800 | [diff] [blame] | 158 | grpc_closure* on_initiate, |
| 159 | grpc_closure* on_ack); |
Craig Tiller | 26dab31 | 2015-12-07 14:43:47 -0800 | [diff] [blame] | 160 | |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 161 | /** Cancel picks for \a pick. |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 162 | The \a on_complete callback of the pending picks will be invoked with \a |
| 163 | *target set to NULL. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 164 | void grpc_lb_policy_cancel_pick_locked(grpc_lb_policy* policy, |
Mark D. Roth | 473267b | 2018-01-11 08:53:53 -0800 | [diff] [blame^] | 165 | grpc_lb_policy_pick_state* pick, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 166 | grpc_error* error); |
Craig Tiller | ca3e9d3 | 2015-06-27 18:37:27 -0700 | [diff] [blame] | 167 | |
David Garcia Quintas | 8aace51 | 2016-08-15 14:55:12 -0700 | [diff] [blame] | 168 | /** Cancel all pending picks for which their \a initial_metadata_flags (as given |
| 169 | in the call to \a grpc_lb_policy_pick) matches \a initial_metadata_flags_eq |
| 170 | when AND'd with \a initial_metadata_flags_mask */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 171 | void grpc_lb_policy_cancel_picks_locked(grpc_lb_policy* policy, |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 172 | uint32_t initial_metadata_flags_mask, |
| 173 | uint32_t initial_metadata_flags_eq, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 174 | grpc_error* error); |
Craig Tiller | 8c0d96f | 2016-03-11 14:27:52 -0800 | [diff] [blame] | 175 | |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 176 | /** Try to enter a READY connectivity state */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 177 | void grpc_lb_policy_exit_idle_locked(grpc_lb_policy* policy); |
Craig Tiller | 48cb07c | 2015-07-15 16:16:15 -0700 | [diff] [blame] | 178 | |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 179 | /* Call notify when the connectivity state of a channel changes from \a *state. |
| 180 | * Updates \a *state with the new state of the policy */ |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 181 | void grpc_lb_policy_notify_on_state_change_locked( |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 182 | grpc_lb_policy* policy, grpc_connectivity_state* state, |
| 183 | grpc_closure* closure); |
Craig Tiller | 1ada6ad | 2015-07-16 16:19:14 -0700 | [diff] [blame] | 184 | |
Craig Tiller | 2400bf5 | 2017-02-09 16:25:19 -0800 | [diff] [blame] | 185 | grpc_connectivity_state grpc_lb_policy_check_connectivity_locked( |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 186 | grpc_lb_policy* policy, grpc_error** connectivity_error); |
Craig Tiller | 1ada6ad | 2015-07-16 16:19:14 -0700 | [diff] [blame] | 187 | |
David Garcia Quintas | 87d5a31 | 2017-06-06 19:45:58 -0700 | [diff] [blame] | 188 | /** Update \a policy with \a lb_policy_args. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 189 | void grpc_lb_policy_update_locked(grpc_lb_policy* policy, |
Craig Tiller | baa14a9 | 2017-11-03 09:09:36 -0700 | [diff] [blame] | 190 | const grpc_lb_policy_args* lb_policy_args); |
David Garcia Quintas | 87d5a31 | 2017-06-06 19:45:58 -0700 | [diff] [blame] | 191 | |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 192 | /** Set the re-resolution closure to \a request_reresolution. */ |
| 193 | void grpc_lb_policy_set_reresolve_closure_locked( |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 194 | grpc_lb_policy* policy, grpc_closure* request_reresolution); |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 195 | |
| 196 | /** Try to request a re-resolution. It's NOT a public API; it's only for use by |
| 197 | the LB policy implementations. */ |
Yash Tibrewal | 8cf1470 | 2017-12-06 09:47:54 -0800 | [diff] [blame] | 198 | void grpc_lb_policy_try_reresolve(grpc_lb_policy* policy, |
Juanli Shen | 592cf34 | 2017-12-04 20:52:01 -0800 | [diff] [blame] | 199 | grpc_core::TraceFlag* grpc_lb_trace, |
| 200 | grpc_error* error); |
| 201 | |
Craig Tiller | d608cd6 | 2017-04-02 16:23:17 -0700 | [diff] [blame] | 202 | #endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H */ |