1. 24 Feb, 2014 7 commits
    • David S. Miller's avatar
      Merge branch 'mlx4' · a1991c74
      David S. Miller authored
      Amir Vadai says:
      
      ====================
      net/mlx4: Mellanox driver update 01-01-2014
      
      This small patchset has a fix to a bogus usage of
      netif_get_num_default_rss_queues() in mlx4_en driver.
      
      Changes from V1:
      - Removed affinity_hint patch, to make it a generic instead of mlx specific
      
      Changes from V0:
      - Instead of reverting the netif_get_num_default_rss_queues() in mlx4_en,
        fixing it to limit the actual number of receive queues instead of limiting
        the number of IRQ's.
      
      Patchset was applied and tested against commit: cb6e926 "ipv6:fix checkpatch
      errors with assignment in if condition"
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a1991c74
    • Ido Shamay's avatar
      net/mlx4: Fix limiting number of IRQ's instead of RSS queues · bb2146bc
      Ido Shamay authored
      This fix a performance bug introduced by commit 90b1ebe7 "mlx4: set
      maximal number of default RSS queues", which limits the numbers of IRQs
      opened by core module.
      The limit should be on the number of queues in the indirection table -
      rx_rings, and not on the number of IRQ's. Also, limiting on mlx4_core
      initialization instead of in mlx4_en, prevented using "ethtool -L" to
      utilize all the CPU's, when performance mode is prefered, since limiting
      this number to 8 reduces overall packet rate by 15%-50% in multiple TCP
      streams applications.
      
      For example, after running ethtool -L <ethx> rx 16
      
                Packet rate
      Before the fix  897799
      After the fix   1142070
      
      Results were obtained using netperf:
      
      S=200 ; ( for i in $(seq 1 $S) ; do ( \
        netperf -H 11.7.13.55 -t TCP_RR -l 30 &) ; \
        wait ; done | grep "1        1" | awk '{SUM+=$6} END {print SUM}' )
      
      CC: Yuval Mintz <yuvalmin@broadcom.com>
      Signed-off-by: default avatarIdo Shamay <idos@mellanox.com>
      Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bb2146bc
    • Ido Shamay's avatar
      net/mlx4: Set number of RX rings in a utility function · 02512482
      Ido Shamay authored
      mlx4_en_add() is too long.
      Moving set number of RX rings to a utiltity function to improve
      readability and modulization of the code.
      Signed-off-by: default avatarIdo Shamay <idos@mellanox.com>
      Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      02512482
    • dingtianhong's avatar
      bonding: remove no longer needed lock for bond_xxx_info_query() · 7a4ddcd9
      dingtianhong authored
      The bond_xxx_info_query() was already in RTNL, so no need to use
      bond lock to protect the bond slave list, so remove it.
      
      Cc: Jay Vosburgh <fubar@us.ibm.com>
      Cc: Veaceslav Falico <vfalico@redhat.com>
      Cc: Andy Gospodarek <andy@greyhouse.net>
      Signed-off-by: default avatarDing Tianhong <dingtianhong@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7a4ddcd9
    • dingtianhong's avatar
      bonding: use rcu_dereference() to access curr_active_slave · 4335d60e
      dingtianhong authored
      The bond_info_show_master already in RCU read-side critical section,
      and the we access curr_active_slave without the curr_slave_lock, we
      could not sure whether the curr_active_slave will be changed during
      the processing, so use RCU to protected the pointer.
      
      Cc: Jay Vosburgh <fubar@us.ibm.com>
      Cc: Veaceslav Falico <vfalico@redhat.com>
      Cc: Andy Gospodarek <andy@greyhouse.net>
      Signed-off-by: default avatarDing Tianhong <dingtianhong@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4335d60e
    • dingtianhong's avatar
      bonding: netpoll: remove unwanted slave_dev_support_netpoll() · 82741808
      dingtianhong authored
      The __netpoll_setup() will check the slave's flag and ndo_poll_controller just
      like the slave_dev_support_netpoll() does, and slave_dev_support_netpoll() was
      not used by any place, so remove it.
      
      Cc: Jay Vosburgh <fubar@us.ibm.com>
      Cc: Veaceslav Falico <vfalico@redhat.com>
      Cc: Andy Gospodarek <andy@greyhouse.net>
      Signed-off-by: default avatarDing Tianhong <dingtianhong@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      82741808
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next · 1f5a7407
      David S. Miller authored
      Steffen Klassert says:
      
      ====================
      1) Introduce skb_to_sgvec_nomark function to add further data to the sg list
         without calling sg_unmark_end first. Needed to add extended sequence
         number informations. From Fan Du.
      
      2) Add IPsec extended sequence numbers support to the Authentication Header
         protocol for ipv4 and ipv6. From Fan Du.
      
      3) Make the IPsec flowcache namespace aware, from Fan Du.
      
      4) Avoid creating temporary SA for every packet when no key manager is
         registered. From Horia Geanta.
      
      5) Support filtering of SA dumps to show only the SAs that match a
         given filter. From Nicolas Dichtel.
      
      6) Remove caching of xfrm_policy_sk_bundles. The cached socket policy bundles
         are never used, instead we create a new cache entry whenever xfrm_lookup()
         is called on a socket policy. Most protocols cache the used routes to the
         socket, so this caching is not needed.
      
      7)  Fix a forgotten SADB_X_EXT_FILTER length check in pfkey, from Nicolas
          Dichtel.
      
      8) Cleanup error handling of xfrm_state_clone.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1f5a7407
  2. 21 Feb, 2014 17 commits
  3. 20 Feb, 2014 4 commits
  4. 19 Feb, 2014 12 commits