summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss/gss_mech_switch.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-15 17:05:52 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-15 17:05:52 -0400
commite3406081c6ac154ed48fbb07e6bb8daacc48c7c8 (patch)
tree31ac04d7813866463fccf2ec9ec4dea9c88edc75 /net/sunrpc/auth_gss/gss_mech_switch.c
parent92d21ac74a9e3c09b0b01c764e530657e4c85c49 (diff)
parenta4e187d83d88eeaba6252aac0a2ffe5eaa73a818 (diff)
downloadlinux-e3406081c6ac154ed48fbb07e6bb8daacc48c7c8.tar.bz2
Merge tag 'nfs-rdma-4.8-1' of git://git.linux-nfs.org/projects/anna/nfs-rdma
NFS: NFSoRDMA Client Side Changes New Features: - Add kerberos support Bugfixes and cleanups: - Remove ALLPHYSICAL memory registration mode - Fix FMR disconnect recovery - Reduce memory usage Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/auth_gss/gss_mech_switch.c')
-rw-r--r--net/sunrpc/auth_gss/gss_mech_switch.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c
index 7063d856a598..5fec3abbe19b 100644
--- a/net/sunrpc/auth_gss/gss_mech_switch.c
+++ b/net/sunrpc/auth_gss/gss_mech_switch.c
@@ -361,6 +361,18 @@ gss_pseudoflavor_to_service(struct gss_api_mech *gm, u32 pseudoflavor)
}
EXPORT_SYMBOL(gss_pseudoflavor_to_service);
+bool
+gss_pseudoflavor_to_datatouch(struct gss_api_mech *gm, u32 pseudoflavor)
+{
+ int i;
+
+ for (i = 0; i < gm->gm_pf_num; i++) {
+ if (gm->gm_pfs[i].pseudoflavor == pseudoflavor)
+ return gm->gm_pfs[i].datatouch;
+ }
+ return false;
+}
+
char *
gss_service_to_auth_domain_name(struct gss_api_mech *gm, u32 service)
{