1. 05 6月, 2015 1 次提交
  2. 03 2月, 2015 1 次提交
  3. 12 1月, 2015 1 次提交
    • W
      doc: fix the compile fix of txtimestamp.c · d3b4b261
      Willem de Bruijn 提交于
      A fix to ipv6 structure definitions removed the now superfluous
      definition of in6_pktinfo in this file.
      
      But, use of the glibc definition requires defining _GNU_SOURCE
      (see also https://sourceware.org/bugzilla/show_bug.cgi?id=6775).
      
      Before this change, the following would fail for me:
      
        make
        make headers_install
        make M=Documentation/networking/timestamping
      
      with
      
        Documentation/networking/timestamping/txtimestamp.c: In function '__recv_errmsg_cmsg':
        Documentation/networking/timestamping/txtimestamp.c:205:33: error: dereferencing pointer to incomplete type
        Documentation/networking/timestamping/txtimestamp.c:206:23: error: dereferencing pointer to incomplete type
      
      After this patch compilation succeeded.
      
      Fixes: cd91cc5b ("doc: fix the compile error of txtimestamp.c")
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d3b4b261
  4. 09 1月, 2015 1 次提交
  5. 09 12月, 2014 1 次提交
  6. 26 9月, 2014 3 次提交
  7. 06 9月, 2014 1 次提交
  8. 02 9月, 2014 1 次提交
  9. 30 7月, 2014 1 次提交
    • W
      net: remove deprecated syststamp timestamp · 4d276eb6
      Willem de Bruijn 提交于
      The SO_TIMESTAMPING API defines three types of timestamps: software,
      hardware in raw format (hwtstamp) and hardware converted to system
      format (syststamp). The last has been deprecated in favor of combining
      hwtstamp with a PTP clock driver. There are no active users in the
      kernel.
      
      The option was device driver dependent. If set, but without hardware
      support, the correct behavior is to return zero in the relevant field
      in the SCM_TIMESTAMPING ancillary message. Without device drivers
      implementing the option, this field is effectively always zero.
      
      Remove the internal plumbing to dissuage new drivers from implementing
      the feature. Keep the SOF_TIMESTAMPING_SYS_HARDWARE flag, however, to
      avoid breaking existing applications that request the timestamp.
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d276eb6
  10. 23 11月, 2013 1 次提交
  11. 16 3月, 2010 1 次提交
  12. 04 2月, 2010 1 次提交
  13. 03 10月, 2009 1 次提交
  14. 16 2月, 2009 1 次提交
    • P
      net: new user space API for time stamping of incoming and outgoing packets · cb9eff09
      Patrick Ohly 提交于
      User space can request hardware and/or software time stamping.
      Reporting of the result(s) via a new control message is enabled
      separately for each field in the message because some of the
      fields may require additional computation and thus cause overhead.
      User space can tell the different kinds of time stamps apart
      and choose what suits its needs.
      
      When a TX timestamp operation is requested, the TX skb will be cloned
      and the clone will be time stamped (in hardware or software) and added
      to the socket error queue of the skb, if the skb has a socket
      associated with it.
      
      The actual TX timestamp will reach userspace as a RX timestamp on the
      cloned packet. If timestamping is requested and no timestamping is
      done in the device driver (potentially this may use hardware
      timestamping), it will be done in software after the device's
      start_hard_xmit routine.
      Signed-off-by: NPatrick Ohly <patrick.ohly@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cb9eff09