1. 10 4月, 2015 13 次提交
    • D
      Merge branch 'xgbe-next' · 2e909523
      David S. Miller 提交于
      Tom Lendacky says:
      
      ====================
      amd-xgbe: AMD XGBE driver updates 2015-04-09
      
      The following series of patches includes functional updates and changes
      to the driver.
      
      - Allow ethtool rx-frames coalescing to be changed while the device is up
      - Consolidate initialization routine into the init function
      - Add support for the TX watchdog timeout
      
      This patch series is based on net-next.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e909523
    • L
      amd-xgbe: Add support for the netdev Tx watchdog · a8373f1a
      Lendacky, Thomas 提交于
      Add support to be able to detect a hung Tx task by adding the netdev
      ndo_tx_timeout function callback. Do not set the watchdog_timeo value
      so as to use the system default time (currently 5 seconds).
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a8373f1a
    • L
      amd-xgbe: Move Rx mode configuration into init · b876382b
      Lendacky, Thomas 提交于
      Currently a call to configure the Rx mode (promiscuous mode, all
      multicast mode, etc.) is made in xgbe_start separate from the xgbe_init
      function. This call to set the Rx mode should be part of the xgbe_init
      function so that calls to the init function don't have to be preceded
      with calls to configure the Rx mode.
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b876382b
    • L
      amd-xgbe: Allow rx-frames coalescing to be changed anytime · 8dee19e6
      Lendacky, Thomas 提交于
      Currently the device must be down in order to update the rx-frames
      coalescing setting because the interrupt indicator is set in the
      descriptor data during initialization. Allow this setting to be changed
      while the device is up by moving the interrupt decision into the
      descriptor reset function and base the decision off of the supplied
      descriptor index value.
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8dee19e6
    • H
      net: Pass VLAN ID to rtnl_fdb_notify. · 1e53d5bb
      Hubert Sokolowski 提交于
      When an FDB entry is added or deleted the information about VLAN
      is not passed to listening applications like 'bridge monitor fdb'.
      With this patch VLAN ID is passed if it was set in the original
      netlink message.
      
      Also remove an unused bdev variable.
      Signed-off-by: NHubert Sokolowski <hubert.sokolowski@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e53d5bb
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · ca69d710
      David S. Miller 提交于
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for your net-next tree.
      They are:
      
      * nf_tables set timeout infrastructure from Patrick Mchardy.
      
      1) Add support for set timeout support.
      
      2) Add support for set element timeouts using the new set extension
         infrastructure.
      
      4) Add garbage collection helper functions to get rid of stale elements.
         Elements are accumulated in a batch that are asynchronously released
         via RCU when the batch is full.
      
      5) Add garbage collection synchronization helpers. This introduces a new
         element busy bit to address concurrent access from the netlink API and the
         garbage collector.
      
      5) Add timeout support for the nft_hash set implementation. The garbage
         collector peridically checks for stale elements from the workqueue.
      
      * iptables/nftables cgroup fixes:
      
      6) Ignore non full-socket objects from the input path, otherwise cgroup
         match may crash, from Daniel Borkmann.
      
      7) Fix cgroup in nf_tables.
      
      8) Save some cycles from xt_socket by skipping packet header parsing when
         skb->sk is already set because of early demux. Also from Daniel.
      
      * br_netfilter updates from Florian Westphal.
      
      9) Save frag_max_size and restore it from the forward path too.
      
      10) Use a per-cpu area to restore the original source MAC address when traffic
          is DNAT'ed.
      
      11) Add helper functions to access physical devices.
      
      12) Use these new physdev helper function from xt_physdev.
      
      13) Add another nf_bridge_info_get() helper function to fetch the br_netfilter
          state information.
      
      14) Annotate original layer 2 protocol number in nf_bridge info, instead of
          using kludgy flags.
      
      15) Also annotate the pkttype mangling when the packet travels back and forth
          from the IP to the bridge layer, instead of using a flag.
      
      * More nf_tables set enhancement from Patrick:
      
      16) Fix possible usage of set variant that doesn't support timeouts.
      
      17) Avoid spurious "set is full" errors from Netlink API when there are pending
          stale elements scheduled to be released.
      
      18) Restrict loop checks to set maps.
      
      19) Add support for dynamic set updates from the packet path.
      
      20) Add support to store optional user data (eg. comments) per set element.
      
      BTW, I have also pulled net-next into nf-next to anticipate the conflict
      resolution between your okfn() signature changes and Florian's br_netfilter
      updates.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca69d710
    • D
      Merge tag 'wireless-drivers-next-for-davem-2015-04-09' of... · 3ab1a30f
      David S. Miller 提交于
      Merge tag 'wireless-drivers-next-for-davem-2015-04-09' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
      
      Kalle Valo says:
      
      ====================
      Major changes:
      
      iwlwifi:
      
      * some more work on LAR
      * fixes for UMAC scan
      * more work on debugging framework
      * more work for 8000 devices
      * cleanups and small bugfixes
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ab1a30f
    • D
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next · 9399bdcb
      David S. Miller 提交于
      Steffen Klassert says:
      
      ====================
      pull request (net-next): ipsec-next 2015-04-09
      
      1) Prohibit the use/abuse of the xfrm netlink interface on
         32/64 bit compatibility tasks. We need a full compat
         layer before we can allow this. From Fan Du.
      
      Please pull or let me know if there are problems.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9399bdcb
    • D
      Merge branch 'dma_rmb_wmb' · 6fb8c381
      David S. Miller 提交于
      Alexander Duyck says:
      
      ====================
      Replace wmb()/rmb() with dma_wmb()/dma_rmb() where appropriate, round 2
      
      More cleanup of drivers in order to start making use of dma_rmb and dma_wmb
      calls.  This is another pass of what I would consider to be low hanging
      fruit.  There may be other opportunities to make use of the barriers in the
      Mellanox and Chelsio drivers but I didn't want to risk meddling with code I
      was not completely familiar with so I am leaving that for future work.
      
      I have revisited the Mellanox driver changes.  This time around I went only
      for the sections with a clearly defined pattern.  For dma_wmb I used it
      between accesses of the descriptor bits followed by owner or size.  For
      dma_rmb I used it to replace rmb following a read of the ownership bit in
      the descriptor.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6fb8c381
    • A
      e100: Use dma_rmb/wmb where appropriate · c335869f
      Alexander Duyck 提交于
      Reduce the CPU overhead for transmit and receive by using lightweight dma_
      barriers instead of full barriers where they are applicable.
      
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@redhat.com>
      Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c335869f
    • A
      i40e/i40evf: Use dma_rmb where appropriate · 67317166
      Alexander Duyck 提交于
      Update i40e and i40evf to use dma_rmb.  This should improve performance by
      decreasing the barrier overhead on strong ordered architectures.
      
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@redhat.com>
      Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      67317166
    • A
      mlx4/mlx5: Use dma_wmb/rmb where appropriate · 12b3375f
      Alexander Duyck 提交于
      This patch should help to improve the performance of the mlx4 and mlx5 on a
      number of architectures.  For example, on x86 the dma_wmb/rmb equates out
      to a barrer() call as the architecture is already strong ordered, and on
      PowerPC the call works out to a lwsync which is significantly less expensive
      than the sync call that was being used for wmb.
      
      I placed the new barriers between any spots that seemed to be trying to
      order memory/memory reads or writes, if there are any spots that involved
      MMIO I left the existing wmb in place as the new barriers cannot order
      transactions between coherent and non-coherent memories.
      
      v2: Reduced the replacments to just the spots where I could clearly
          identify the usage pattern.
      
      Cc: Amir Vadai <amirv@mellanox.com>
      Cc: Ido Shamay <idos@mellanox.com>
      Cc: Eli Cohen <eli@mellanox.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      12b3375f
    • A
      cxgb3/4/4vf: Update drivers to use dma_rmb/wmb where appropriate · 019be1cf
      Alexander Duyck 提交于
      Update the Chelsio Ethernet drivers to use the dma_rmb/wmb calls instead of
      the full barriers in order to improve performance.
      
      Cc: Santosh Raspatur <santosh@chelsio.com>
      Cc: Hariprasad S <hariprasad@chelsio.com>
      Cc: Casey Leedom <leedom@chelsio.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      019be1cf
  2. 09 4月, 2015 27 次提交