Lines Matching defs:protocol
17 * get protocol handler
24 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol)
26 switch (protocol) {
102 * Initiate protocol negotiation with monitor. Include entity name
118 ceph_encode_32(&p, CEPH_AUTH_UNKNOWN); /* no protocol, yet */
160 ceph_encode_32(&p, ac->protocol);
184 int protocol;
196 protocol = ceph_decode_32(&p);
221 if (!protocol && result < 0) {
225 /* set up (new) protocol handler? */
226 if (ac->protocol && ac->protocol != protocol) {
228 ac->protocol = 0;
231 if (ac->protocol != protocol) {
232 ret = ceph_auth_init_protocol(ac, protocol);
234 pr_err("error %d on auth protocol %d init\n",
235 ret, protocol);