From: Derrick Brashear Date: Fri, 6 Jan 2012 11:53:46 +0000 (-0500) Subject: rx: add and export a public keepalive toggle X-Git-Tag: upstream/1.6.1.pre2^2~10 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5a9fa5d08753056dc24241e3e768852ed6f71f35;p=packages%2Fo%2Fopenafs.git rx: add and export a public keepalive toggle make enabling and disabling keepalives a public function. export the function (cherry picked from commit 2a31f35936698c504c863702ebb675ac9dfe47e1) Reviewed-on: http://gerrit.openafs.org/6517 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Change-Id: If7bd2b72980dd92771614a6d73a04441222a8314 Reviewed-on: http://gerrit.openafs.org/6522 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/libafsrpc/afsrpc.def b/src/libafsrpc/afsrpc.def index 08ae8dfe2..35ea56ef4 100755 --- a/src/libafsrpc/afsrpc.def +++ b/src/libafsrpc/afsrpc.def @@ -286,6 +286,9 @@ EXPORTS rx_SetBusyChannelError @304 + rx_KeepAliveOn @335 + rx_KeepAliveOff @336 + ; for performance testing rx_TSFPQGlobSize @2001 DATA rx_TSFPQLocalMax @2002 DATA diff --git a/src/rx/rx.c b/src/rx/rx.c index 7c1199e1d..ffb9a364b 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -6655,6 +6655,20 @@ rxi_KeepAliveOn(struct rx_call *call) rxi_ScheduleKeepAliveEvent(call); } +/* + * Solely in order that callers not need to include rx_call.h + */ +void +rx_KeepAliveOff(struct rx_call *call) +{ + rxi_KeepAliveOff(call); +} +void +rx_KeepAliveOn(struct rx_call *call) +{ + rxi_KeepAliveOn(call); +} + void rxi_GrowMTUOn(struct rx_call *call) { diff --git a/src/rx/rx_prototypes.h b/src/rx/rx_prototypes.h index 0dcb1926d..647e626f6 100644 --- a/src/rx/rx_prototypes.h +++ b/src/rx/rx_prototypes.h @@ -191,6 +191,8 @@ extern void rxi_ChallengeEvent(struct rxevent *event, extern void rxi_ChallengeOn(struct rx_connection *conn); extern void rxi_ReapConnections(struct rxevent *unused, void *unused1, void *unused2); +extern void rx_KeepAliveOn(struct rx_call *call); +extern void rx_KeepAliveOff(struct rx_call *call); extern int rxs_Release(struct rx_securityClass *aobj); #ifndef KERNEL extern void rx_PrintTheseStats(FILE * file, struct rx_statistics *s, int size, diff --git a/src/shlibafsrpc/libafsrpc.map b/src/shlibafsrpc/libafsrpc.map index 2baef6599..00b111474 100755 --- a/src/shlibafsrpc/libafsrpc.map +++ b/src/shlibafsrpc/libafsrpc.map @@ -144,6 +144,8 @@ afs_xdr_vector; rx_InterruptCall; rx_SetBusyChannelError; + rx_KeepAliveOn; + rx_KeepAliveOff; local: *; };