1. 25 11月, 2019 16 次提交
  2. 24 11月, 2019 15 次提交
  3. 23 11月, 2019 9 次提交
    • J
      Merge branch 'sfc-ARFS-expiry-improvements' · 8dcdc952
      Jakub Kicinski 提交于
      Edward Cree says:
      
      ====================
      A series of changes to how we check filters for expiry, manage how much
       of that work to do & when, etc.
      Prompted by some pathological behaviour under heavy load, which was
      Reported-by: NDavid Ahern <dahern@digitalocean.com>
      ====================
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      8dcdc952
    • E
      sfc: do ARFS expiry work occasionally even without NAPI poll · 6fbc05e5
      Edward Cree 提交于
      If there's no traffic on a channel, its ARFS expiry work will never get
       scheduled by efx_poll() as that isn't being run.
      So make efx_filter_rfs_expire() reschedule itself to run after 30 seconds.
      Signed-off-by: NEdward Cree <ecree@solarflare.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      6fbc05e5
    • E
      sfc: add statistics for ARFS · ca70bd42
      Edward Cree 提交于
      Report the number of successful and failed insertions, and also the
       current count of filters, to aid in tuning e.g. rps_flow_cnt.
      Signed-off-by: NEdward Cree <ecree@solarflare.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      ca70bd42
    • E
      sfc: suppress MCDI errors from ARFS · 0aa6608d
      Edward Cree 提交于
      In high connection count usage, the NIC's filter table may be filled with
       sufficiently many ARFS filters that further insertions fail.  As this
       does not represent a correctness issue, do not log the resulting MCDI
       errors.  Add a debug-level message under the (by default disabled)
       rx_status category instead; and take the opportunity to do a little extra
       expiry work.
      
      Since there are now multiple workitems able to call __efx_filter_rfs_expire
       on a given channel, it is possible for them to race and thus pass quotas
       which, combined, exceed rfs_filter_count.  Thus, don't WARN_ON if we loop
       all the way around the table with quota left over.
      Signed-off-by: NEdward Cree <ecree@solarflare.com>
      Tested-by: NDavid Ahern <dahern@digitalocean.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      0aa6608d
    • E
      sfc: change ARFS expiry mechanism · 8490e75c
      Edward Cree 提交于
      The old rfs_filters_added method for determining the quota could potentially
       allow the NIC to become filled with old filters, which never get tested for
       expiry.  Instead, explicitly make expiry check work depend on the number of
       filters installed, and don't count checking slots without filters in as
       doing work.  This guarantees that each filter will be checked for expiry at
       least once every thirty seconds (assuming the channel to which it belongs is
       NAPI polling actively) regardless of fill level.
      Signed-off-by: NEdward Cree <ecree@solarflare.com>
      Tested-by: NDavid Ahern <dahern@digitalocean.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      8490e75c
    • J
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · c4f2cbd3
      Jakub Kicinski 提交于
      Jeff Kirsher says:
      
      ====================
      This series contains updates to the ice driver only.
      
      Bruce updates the driver to store the number of functions the device has
      so that it won't have to compute it when setting safe mode capabilities.
      Adds a check to adjust the reporting of capabilities for devices with
      more than 4 ports, which differ for devices with less than 4 ports.
      
      Brett adds a helper function to determine if the VF is allowed to do
      VLAN operations based on the host's VF configuration.  Also adds a new
      function that initializes VLAN stripping (enabled/disabled) for the VF
      based on the device supported capabilities.  Adds a check if the vector
      index is valid with the respect to the number of transmit and receive
      queues configured when we set coalesce settings for DCB.  Adds a check
      if the promisc_mask contains ICE_PROMISC_VLAN_RX or ICE_PROMISC_VLAN_TX
      so that VLAN 0 promiscuous rules to be removed.  Add a helper macro for
      a commonly used de-reference of a pointer to &pf->dev->pdev.
      
      Jesse fixes an issue where if an invalid virtchnl request from the VF,
      the driver would return uninitialized data to the VF from the PF stack,
      so ensure the stack variable is initialized earlier.  Add helpers to the
      virtchnl interface make the reporting of strings consistent and help
      reduce stack space.  Implements VF statistics gathering via the kernel
      ndo_get_vf_stats().
      
      Akeem ensures we disable the state flag for each VF when its resources
      are returned to the device.
      
      Tony does additional cleanup in the driver to ensure the when we
      allocate and free memory within the same function, we should not be
      using devm_* variants; use regular alloc and free functions.
      
      Henry implements code to query and set the number of channels on the
      primary VSI for a PF via ethtool.
      
      Jake cleans up needless NULL checks in ice_sched_cleanup_all().
      
      Kevin updates the firmware API version to align with current NVM images.
      
      v2: Added "Fixes:" tag to patch 5 commit description and added the use
          of netif_is_rxfh_configured() in patch 13 to see if RSS has been
          configured by the user, if so do not overwrite that configuration.
      ====================
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      c4f2cbd3
    • M
      net: inet_is_local_reserved_port() should return bool not int · 30429fba
      Maciej Żenczykowski 提交于
      Cc: Eric Dumazet <edumazet@google.com>
      Signed-off-by: NMaciej Żenczykowski <maze@google.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      30429fba
    • J
      Merge branch 'cxgb4-add-udp-segmentation-offload-support' · 091189ab
      Jakub Kicinski 提交于
      Rahul Lakkireddy says:
      
      ====================
      This series of patches add UDP Segmentation Offload (USO) supported
      by Chelsio T5/T6 NICs.
      
      Patch 1 updates the current Scatter Gather List (SGL) DMA unmap logic
      for USO requests.
      
      Patch 2 adds USO support for NIC and MQPRIO QoS offload Tx path.
      
      Patch 3 adds missing stats for MQPRIO QoS offload Tx path.
      ====================
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      091189ab
    • R
      cxgb4: add stats for MQPRIO QoS offload Tx path · 8311f0be
      Rahul Lakkireddy 提交于
      Export necessary stats for traffic flowing through MQPRIO QoS offload
      Tx path.
      
      v2:
      - No change.
      Signed-off-by: NRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      8311f0be