1. 14 Feb, 2017 3 commits
    • Tobias Klauser's avatar
      net: make net_device members garp_port and mrp_port conditional · fb585b44
      Tobias Klauser authored
      garp_port is only used in net/802/garp.c which is only compiled with
      CONFIG_GARP enabled. Same goes for mrp_port which is only used in
      net/802/mrp.c with CONFIG_MRP enabled.
      
      Only include the two members in struct net_device if their respective
      CONFIG_* is enabled. This saves a few bytes in struct net_device in case
      CONFIG_GARP or CONFIG_MRP are not enabled.
      Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fb585b44
    • Eric Dumazet's avatar
      net: busy-poll: remove LL_FLUSH_FAILED and LL_FLUSH_BUSY · 37fabbf4
      Eric Dumazet authored
      Commit 79e7fff4 ("net: remove support for per driver
      ndo_busy_poll()") made them obsolete.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      37fabbf4
    • David S. Miller's avatar
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 417d18d3
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      40GbE Intel Wired LAN Driver Updates 2017-02-11
      
      This series contains updates to i40e and i40evf only.
      
      Jake makes a minor change to prevent a minor bit of work, if it is not
      necessary.  In the case where we do not have a client, there is no need
      to check the client params, so move the check till after we have ensured
      we have a client.  Correct a code comment which incorrectly implied
      that raw_packet buffers were freed in i40e_clean_tx_ring(), so fixed
      the code comment to better explain where memory is freed.  Reduce the
      severity and frequency of the message notifying we cleared the receive
      timestamp register, since the logic has a much better detection scheme
      that could detect a stalled receive timestamp register.  The improved
      logic was actually causing the notification message to occur more
      frequently and was giving the user a false perception that a timestamp
      event was missed for a valid packet, so reduce the severity from
      dev_warn to dev_dbg and only fire off the message when 3 or 4 of the
      RXTIME registers are stalled and get cleared within the same
      watchdog event.  Fixed a bug, where we were modifying the mac_filter
      outside a lock when handling the addition of broadcast filters.  Fix
      this by updating i40e_update_filter_state logic so that it knows to
      avoid broadcast filters, which ensures that we do not have to remove
      the filter separately and can put it back using the normal flow.
      Refactored how we add new filters to firmware to avoid a race condition
      that can occur due to removing filters from the hash temporarily.
      
      Mitch adds a sleep (without timeout) so that we wait for a reply from
      the PF before we continue, since the iWarp client cannot continue until
      the operation is completed.  Fixed up a function which could never
      return an error, to be void and cleaned up the checking of the now
      null and void return value.
      
      Scott limits the DMA sync to CPU to the actual length of the incoming
      packet, versus the syncing of the entire buffer.  Also reduces the
      receive buffer struct (by a single pointer) and align the driver to be
      more consistent with other Intel drivers with respect to packets that
      span buffers.
      
      Sudheer adds a field to track the bus number info and modified log
      statements to print bus, device and function information.
      
      Henry adds the ability to store the FEC status bits from the link up
      event.  Also adds the ethtool support for FEC capabilities and 25G
      link types.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      417d18d3
  2. 13 Feb, 2017 27 commits
  3. 12 Feb, 2017 10 commits