1. 12 Apr, 2011 3 commits
    • Jon Mason's avatar
      vxge: spin-lock issue · 9f9b1645
      Jon Mason authored
      In vxge_hw_vpath_close, __vxge_hw_vp_terminate memsets the vpath which
      clobbers the spin lock state, then the driver attempts to acquire the
      spin lock.  Resolve this by not zeroing the lock part of vpath struct,
      clean-up vpath locking in init, close, and fix locking hole in fw_api
      call.
      
      Issue found by Bob Picco <bpicco@redhat.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9f9b1645
    • Jon Mason's avatar
      vxge: always enable hardware time stamp · cd883a79
      Jon Mason authored
      Hardware time stamp calculation can only be enabled by the privileged
      function. Enable it always by default and simply use the ethtool
      interface to set a flag to indicate whether or not the respective
      function driver should indicate the timestamp along with the received
      packet.
      
      Also, make certain fields in vxge_hw_device_config bit-fields to reduce
      the size of the struct.
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cd883a79
    • David S. Miller's avatar
      s2io: Fix warnings due to -Wunused-but-set-variable. · d83d282b
      David S. Miller authored
      Most of these are cases where we are trying to read back a register
      after a write to ensure completion.
      
      Simply pre-fixing the readl() or readq() with "(void)" is sufficient
      because these are volatile operations and the compiler cannot eliminate
      them just because no real assignment takes place.
      
      The case of free_rxd_blk()'s assignments to "struct buffAdd *ba" is a
      real spurious assignment as this variable is completely otherwise
      unused.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      Acked-by: default avatarJon Mason <jdmason@kudzu.us>
      d83d282b
  2. 11 Apr, 2011 37 commits