1. 14 2月, 2017 4 次提交
    • T
      net: make net_device members garp_port and mrp_port conditional · fb585b44
      Tobias Klauser 提交于
      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: NTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fb585b44
    • E
      net: busy-poll: remove LL_FLUSH_FAILED and LL_FLUSH_BUSY · 37fabbf4
      Eric Dumazet 提交于
      Commit 79e7fff4 ("net: remove support for per driver
      ndo_busy_poll()") made them obsolete.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      37fabbf4
    • D
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 417d18d3
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      417d18d3
    • P
      net:ethernet:aquantia: Add 2500/5000 mbit link modes support. · 8f9000a5
      Pavel Belous 提交于
      Using new link mode indices instead deprecated SUPPORTED_/ADVERTISED_
      macro.
      
      Added indication for 2500 and 5000mbit link modes (AQtion adapter already
      supports these speeds).
      Signed-off-by: NPavel Belous <pavel.belous@aquantia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f9000a5
  2. 13 2月, 2017 26 次提交
  3. 12 2月, 2017 10 次提交