1. 27 8月, 2019 26 次提交
  2. 26 8月, 2019 3 次提交
  3. 25 8月, 2019 11 次提交
    • A
      net: phy: sfp: Add labels to hwmon sensors · c1236979
      Andrew Lunn 提交于
      SFPs can report two different power values, the transmit power and the
      receive power. Add labels to make it clear which is which. Also add
      labels to the other sensors, VCC power supply, bias and module
      temperature.
      
      sensors(1) now shows:
      
      sff2-isa-0000
      Adapter: ISA adapter
      VCC:          +3.23 V
      temperature:  +33.4 C
      TX_power:    276.00 uW
      RX_power:     20.00 uW
      bias:         +0.01 A
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1236979
    • D
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · a914a841
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      100GbE Intel Wired LAN Driver Updates 2019-08-23
      
      This series contains updates to ice driver only.
      
      Dave adds logic for the necessary bits to be set in the VSI context for
      the PF_VSI and the TX_descriptors for control packets egressing the
      PF_VSI.  Updated the logic to detect both DCBx and LLDP states in the
      firmware engine to account for situations where DCBx is enabled and LLDP
      is disabled.  Fixed the driver to treat the DCBx state of "NOT_STARTED"
      as a valid state and should not assume "is_fw_lldp" true automatically.
      Since "enable-fw-lldp" flag was confusing and cumbersome, change the
      flag to "fw-lldp-agent" with a value of on or off to help clarify
      whether the LLDP agent is running or not.
      
      Brett fixes an issue where synchronize_irq() was being called from the
      host of VF's, which should not be done.
      
      Michal fixed an issue when rebuilding the DCBx configuration while in
      IEEE mode versus CEE mode, so add a check before copying the
      configuration value to ensure we are only in CEE mode.
      
      Jake fixes the PF to reject any VF request to setup head writeback since
      the support has been deprecated.
      
      Mitch adds an additional check to ensure the VF is active before sending
      out an error message that a message was unable to be sent to a
      particular VF.
      
      Chinh updates the driver to use "topology" mode when checking the PHY
      for status, since this mode provides us the current module type that is
      available.  Fixes the driver from clearing the auto_fec_enable bit which
      was blocking a user from forcing non-spec compliant FEC configurations.
      
      Amruth does a refactor on the code to first check, then assign in the
      virtual channel space.
      
      Bruce updates the driver to actually update the stats when a user runs
      the ethtool command 'ethtool -S <iface>' instead of providing a snapshot
      of the stats that maybe from a second ago.
      
      Akeem fixes up the adding/removing of VSI MAC filters for VFs, so that
      VFs cannot add/remove a filter from another VSI.  We now track the
      number of filters added right from when the VF resources get allocated
      and won't get into MAC filter mis-match issue in the switch.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a914a841
    • D
      Merge branch 's390-qeth-next' · ace4cede
      David S. Miller 提交于
      Julian Wiedmann says:
      
      ====================
      s390/qeth: updates 2019-08-23
      
      please apply one more round of qeth patches. These implement support for
      a bunch of TX-related features - namely TX NAPI, BQL and xmit_more.
      
      Note that this includes two qdio patches which lay the necessary
      groundwork, and have been acked by Vasily.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ace4cede
    • J
      s390/qeth: add xmit_more support for IQD devices · 9549d70a
      Julian Wiedmann 提交于
      IQD devices offer limited support for bulking: all frames in a TX buffer
      need to have the same target. qeth_iqd_may_bulk() implements this
      constraint, and allows us to defer the TX doorbell until
      (a) the buffer is full (since each buffer needs its own doorbell), or
      (b) the entire TX queue is full, or
      (b) we reached the BQL limit.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9549d70a
    • J
      s390/qeth: add BQL support for IQD devices · 96bd6c94
      Julian Wiedmann 提交于
      Each TX buffer may contain multiple skbs. So just accumulate the sent
      byte count in the buffer struct, and later use the same count when
      completing the buffer.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      96bd6c94
    • J
      s390/qeth: when in TX NAPI mode, use napi_consume_skb() · 85e537d8
      Julian Wiedmann 提交于
      This allows the stack to bulk-free our TX-completed skbs.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      85e537d8
    • J
      s390/qeth: add TX NAPI support for IQD devices · e53edf74
      Julian Wiedmann 提交于
      Due to their large MTU and potentially low utilization of TX buffers,
      IQD devices in particular require fast TX recycling. This makes them
      a prime candidate for a TX NAPI path in qeth.
      
      qeth_tx_poll() uses the recently introduced qdio_inspect_queue() helper
      to poll the TX queue for completed buffers. To avoid hogging the CPU for
      too long, we yield to the stack after completing an entire queue's worth
      of buffers.
      While IQD is expected to transfer its buffers synchronously (and thus
      doesn't support TX interrupts), a timer covers for the odd case where a
      TX buffer doesn't complete synchronously. Currently this timer should
      only ever fire for
      (1) the mcast queue,
      (2) the occasional race, where the NAPI poll code observes an update to
          queue->used_buffers while the TX doorbell hasn't been issued yet.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e53edf74
    • J
      s390/qeth: collect accurate TX statistics · eeac0e20
      Julian Wiedmann 提交于
      This consolidates the SW statistics code, and improves it to
      (1) account for the header overhead of each segment on a TSO skb,
      (2) count dangling packets as in-error (during eg. shutdown), and
      (3) only count offloads when the skb was successfully transmitted.
      
      We also count each segment of an TSO skb as one packet - except for
      tx_dropped, to be consistent with dev->tx_dropped.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eeac0e20
    • J
      s390/qdio: let drivers opt-out from Output Queue scanning · 313dc689
      Julian Wiedmann 提交于
      If a driver wants to use the new Output Queue poll code, then the qdio
      layer must disable its internal Queue scanning. Let the driver select
      this mode by passing a special scan_threshold of 0.
      
      As the scan_threshold is the same for all Output Queues, also move it
      into the main qdio_irq struct. This allows for fast opt-out checking, a
      driver is expected to operate either _all_ or none of its Output Queues
      in polling mode.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Acked-by: NVasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      313dc689
    • J
      s390/qdio: enable drivers to poll for Output completions · 7c47f5af
      Julian Wiedmann 提交于
      While commit d36deae7 ("qdio: extend API to allow polling") enhanced
      the qdio layer so that drivers can poll their Input Queues, we don't
      have the corresponding infrastructure for Output Queues yet.
      
      Factor out a helper that scans a single QDIO Queue, so that qeth can
      implement TX NAPI on top of it.
      While doing so, remove the duplicated tracking of the next-to-scan index
      (q->first_to_check vs q->first_to_kick) in this code path.
      
      qdio_handle_aobs() needs to move slightly upwards in the code hierarchy,
      so that it's still called from the polling path.
      Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
      Acked-by: NVasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7c47f5af
    • M
      bnxt_en: Fix allocation of zero statistics block size regression. · fbbdbc64
      Michael Chan 提交于
      Recent commit added logic to determine the appropriate statistics block
      size to allocate and the size is stored in bp->hw_ring_stats_size.  But
      if the firmware spec is older than 1.6.0, it is 0 and not initialized.
      This causes the allocation to fail with size 0 and bnxt_open() to
      abort.  Fix it by always initializing bp->hw_ring_stats_size to the
      legacy default size value.
      
      Fixes: 4e748506 ("bnxt_en: Allocate the larger per-ring statistics block for 57500 chips.")
      Reported-by: NJonathan Lemon <jonathan.lemon@gmail.com>
      Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
      Tested-by: NJonathan Lemon <jonathan.lemon@gmail.com>
      Acked-by: NJonathan Lemon <jonathan.lemon@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fbbdbc64