1. 10 Jul, 2013 1 commit
  2. 10 Jun, 2013 2 commits
  3. 18 Apr, 2013 1 commit
  4. 16 Feb, 2013 2 commits
  5. 15 Feb, 2013 3 commits
  6. 05 Feb, 2013 2 commits
  7. 23 Jan, 2013 4 commits
  8. 19 Jan, 2013 1 commit
    • Alexander Duyck's avatar
      ixgbe: Update ixgbe Tx flags to improve code efficiency · 472148c3
      Alexander Duyck authored
      
      
      This change is meant to improve the efficiency of the Tx flags in ixgbe by
      aligning them with the values that will later be written into either the
      cmd_type or olinfo.  By doing this we are able to reduce most of these
      functions to either just a simple shift followed by an or in the case of
      cmd_type, or an and followed by an or in the case of olinfo.
      
      To do this I also needed to change the logic and/or drop some flags.  I
      dropped the IXGBE_TX_FLAGS_FSO and it was replaced by IXGBE_TX_FLAGS_TSO since
      the only place it was ever checked was in conjunction with IXGBE_TX_FLAGS_TSO.
      I replaced IXGBE_TX_FLAGS_TXSW with IXGBE_TX_FLAGS_CC, this way we have a
      clear point for what the flag is meant to do.  Finally the
      IXGBE_TX_FLAGS_NO_IFCS was dropped since were are already carrying the data
      for that flag in the skb.  Instead we can just check the bitflag in the skb.
      
      In order to avoid type conversion errors I also adjusted the locations
      where we were switching between CPU and little endian.
      Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
      Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      472148c3
  9. 28 Nov, 2012 1 commit
  10. 01 Nov, 2012 1 commit
  11. 29 Oct, 2012 1 commit
  12. 22 Oct, 2012 2 commits
  13. 19 Oct, 2012 1 commit
  14. 09 Oct, 2012 1 commit
  15. 15 Sep, 2012 1 commit
  16. 16 Aug, 2012 2 commits
  17. 21 Jul, 2012 2 commits
  18. 19 Jul, 2012 2 commits
  19. 18 Jul, 2012 3 commits
  20. 14 Jul, 2012 1 commit
  21. 11 Jul, 2012 3 commits
  22. 26 Jun, 2012 1 commit
  23. 14 Jun, 2012 1 commit
    • Jacob Keller's avatar
      ixgbe: Check PTP Rx timestamps via BPF filter · 1d1a79b5
      Jacob Keller authored
      
      
      This patch fixes a potential Rx timestamp deadlock that causes the Rx
      timestamping to stall indefinitely. The issue could occur when a PTP packet is
      timestamped by hardware but never reaches the Rx queue. In order to prevent a
      permanent loss of timestamping, the RXSTMP(L/H) registers have to be read to
      unlock them. (This used to only occur when a packet that was timestamped
      reached the software.) However the registers can't be read early otherwise
      there is no way to correlate them to the packet.
      
      This patch introduces a filter function which can be used to determine if a
      packet should have been timestamped. Supplied with the filter setup by the
      hwtstamp ioctl, check to make sure the PTP protocol and message type match the
      expected values. If so, then read the timestamp registers (to free them.) At
      this point check the descriptor bit, if the bit is set then we know this
      packet correlates to the timestamp stored in the RXTSTAMP registers.
      Otherwise, assume that packet was dropped by the hardware, and ignore this
      timestamp value. However, we have at least unlocked the rxtstamp registers for
      future timestamping.
      
      Due to the way the driver handles skb data, it cannot be directly accessed. In
      order to work around this, a copy of the skb data into a linear buffer is
      made. From this buffer it becomes possible to read the data correctly
      Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      1d1a79b5
  24. 10 May, 2012 1 commit