1. 16 Jul, 2014 37 commits
  2. 15 Jul, 2014 3 commits
    • Willem de Bruijn's avatar
      net-timestamp: document deprecated syststamp · 26c4fdb0
      Willem de Bruijn authored
      The SO_TIMESTAMPING API defines option SOF_TIMESTAMPING_SYS_HW.
      This feature is deprecated. It should not be implemented by new
      device drivers. Existing drivers do not implement it, either --
      with one exception.
      
      Driver developers are encouraged to expose the NIC hw clock as a
      PTP HW clock source, instead, and synchronize system time to the
      HW source.
      
      The control flag cannot be removed due to being part of the ABI, nor
      can the structure scm_timestamping that is returned. Due to the one
      legacy driver, the internal datapath and structure are not removed.
      
      This patch only clearly marks the interface as deprecated. Device
      drivers should always return a syststamp value of zero.
      Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
      
      ----
      
      We can consider adding a WARN_ON_ONCE in__sock_recv_timestamp
      if non-zero syststamp is encountered
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      26c4fdb0
    • Willem de Bruijn's avatar
      net-timestamp: SOCK_RAW and PING timestamping · 11878b40
      Willem de Bruijn authored
      Add SO_TIMESTAMPING to sockets of type PF_INET[6]/SOCK_RAW:
      
      Add the necessary sock_tx_timestamp calls to the datapath for RAW
      sockets (ping sockets already had these calls).
      
      Fix the IP output path to pass the timestamp flags on the first
      fragment also for these sockets. The existing code relies on
      transhdrlen != 0 to indicate a first fragment. For these sockets,
      that assumption does not hold.
      
      This fixes http://bugzilla.kernel.org/show_bug.cgi?id=77221
      
      Tested SOCK_RAW on IPv4 and IPv6, not PING.
      Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      11878b40
    • David S. Miller's avatar
      Merge branch 'amd-xgbe-next' · d5c1c936
      David S. Miller authored
      Tom Lendacky says:
      
      ====================
      amd-xgbe: Remove baseT workaround for fixed speeds
      
      The following series expands the speed/duplex settings array in phy.c
      to support additional media types. With this expansion the workaround
      in the amd-xgbe driver to set/remove baseT media types based on whether
      auto negotiation is enabled can be removed.
      
      This patch series is based on net-next.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d5c1c936