rxrpc: Remove rxrpc_get_reply_time() which is no longer used
authorDavid Howells <dhowells@redhat.com>
Wed, 31 Aug 2022 12:24:44 +0000 (13:24 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2022 10:44:13 +0000 (11:44 +0100)
Remove rxrpc_get_reply_time() as that is no longer used now that the call
issue time is used instead of the reply time.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/networking/rxrpc.rst
include/net/af_rxrpc.h
net/rxrpc/recvmsg.c

index 39c2249..39494a6 100644 (file)
@@ -1055,17 +1055,6 @@ The kernel interface functions are as follows:
      first function to change.  Note that this must be called in TASK_RUNNING
      state.
 
- (#) Get reply timestamp::
-
-       bool rxrpc_kernel_get_reply_time(struct socket *sock,
-                                        struct rxrpc_call *call,
-                                        ktime_t *_ts)
-
-     This allows the timestamp on the first DATA packet of the reply of a
-     client call to be queried, provided that it is still in the Rx ring.  If
-     successful, the timestamp will be stored into ``*_ts`` and true will be
-     returned; false will be returned otherwise.
-
  (#) Get remote client epoch::
 
        u32 rxrpc_kernel_get_epoch(struct socket *sock,
index cee5f83..b69ca69 100644 (file)
@@ -66,8 +66,6 @@ int rxrpc_kernel_charge_accept(struct socket *, rxrpc_notify_rx_t,
 void rxrpc_kernel_set_tx_length(struct socket *, struct rxrpc_call *, s64);
 bool rxrpc_kernel_check_life(const struct socket *, const struct rxrpc_call *);
 u32 rxrpc_kernel_get_epoch(struct socket *, struct rxrpc_call *);
-bool rxrpc_kernel_get_reply_time(struct socket *, struct rxrpc_call *,
-                                ktime_t *);
 bool rxrpc_kernel_call_is_complete(struct rxrpc_call *);
 void rxrpc_kernel_set_max_life(struct socket *, struct rxrpc_call *,
                               unsigned long);
index 250f23b..7e39c26 100644 (file)
@@ -771,46 +771,3 @@ call_complete:
        goto out;
 }
 EXPORT_SYMBOL(rxrpc_kernel_recv_data);
-
-/**
- * rxrpc_kernel_get_reply_time - Get timestamp on first reply packet
- * @sock: The socket that the call exists on
- * @call: The call to query
- * @_ts: Where to put the timestamp
- *
- * Retrieve the timestamp from the first DATA packet of the reply if it is
- * in the ring.  Returns true if successful, false if not.
- */
-bool rxrpc_kernel_get_reply_time(struct socket *sock, struct rxrpc_call *call,
-                                ktime_t *_ts)
-{
-       struct sk_buff *skb;
-       rxrpc_seq_t hard_ack, top, seq;
-       bool success = false;
-
-       mutex_lock(&call->user_mutex);
-
-       if (READ_ONCE(call->state) != RXRPC_CALL_CLIENT_RECV_REPLY)
-               goto out;
-
-       hard_ack = call->rx_hard_ack;
-       if (hard_ack != 0)
-               goto out;
-
-       seq = hard_ack + 1;
-       top = smp_load_acquire(&call->rx_top);
-       if (after(seq, top))
-               goto out;
-
-       skb = call->rxtx_buffer[seq & RXRPC_RXTX_BUFF_MASK];
-       if (!skb)
-               goto out;
-
-       *_ts = skb_get_ktime(skb);
-       success = true;
-
-out:
-       mutex_unlock(&call->user_mutex);
-       return success;
-}
-EXPORT_SYMBOL(rxrpc_kernel_get_reply_time);