1. 21 8月, 2017 3 次提交
    • G
      cxgb4/cxgbvf: Handle 32-bit fw port capabilities · c3168cab
      Ganesh Goudar 提交于
      Implement new 32-bit Firmware Port Capabilities in order to
      handle new speeds which couldn't be represented in the old 16-bit
      Firmware Port Capabilities values.
      
      Based on the original work of Casey Leedom <leedom@chelsio.com>
      Signed-off-by: NGanesh Goudar <ganeshgr@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c3168cab
    • D
      bpf: fix double free from dev_map_notification() · 274043c6
      Daniel Borkmann 提交于
      In the current code, dev_map_free() can still race with dev_map_notification().
      In dev_map_free(), we remove dtab from the list of dtabs after we purged
      all entries from it. However, we don't do xchg() with NULL or the like,
      so the entry at that point is still pointing to the device. If a unregister
      notification comes in at the same time, we therefore risk a double-free,
      since the pointer is still present in the map, and then pushed again to
      __dev_map_entry_free().
      
      All this is completely unnecessary. Just remove the dtab from the list
      right before the synchronize_rcu(), so all outstanding readers from the
      notifier list have finished by then, thus we don't need to deal with this
      corner case anymore and also wouldn't need to nullify dev entires. This is
      fine because we iterate over the map releasing all entries and therefore
      dev references anyway.
      
      Fixes: 4cc7b954 ("bpf: devmap fix mutex in rcu critical section")
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: NAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      274043c6
    • D
      Merge tag 'mlx5-updates-2017-08-17-V2' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 63bfc508
      David S. Miller 提交于
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2017-08-17
      
      Some updates for mlx5 ethernet and IPoIB device driver.
      
      Eran added the support for manage physical link state from netdevice upon
      interface open/close requests.
      
      Feras fixed the driver name showed in ethtool for IPoIB interfaces.
      Shalom Added the support for IPoIB netdevice ethtool get link settings.
      
      Gal and Eran exposed new diagnostic counters for outbound PCIe stalls and overflow
      and RX buffer fullness statistics.
      
      Code cleanups from Or Gerlitz.
      Variable types cleanup from Gal.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      63bfc508
  2. 20 8月, 2017 30 次提交
  3. 19 8月, 2017 7 次提交