Skip to content
  1. Sep 07, 2019
    • Jose Abreu's avatar
      net: stmmac: selftests: Add missing checks for support of SA · 034c8fad
      Jose Abreu authored
      
      
      Add checks for support of Source Address Insertion/Replacement before
      running the test.
      
      Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      034c8fad
    • Hangbin Liu's avatar
      ipmr: remove hard code cache_resolve_queue_len limit · 0079ad8e
      Hangbin Liu authored
      This is a re-post of previous patch wrote by David Miller[1].
      
      Phil Karn reported[2] that on busy networks with lots of unresolved
      multicast routing entries, the creation of new multicast group routes
      can be extremely slow and unreliable.
      
      The reason is we hard-coded multicast route entries with unresolved source
      addresses(cache_resolve_queue_len) to 10. If some multicast route never
      resolves and the unresolved source addresses increased, there will
      be no ability to create new multicast route cache.
      
      To resolve this issue, we need either add a sysctl entry to make the
      cache_resolve_queue_len configurable, or just remove cache_resolve_queue_len
      limit directly, as we already have the socket receive queue limits of mrouted
      socket, pointed by David.
      
      >From my side, I'd perfer to remove the cache_resolve_queue_len limit instead
      of creating two more(IPv4 and IPv6 version) sysctl entry.
      
      [1] https://lkml.org/lkml/2018/7/22/11
      [2] https://lkml.org/lkml/2018/7/21/343
      
      
      
      v3: instead of remove cache_resolve_queue_len totally, let's only remove
      the hard code limit when allocate the unresolved cache, as Eric Dumazet
      suggested, so we don't need to re-count it in other places.
      
      v2: hold the mfc_unres_lock while walking the unresolved list in
      queue_count(), as Nikolay Aleksandrov remind.
      
      Reported-by: default avatarPhil Karn <karn@ka9q.net>
      Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
      Reviewed-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0079ad8e
    • David S. Miller's avatar
      Merge branch 'hv_netvsc-features' · 06be4633
      David S. Miller authored
      
      
      Haiyang Zhang says:
      
      ====================
      hv_netvsc: Enable sg as tunable, sync offload settings to VF NIC
      
      This patch set fixes an issue in SG tuning, and sync
      offload settings from synthetic NIC to VF NIC.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      06be4633
    • Haiyang Zhang's avatar
      hv_netvsc: Sync offloading features to VF NIC · 68622d07
      Haiyang Zhang authored
      
      
      VF NIC may go down then come up during host servicing events. This
      causes the VF NIC offloading feature settings to roll back to the
      defaults. This patch can synchronize features from synthetic NIC to
      the VF NIC during ndo_set_features (ethtool -K),
      and netvsc_register_vf when VF comes back after host events.
      
      Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
      Cc: Mark Bloch <markb@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      68622d07
    • Haiyang Zhang's avatar
      hv_netvsc: Allow scatter-gather feature to be tunable · b441f795
      Haiyang Zhang authored
      In a previous patch, the NETIF_F_SG was missing after the code changes.
      That caused the SG feature to be "fixed". This patch includes it into
      hw_features, so it is tunable again.
      
      Fixes: 23312a3b
      
       ("netvsc: negotiate checksum and segmentation parameters")
      Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b441f795
    • David S. Miller's avatar
      Merge tag 'mlx5-updates-2019-09-05' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 22c63d9c
      David S. Miller authored
      
      
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2019-09-05
      
      1) Allover mlx5 cleanups
      
      2) Added port congestion counters to ethtool stats:
      
      Add 3 counters per priority to ethtool using PPCNT:
        2.1) rx_prio[p]_buf_discard - the number of packets discarded by device
             due to lack of per host receive buffers
        2.2) rx_prio[p]_cong_discard - the number of packets discarded by device
             due to per host congestion
        2.3) rx_prio[p]_marked - the number of packets ECN marked by device due
             to per host congestion
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      22c63d9c
    • 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. Sep 06, 2019