1. 17 1月, 2017 6 次提交
  2. 16 1月, 2017 2 次提交
  3. 15 1月, 2017 2 次提交
    • D
      Merge tag 'mac80211-next-for-davem-2017-01-13' of... · bb60b8b3
      David S. Miller 提交于
      Merge tag 'mac80211-next-for-davem-2017-01-13' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
      
      Johannes Berg says:
      
      ====================
      For 4.11, we seem to have more than in the past few releases:
       * socket owner support for connections, so when the wifi
         manager (e.g. wpa_supplicant) is killed, connections are
         torn down - wpa_supplicant is critical to managing certain
         operations, and can opt in to this where applicable
       * minstrel & minstrel_ht updates to be more efficient (time and space)
       * set wifi_acked/wifi_acked_valid for skb->destructor use in the
         kernel, which was already available to userspace
       * don't indicate new mesh peers that might be used if there's no
         room to add them
       * multicast-to-unicast support in mac80211, for better medium usage
         (since unicast frames can use *much* higher rates, by ~3 orders of
         magnitude)
       * add API to read channel (frequency) limitations from DT
       * add infrastructure to allow randomizing public action frames for
         MAC address privacy (still requires driver support)
       * many cleanups and small improvements/fixes across the board
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bb60b8b3
    • S
      cxgb4: Remove redundant memset before memcpy · ca4b5eb8
      Shyam Saini 提交于
      The region set by the call to memset, immediately overwritten by
      the subsequent call to memcpy and thus makes the  memset redundant.
      
      Also remove the memset((&info, 0, sizeof(info)) on line 398 because
      info is memcpy()'ed to before being used in the loop and it isn't
      used outside of the loop.
      Signed-off-by: NShyam Saini <mayhs11saini@gmail.com>
      Reviewed-by: NTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca4b5eb8
  4. 14 1月, 2017 23 次提交
  5. 13 1月, 2017 7 次提交
    • J
      cfg80211: Fix documentation for connect result · c88215d7
      Jouni Malinen 提交于
      The function documentation for cfg80211_connect_bss() and
      cfg80211_connect_result() was still claiming that they are used only for
      a success case while these functions can now be used to report both
      success and various failure cases. The actual use cases were already
      described in the connect() documentation.
      
      Update the function specific comments to note the failure cases and also
      describe how the special status == -1 case is used in
      cfg80211_connect_bss() to indicate a connection timeout based on the
      internal implementation in cfg80211_connect_timeout().
      Signed-off-by: NJouni Malinen <jouni@qca.qualcomm.com>
      [use tabs for indentation]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      c88215d7
    • P
      cfg80211: Specify the reason for connect timeout · 3093ebbe
      Purushottam Kushwaha 提交于
      This enhances the connect timeout API to also carry the reason for the
      timeout. These reason codes for the connect time out are represented by
      enum nl80211_timeout_reason and are passed to user space through a new
      attribute NL80211_ATTR_TIMEOUT_REASON (u32).
      Signed-off-by: NPurushottam Kushwaha <pkushwah@qti.qualcomm.com>
      Signed-off-by: NJouni Malinen <jouni@qca.qualcomm.com>
      [keep gfp_t argument last]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      3093ebbe
    • V
      cfg80211: Add support to sched scan to report better BSSs · bf95ecdb
      vamsi krishna 提交于
      Enhance sched scan to support option of finding a better BSS while in
      connected state. Firmware scans the medium and reports when it finds a
      known BSS which has better RSSI than the current connected BSS. New
      attributes to specify the relative RSSI (compared to the current BSS)
      are added to the sched scan to implement this.
      Signed-off-by: Nvamsi krishna <vamsin@qti.qualcomm.com>
      Signed-off-by: NJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      bf95ecdb
    • V
      cfg80211: Add support for randomizing TA of Public Action frames · ab5bb2d5
      vamsi krishna 提交于
      Add support to use a random local address (Address 2 = TA in transmit
      and the same address in receive functionality) for Public Action frames
      in order to improve privacy of WLAN clients. Applications fill the
      random transmit address in the frame buffer in the NL80211_CMD_FRAME
      command. This can be used only with the drivers that indicate support
      for random local address by setting the new
      NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA and/or
      NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED in ext_features.
      
      The driver needs to configure receive behavior to accept frames to the
      specified random address during the time the frame exchange is pending
      and such frames need to be acknowledged similarly to frames sent to the
      local permanent address when this random address functionality is not
      used.
      Signed-off-by: Nvamsi krishna <vamsin@qti.qualcomm.com>
      Signed-off-by: NJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      ab5bb2d5
    • J
      wext: uninline stream addition functions · 10b2eb69
      Johannes Berg 提交于
      With 78, 111 and 85 bytes respectively (on x86-64), the
      functions iwe_stream_add_event(), iwe_stream_add_point()
      and iwe_stream_add_value() really shouldn't be inlines.
      
      It appears that at least my compiler already decided
      the same, and created a single instance of each one
      of them for each file using it, but that's still a
      number of instances in the system overall, which this
      reduces.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      10b2eb69
    • E
      ipv6: sr: static percpu allocation for hmac_ring · 717ac5ce
      Eric Dumazet 提交于
      Current allocations are not NUMA aware, and lack proper
      cleanup in case of error.
      
      It is perfectly fine to use static per cpu allocations for 256 bytes
      per cpu.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: David Lebrun <david.lebrun@uclouvain.be>
      Acked-by: NDavid Lebrun <david.lebrun@uclouvain.be>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      717ac5ce
    • N
      ipmr: improve hash scalability · 8fb472c0
      Nikolay Aleksandrov 提交于
      Recently we started using ipmr with thousands of entries and easily hit
      soft lockups on smaller devices. The reason is that the hash function
      uses the high order bits from the src and dst, but those don't change in
      many common cases, also the hash table  is only 64 elements so with
      thousands it doesn't scale at all.
      This patch migrates the hash table to rhashtable, and in particular the
      rhl interface which allows for duplicate elements to be chained because
      of the MFC_PROXY support (*,G; *,*,oif cases) which allows for multiple
      duplicate entries to be added with different interfaces (IMO wrong, but
      it's been in for a long time).
      
      And here are some results from tests I've run in a VM:
       mr_table size (default, allocated for all namespaces):
        Before                    After
         49304 bytes               2400 bytes
      
       Add 65000 routes (the diff is much larger on smaller devices):
        Before                    After
         1m42s                     58s
      
       Forwarding 256 byte packets with 65000 routes (test done in a VM):
        Before                    After
         3 Mbps / ~1465 pps        122 Mbps / ~59000 pps
      
      As a bonus we no longer see the soft lockups on smaller devices which
      showed up even with 2000 entries before.
      Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8fb472c0