1. 08 11月, 2018 12 次提交
  2. 01 11月, 2018 8 次提交
    • R
      ixgbe: fix MAC anti-spoofing filter after VFLR · 6702185c
      Radoslaw Tyl 提交于
      This change resolves a driver bug where the driver is logging a
      message that says "Spoofed packets detected". This can occur on the PF
      (host) when a VF has VLAN+MACVLAN enabled and is re-started with a
      different MAC address.
      
      MAC and VLAN anti-spoofing filters are to be enabled together.
      Signed-off-by: NRadoslaw Tyl <radoslawx.tyl@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Acked-by: NPiotr Skajewski <piotrx.skajewski@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      6702185c
    • M
      i40e: Update status codes · bb58fd7e
      Mitch Williams 提交于
      Add a few new status code which will be used by the ice driver, and
      rename a few to make them more consistent. Error code are mapped to
      similar values as in i40e_status.h, so as to be compatible with older
      VF drivers not using this status enum.
      Signed-off-by: NMitch Williams <mitch.a.williams@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      bb58fd7e
    • J
      ixgbe/ixgbevf: fix XFRM_ALGO dependency · 48e01e00
      Jeff Kirsher 提交于
      Based on the original work from Arnd Bergmann.
      
      When XFRM_ALGO is not enabled, the new ixgbe IPsec code produces a
      link error:
      
      drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.o: In function `ixgbe_ipsec_vf_add_sa':
      ixgbe_ipsec.c:(.text+0x1266): undefined reference to `xfrm_aead_get_byname'
      
      Simply selecting XFRM_ALGO from here causes circular dependencies, so
      to fix it, we probably want this slightly more complex solution that is
      similar to what other drivers with XFRM offload do:
      
      A separate Kconfig symbol now controls whether we include the IPsec
      offload code. To keep the old behavior, this is left as 'default y'. The
      dependency in XFRM_OFFLOAD still causes a circular dependency but is
      not actually needed because this symbol is not user visible, so removing
      that dependency on top makes it all work.
      
      CC: Arnd Bergmann <arnd@arndb.de>
      CC: Shannon Nelson <shannon.nelson@oracle.com>
      Fixes: eda0333a ("ixgbe: add VF IPsec management")
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      48e01e00
    • J
      fm10k: bump driver version to match out-of-tree release · 35ae5414
      Jacob Keller 提交于
      The upstream and out-of-tree drivers are once again at comparable
      functionality. It's been a while since we updated the upstream driver
      version, so bump it now.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      35ae5414
    • J
      fm10k: add missing device IDs to the upstream driver · 9a1fe1e2
      Jacob Keller 提交于
      The device IDs for the Ethernet SDI Adapter devices were never added to
      the upstream driver. The IDs are already in the pci.ids database, and
      are supported by the out-of-tree driver.
      
      Add the device IDs now, so that the upstream driver can recognize and
      load these devices.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      9a1fe1e2
    • J
      fm10k: ensure completer aborts are marked as non-fatal after a resume · e330af78
      Jacob Keller 提交于
      VF drivers can trigger PCIe completer aborts any time they read a queue
      that they don't own. Even in nominal circumstances, it is not possible
      to prevent the VF driver from reading queues it doesn't own. VF drivers
      may attempt to read queues it previously owned, but which it no longer
      does due to a PF reset.
      
      Normally these completer aborts aren't an issue. However, on some
      platforms these trigger machine check errors. This is true even if we
      lower their severity from fatal to non-fatal. Indeed, we already have
      code for lowering the severity.
      
      We could attempt to mask these errors conditionally around resets, which
      is the most common time they would occur. However this would essentially
      be a race between the PF and VF drivers, and we may still occasionally
      see machine check exceptions on these strictly configured platforms.
      
      Instead, mask the errors entirely any time we resume VFs. By doing so,
      we prevent the completer aborts from being sent to the parent PCIe
      device, and thus these strict platforms will not upgrade them into
      machine check errors.
      
      Additionally, we don't lose any information by masking these errors,
      because we'll still report VFs which attempt to access queues via the
      FUM_BAD_VF_QACCESS errors.
      
      Without this change, on platforms where completer aborts cause machine
      check exceptions, the VF reading queues it doesn't own could crash the
      host system. Masking the completer abort prevents this, so we should
      mask it for good, and not just around a PCIe reset. Otherwise malicious
      or misconfigured VFs could cause the host system to crash.
      
      Because we are masking the error entirely, there is little reason to
      also keep setting the severity bit, so that code is also removed.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e330af78
    • N
      fm10k: fix SM mailbox full condition · e69e40c8
      Ngai-Mint Kwan 提交于
      Current condition will always incorrectly report a full SM mailbox if an
      IES API application is not running. Due to this, the
      "fm10k_service_task" will be infinitely queued into the driver's
      workqueue. This, in turn, will cause a "kworker" thread to report 100%
      CPU utilization and might cause "soft lockup" events or system crashes.
      
      To fix this issue, a new condition is added to determine if the SM
      mailbox is in the correct state of FM10K_STATE_OPEN before proceeding.
      In other words, an instance of the IES API must be running. If there is,
      the remainder of the flow stays the same which is to determine if the SM
      mailbox capacity has been exceeded or not and take appropriate action.
      Signed-off-by: NNgai-Mint Kwan <ngai-mint.kwan@intel.com>
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e69e40c8
    • M
      igb: shorten maximum PHC timecounter update interval · 094bf4d0
      Miroslav Lichvar 提交于
      The timecounter needs to be updated at least once per ~550 seconds in
      order to avoid a 40-bit SYSTIM timestamp to be misinterpreted as an old
      timestamp.
      
      Since commit 500462a9 ("timers: Switch to a non-cascading wheel"),
      scheduling of delayed work seems to be less accurate and a requested
      delay of 540 seconds may actually be longer than 550 seconds. Shorten
      the delay to 480 seconds to be sure the timecounter is updated in time.
      
      This fixes an issue with HW timestamps on 82580/I350/I354 being off by
      ~1100 seconds for few seconds every ~9 minutes.
      
      Cc: Jacob Keller <jacob.e.keller@intel.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NMiroslav Lichvar <mlichvar@redhat.com>
      Tested-by: NAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      094bf4d0
  3. 26 10月, 2018 1 次提交
  4. 25 10月, 2018 7 次提交
  5. 19 10月, 2018 2 次提交
  6. 18 10月, 2018 10 次提交