1. 09 4月, 2016 3 次提交
    • J
      nfp: move link state interrupt request/free calls · 0ba40af9
      Jakub Kicinski 提交于
      We need to be able to disable the link state interrupt when
      the device is brought down.  We used to just free the IRQ
      at the beginning of .ndo_stop().  As we now move towards
      more ordered .ndo_open()/.ndo_stop() paths LSC allocation
      should be placed in the "allocate resource" section.
      
      Since the IRQ can't be freed early in .ndo_stop(), it is
      disabled instead.
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ba40af9
    • J
      nfp: correct RX buffer length calculation · ff1b68ab
      Jakub Kicinski 提交于
      When calculating the RX buffer length we need to account
      for up to 2 VLAN tags.  Rounding up to 1k is an relic of
      a distant past and can be removed.  While at it also remove
      trivial print statement.
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff1b68ab
    • D
      Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 70f767d3
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      10GbE Intel Wired LAN Driver Updates 2016-04-07
      
      This series contains updates to ixgbe and ixgbevf.
      
      This entire series (except for one patch from Alex) comes from Mark and
      is mainly to add support for our new MAC (x550em_a).
      
      So let's get Alex's patch out of the way first before we cover Mark's
      many changes.  Alex does his enable bulk free in transmit cleanup for
      ixgbe and ixgbevf, like his has done for all of our other drivers.
      
      First Mark cleans up registers that were not being used, so do some
      house cleaning.  Then to avoid casting lan_id and func fields, just
      make them u8 since they only hold small values anyways.  Found and
      fixed an issue where on read operations it could be possible to
      modify locations beyond the length passed in, so change the check
      to round up in the same way.  Cleaned up the interface for issuing
      firmware commands to use a void * instead of a u32 * which eliminates
      a number of casts.  Added support for the new MAC and provided method
      pointers and use them to access IOSF-attached devices, since the
      new MAC will also need a new access method.  Added support for SFPs
      with an external retimer and for an SGMII backplane interface.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      70f767d3
  2. 08 4月, 2016 37 次提交