1. 16 2月, 2009 3 次提交
    • P
      ip: support for TX timestamps on UDP and RAW sockets · 51f31cab
      Patrick Ohly 提交于
      Instructions for time stamping outgoing packets are take from the
      socket layer and later copied into the new skb.
      Signed-off-by: NPatrick Ohly <patrick.ohly@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51f31cab
    • P
      net: socket infrastructure for SO_TIMESTAMPING · 20d49473
      Patrick Ohly 提交于
      The overlap with the old SO_TIMESTAMP[NS] options is handled so
      that time stamping in software (net_enable_timestamp()) is
      enabled when SO_TIMESTAMP[NS] and/or SO_TIMESTAMPING_RX_SOFTWARE
      is set.  It's disabled if all of these are off.
      Signed-off-by: NPatrick Ohly <patrick.ohly@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20d49473
    • P
      net: infrastructure for hardware time stamping · ac45f602
      Patrick Ohly 提交于
      The additional per-packet information (16 bytes for time stamps, 1
      byte for flags) is stored for all packets in the skb_shared_info
      struct. This implementation detail is hidden from users of that
      information via skb_* accessor functions. A separate struct resp.
      union is used for the additional information so that it can be
      stored/copied easily outside of skb_shared_info.
      
      Compared to previous implementations (reusing the tstamp field
      depending on the context, optional additional structures) this
      is the simplest solution. It does not extend sk_buff itself.
      
      TX time stamping is implemented in software if the device driver
      doesn't support hardware time stamping.
      
      The new semantic for hardware/software time stamping around
      ndo_start_xmit() is based on two assumptions about existing
      network device drivers which don't support hardware time
      stamping and know nothing about it:
       - they leave the new skb_shared_tx unmodified
       - the keep the connection to the originating socket in skb->sk
         alive, i.e., don't call skb_orphan()
      
      Given that skb_shared_tx is new, the first assumption is safe.
      The second is only true for some drivers. As a result, software
      TX time stamping currently works with the bnx2 driver, but not
      with the unmodified igb driver (the two drivers this patch series
      was tested with).
      Signed-off-by: NPatrick Ohly <patrick.ohly@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ac45f602
  2. 14 2月, 2009 28 次提交
  3. 13 2月, 2009 3 次提交
  4. 12 2月, 2009 2 次提交
  5. 11 2月, 2009 2 次提交
  6. 10 2月, 2009 2 次提交