1. 24 8月, 2017 2 次提交
    • M
      tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsg · 98aaa913
      Mike Maloney 提交于
      When SOF_TIMESTAMPING_RX_SOFTWARE is enabled for tcp sockets, return the
      timestamp corresponding to the highest sequence number data returned.
      
      Previously the skb->tstamp is overwritten when a TCP packet is placed
      in the out of order queue.  While the packet is in the ooo queue, save the
      timestamp in the TCB_SKB_CB.  This space is shared with the gso_*
      options which are only used on the tx path, and a previously unused 4
      byte hole.
      
      When skbs are coalesced either in the sk_receive_queue or the
      out_of_order_queue always choose the timestamp of the appended skb to
      maintain the invariant of returning the timestamp of the last byte in
      the recvmsg buffer.
      Signed-off-by: NMike Maloney <maloney@google.com>
      Acked-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      98aaa913
    • F
      liquidio: change manner of detecting whether or not NIC firmware is loaded · b2854772
      Felix Manlunas 提交于
      In the NIC firmware, the 1-bit flag indicating "firmware is loaded" moved
      from SLI_SCRATCH_1 to SLI_SCRATCH_2 (these are Octeon general-purpose
      scratch registers).  Make the PF driver conform to this change.
      
      Remove code that sets the "firmware is loaded" flag because it's now the
      firmware's job to do that.
      
      In the code that detects whether or not the firmware is loaded, don't just
      rely on checking the "firmware is loaded" flag because that may cause a
      rare false negative.  Add code that deduces whether or not the firmware is
      loaded; that will never give a false negative.
      
      Also bump up driver version to match newer NIC firmware.
      Signed-off-by: NFelix Manlunas <felix.manlunas@cavium.com>
      Signed-off-by: NDerek Chickles <derek.chickles@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2854772
  2. 23 8月, 2017 38 次提交