1. 05 Jan, 2017 4 commits
    • David Howells's avatar
      rxrpc: Show a call's hard-ACK cursors in /proc/net/rxrpc_calls · 3e018daf
      David Howells authored
      Show a call's hard-ACK cursors in /proc/net/rxrpc_calls so that a call's
      progress can be more easily monitored.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      3e018daf
    • David Howells's avatar
      rxrpc: Add some more tracing · b1d9f7fd
      David Howells authored
      Add the following extra tracing information:
      
       (1) Modify the rxrpc_transmit tracepoint to record the Tx window size as
           this is varied by the slow-start algorithm.
      
       (2) Modify the rxrpc_rx_ack tracepoint to record more information from
           received ACK packets.
      
       (3) Add an rxrpc_rx_data tracepoint to record the information in DATA
           packets.
      
       (4) Add an rxrpc_disconnect_call tracepoint to record call disconnection,
           including the reason the call was disconnected.
      
       (5) Add an rxrpc_improper_term tracepoint to record implicit termination
           of a call by a client either by starting a new call on a particular
           connection channel without first transmitting the final ACK for the
           previous call.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      b1d9f7fd
    • David Howells's avatar
      rxrpc: Fix handling of enums-to-string translation in tracing · b54a134a
      David Howells authored
      Fix the way enum values are translated into strings in AF_RXRPC
      tracepoints.  The problem with just doing a lookup in a normal flat array
      of strings or chars is that external tracing infrastructure can't find it.
      Rather, TRACE_DEFINE_ENUM must be used.
      
      Also sort the enums and string tables to make it easier to keep them in
      order so that a future patch to __print_symbolic() can be optimised to try
      a direct lookup into the table first before iterating over it.
      
      A couple of _proto() macro calls are removed because they refered to tables
      that got moved to the tracing infrastructure.  The relevant data can be
      found by way of tracing.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      b54a134a
    • Daniel Borkmann's avatar
      packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode · 57ea884b
      Daniel Borkmann authored
      When TX timestamping is in use with TPACKET_V3's TX ring, then we'll
      hit the BUG() in __packet_set_timestamp() when ring buffer slot is
      returned to user space via tpacket_destruct_skb(). This is due to v3
      being assumed as unreachable here, but since 7f953ab2 ("af_packet:
      TX_RING support for TPACKET_V3") it's not anymore. Fix it by filling
      the timestamp back into the ring slot.
      
      Fixes: 7f953ab2 ("af_packet: TX_RING support for TPACKET_V3")
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarSowmini Varadhan <sowmini.varadhan@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      57ea884b
  2. 04 Jan, 2017 11 commits
  3. 03 Jan, 2017 25 commits