1. 07 Sep, 2019 7 commits
    • Eric Dumazet's avatar
      tcp: ulp: fix possible crash in tcp_diag_get_aux_size() · b58662a5
      Eric Dumazet authored
      tcp_diag_get_aux_size() can be called with sockets in any state.
      
      icsk_ulp_ops is only present for full sockets.
      
      For SYN_RECV or TIME_WAIT ones we would access garbage.
      
      Fixes: 61723b39 ("tcp: ulp: add functions to dump ulp-specific information")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reported-by: default avatarLuke Hsiao <lukehsiao@google.com>
      Reported-by: default avatarNeal Cardwell <ncardwell@google.com>
      Cc: Davide Caratti <dcaratti@redhat.com>
      Acked-by: default avatarDavide Caratti <dcaratti@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b58662a5
    • Jiri Pirko's avatar
      net: fib_notifier: move fib_notifier_ops from struct net into per-net struct · 3dd97a08
      Jiri Pirko authored
      No need for fib_notifier_ops to be in struct net. It is used only by
      fib_notifier as a private data. Use net_generic to introduce per-net
      fib_notifier struct and move fib_notifier_ops there.
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3dd97a08
    • zhong jiang's avatar
      ethernet: micrel: Use DIV_ROUND_CLOSEST directly to make it readable · 9b789f47
      zhong jiang authored
      The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
      but is perhaps more readable.
      Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9b789f47
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · b8f6a0ee
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for net-next:
      
      1) Add nft_reg_store64() and nft_reg_load64() helpers, from Ander Juaristi.
      
      2) Time matching support, also from Ander Juaristi.
      
      3) VLAN support for nfnetlink_log, from Michael Braun.
      
      4) Support for set element deletions from the packet path, also from Ander.
      
      5) Remove __read_mostly from conntrack spinlock, from Li RongQing.
      
      6) Support for updating stateful objects, this also includes the initial
         client for this infrastructure: the quota extension. A follow up fix
         for the control plane also comes in this batch. Patches from
         Fernando Fernandez Mancera.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b8f6a0ee
    • David S. Miller's avatar
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 6938843d
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      100GbE Intel Wired LAN Driver Updates 2019-09-05
      
      This series contains updates to ice driver.
      
      Brett fixes the setting of num_q_vectors by using the maximum number
      between the allocated transmit and receive queues.
      
      Anirudh simplifies the code to use a helper function to return the main
      VSI, which is the first element in the pf->vsi array.  Adds a pointer
      check to prevent a NULL pointer dereference.  Adds a check to ensure we
      do not initialize DCB on devices that are not DCB capable.  Does some
      housekeeping on the code to remove unnecessary indirection and reduce
      the PF structure by removing elements that are not needed since the
      values they were storing can be readily gotten from
      ice_get_avail_*_count()'s.  Updates the printed strings to make it
      easier to search the logs for driver capabilities.
      
      Jesse cleans up unnecessary function arguments.  Updated the code to use
      prefetch() to add some efficiency to the driver to avoid a cache miss.
      Did some housekeeping on the code to remove the configurable transmit
      work limit via ethtool which ended up creating performance overhead.
      Made additional performance enhancements by updating the driver to start
      out with a reasonable number of descriptors by changing the default to
      2048.
      
      Mitch fixes the reset logic for VFs by clearing VF_MBX_ARQLEN register
      when the source of the reset is not PFR.
      
      Lukasz updates the driver to include a similar fix for the i40e driver
      by reporting link down for VF's when the PF queues are not enabled.
      
      Akeem updates the driver to report the VF link status once we get VF
      resources so that we can reflect the link status similarly to how the PF
      reports link speed.
      
      Ashish updates the transmit context structure based on recent changes to
      the hardware specification.
      
      Dave updates the DCB logic to allow a delayed registration for MIB
      change events so that the driver is not accepting events before it is
      ready for them.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6938843d
    • David S. Miller's avatar
      Merge tag 'wireless-drivers-next-for-davem-2019-09-07' of... · 742ca781
      David S. Miller authored
      Merge tag 'wireless-drivers-next-for-davem-2019-09-07' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
      
      Kalle Valo says:
      
      ====================
      wireless-drivers-next patches for 5.4
      
      Second set of patches for 5.4. Lots of changes for iwlwifi and mt76,
      but also smaller changes to other drivers.
      
      Major changes:
      
      iwlwifi
      
      * remove broken and unused runtime power management mode for PCIe
        devices, removes IWLWIFI_PCIE_RTPM Kconfig option as well
      
      * support new ACPI value for per-platform antenna gain
      
      * support for single antenna diversity
      
      * support for new WoWLAN FW API
      
      brcmfmac
      
      * add reset debugfs file for testing firmware restart
      
      mt76
      
      * DFS pattern detector for mt7615 (DFS channels not enabled yet)
      
      * Channel Switch Announcement (CSA) support for mt7615
      
      * new device support for mt76x0
      
      * support for more ciphers in mt7615
      
      * smart carrier sense on mt7615
      
      * survey support on mt7615
      
      * multiple interfaces on mt76x02u
      
      rtw88
      
      * enable MSI interrupt
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      742ca781
    • Kalle Valo's avatar
      Merge tag 'iwlwifi-next-for-kalle-2019-09-06' of... · 67e974c3
      Kalle Valo authored
      Merge tag 'iwlwifi-next-for-kalle-2019-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
      
      Patches intended for v5.4
      
      * Remove (broken) d0i3 support;
      * Debug infrastructure work continues;
      * Bump support FW API version to 50;
      * Fix for the SN value in certain suspend/resume situations;
      * Some work on new FW scan APIs;
      * Work on LTR FW APIs;
      * New FW channel-switch support;
      * Support new ACPI value for per-platform antenna gain;
      * Support for single antenna diversity;
      * Support for new WoWLAN FW API;
      * Initial refactoring of the device selection code;
      * A bunch of clean-ups;
      * Other small fixes and improvements;
      67e974c3
  2. 06 Sep, 2019 33 commits