1. 08 1月, 2017 1 次提交
  2. 07 1月, 2017 11 次提交
  3. 06 1月, 2017 2 次提交
    • S
      tcp: provide timestamps for partial writes · ad02c4f5
      Soheil Hassas Yeganeh 提交于
      For TCP sockets, TX timestamps are only captured when the user data
      is successfully and fully written to the socket. In many cases,
      however, TCP writes can be partial for which no timestamp is
      collected.
      
      Collect timestamps whenever any user data is (fully or partially)
      copied into the socket. Pass tcp_write_queue_tail to tcp_tx_timestamp
      instead of the local skb pointer since it can be set to NULL on
      the error path.
      
      Note that tcp_write_queue_tail can be NULL, even if bytes have been
      copied to the socket. This is because acknowledgements are being
      processed in tcp_sendmsg(), and by the time tcp_tx_timestamp is
      called tcp_write_queue_tail can be NULL. For such cases, this patch
      does not collect any timestamps (i.e., it is best-effort).
      
      This patch is written with suggestions from Willem de Bruijn and
      Eric Dumazet.
      
      Change-log V1 -> V2:
      	- Use sockc.tsflags instead of sk->sk_tsflags.
      	- Use the same code path for normal writes and errors.
      Signed-off-by: NSoheil Hassas Yeganeh <soheil@google.com>
      Acked-by: NYuchung Cheng <ycheng@google.com>
      Cc: Willem de Bruijn <willemb@google.com>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Acked-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ad02c4f5
    • V
      net:dsa: check for EPROBE_DEFER from dsa_dst_parse() · 5e6eb456
      Volodymyr Bendiuga 提交于
      Since there can be multiple dsa switches stacked together but
      not all of devicetree nodes available at the time of calling
      dsa_dst_parse(), EPROBE_DEFER can be returned by it. When this
      happens, only the last dsa switch has to be deleted by
      dsa_dst_del_ds(), but not the whole list, because next time linux
      cames back to this function it will try to add only the last dsa
      switch which returned EPROBE_DEFER.
      Signed-off-by: NVolodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e6eb456
  4. 05 1月, 2017 7 次提交
  5. 04 1月, 2017 6 次提交
  6. 03 1月, 2017 13 次提交