Skip to content
Permalink
Jakub-Kicinski…
Switch branches/tags

Commits on Nov 18, 2021

  1. net: kunit: add a test for dev_addr_lists

    Add a KUnit test for the dev_addr API.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  2. dev_addr_list: put the first addr on the tree

    Since all netdev->dev_addr modifications go via dev_addr_mod()
    we can put it on the list. When address is change remove it
    and add it back.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  3. dev_addr: add a modification check

    netdev->dev_addr should only be modified via helpers,
    but someone may be casting off the const. Add a runtime
    check to catch abuses.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  4. net: unexport dev_addr_init() & dev_addr_flush()

    There are no module callers in-tree and it's hard to justify
    why anyone would init or flush addresses of a netdev (note
    the flush is more of a destructor, it frees netdev->dev_addr).
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  5. net: constify netdev->dev_addr

    Commit 406f42f ("net-next: When a bond have a massive amount
    of VLANs...") introduced a rbtree for faster Ethernet address look
    up. We converted all users to make modifications via appropriate
    helpers, make netdev->dev_addr const.
    
    The update helpers need to upcast from the buffer to
    struct netdev_hw_addr.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  6. ipw2200: constify address in ipw_send_adapter_address

    Add const to the address param of ipw_send_adapter_address()
    all the functions down the chain have already been changed.
    
    Not sure how I lost this in the rebase.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  7. wilc1000: copy address before calling wilc_set_mac_address

    wilc_set_mac_address() calls IO routines which don't guarantee
    the pointer won't be written to. Make a copy.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  8. mlxsw: constify address in mlxsw_sp_port_dev_addr_set

    Argument comes from netdev->dev_addr directly, it needs a const.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021
  9. net: ax88796c: don't write to netdev->dev_addr directly

    The future is here, convert the new driver as we are about
    to make netdev->dev_addr const.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski authored and intel-lab-lkp committed Nov 18, 2021

Commits on Nov 17, 2021

  1. net: add missing include in include/net/gro.h

    This is needed for some arches, as reported by Geert Uytterhoeven,
    Randy Dunlap and Stephen Rothwell
    
    Fixes: 4721031 ("net: move gro definitions to include/net/gro.h")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
    Link: https://lore.kernel.org/r/20211117100130.2368319-1-eric.dumazet@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    neebe000 authored and Jakub Kicinski committed Nov 17, 2021
  2. stmmac: fix build due to brainos in trans_start changes

    txq_trans_cond_update() takes netdev_tx_queue *nq,
    not nq->trans_start.
    
    Fixes: 5337824 ("net: annotate accesses to queue->trans_start")
    Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Link: https://lore.kernel.org/r/20211117152917.3739-1-alexandr.lobakin@intel.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    alobakin authored and Jakub Kicinski committed Nov 17, 2021
  3. Merge branch 'dev_watchdog-less-intrusive'

    Eric Dumazet says:
    
    ====================
    net: make dev_watchdog() less intrusive
    
    dev_watchdog() is used on many NIC to periodically monitor TX queues
    to detect hangs.
    
    Problem is : It stops all queues, then check them, then 'unfreeze' them.
    
    Not only this stops feeding the NIC, it also migrates all qdiscs
    to be serviced on the cpu calling netif_tx_unlock(), causing
    a potential latency artifact.
    
    With many TX queues, this is becoming more visible.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  4. net: no longer stop all TX queues in dev_watchdog()

    There is no reason for stopping all TX queues from dev_watchdog()
    
    Not only this stops feeding the NIC, it also migrates all qdiscs
    to be serviced on the cpu calling netif_tx_unlock(), causing
    a potential latency artifact.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    neebe000 authored and davem330 committed Nov 17, 2021
  5. net: do not inline netif_tx_lock()/netif_tx_unlock()

    These are not fast path, there is no point in inlining them.
    
    Also provide netif_freeze_queues()/netif_unfreeze_queues()
    so that we can use them from dev_watchdog() in the following patch.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    neebe000 authored and davem330 committed Nov 17, 2021
  6. net: annotate accesses to queue->trans_start

    In following patches, dev_watchdog() will no longer stop all queues.
    It will read queue->trans_start locklessly.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    neebe000 authored and davem330 committed Nov 17, 2021
  7. net: use an atomic_long_t for queue->trans_timeout

    tx_timeout_show() assumed dev_watchdog() would stop all
    the queues, to fetch queue->trans_timeout under protection
    of the queue->_xmit_lock.
    
    As we want to no longer disrupt transmits, we use an
    atomic_long_t instead.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Cc: david decotigny <david.decotigny@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    neebe000 authored and davem330 committed Nov 17, 2021
  8. Merge tag 'for-net-next-2021-11-16' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/bluetooth/bluetooth-next
    
    Luiz Augusto von Dentz says:
    
    ====================
    bluetooth-next pull request for net-next:
    
     - Add support for AOSP Bluetooth Quality Report
     - Enables AOSP extension for Mediatek Chip (MT7921 & MT7922)
     - Rework of HCI command execution serialization
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  9. net: ethernet: ti: cpsw: Enable PHY timestamping

    If the used PHYs also support hardware timestamping, all configuration requests
    should be forwared to the PHYs instead of being processed by the MAC driver
    itself.
    
    This enables PHY timestamping in combination with the cpsw driver.
    
    Tested with an am335x based board with two DP83640 PHYs connected to the cpsw
    switch.
    
    Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
    Acked-by: Richard Cochran <richardcochran@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    shifty91 authored and davem330 committed Nov 17, 2021
  10. Documentation: networking: net_failover: Fix documentation

    Update net_failover documentation with missing and incomplete
    details to get a proper working setup.
    
    Signed-off-by: Vasudev Kamath <vasudev@copyninja.info>
    Reviewed-by: Krishna Kumar <krikku@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    copyninja authored and davem330 committed Nov 17, 2021
  11. Merge branch 'ocelot_net-phylink'

    Russell King says:
    
    ====================
    net: ocelot_net: phylink validate implementation updates
    
    This series converts ocelot_net to fill in the supported_interfaces
    member of phylink_config, cleans up the validate() implementation,
    and then converts to phylink_generic_validate().
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  12. net: ocelot_net: use phylink_generic_validate()

    ocelot_net has no special behaviour in its validation implementation, so
    can be switched to phylink_generic_validate().
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  13. net: ocelot_net: remove interface checks in macb_validate()

    As phylink checks the interface mode against the supported_interfaces
    bitmap, we no longer need to validate the interface mode in the
    validation function. Remove this to simplify it.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  14. net: ocelot_net: populate supported_interfaces member

    Populate the phy interface mode bitmap for the MSCC Ocelot driver with
    the interface modes supported by the MAC.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  15. Merge branch 'mtk_eth_soc-phylink'

    Russell King says:
    
    ====================
    net: mtk_eth_soc: phylink validate implementation updates
    
    This series converts mtk_eth_soc to fill in the supported_interfaces
    member of phylink_config, cleans up the validate() implementation, and
    then converts to phylink_generic_validate().
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  16. net: mtk_eth_soc: use phylink_generic_validate()

    mtk_eth_soc has no special behaviour in its validation implementation,
    so can be switched to phylink_generic_validate().
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  17. net: mtk_eth_soc: drop use of phylink_helper_basex_speed()

    Now that we have a better method to select SFP interface modes, we
    no longer need to use phylink_helper_basex_speed() in a driver's
    validation function, and we can also get rid of our hack to indicate
    both 1000base-X and 2500base-X if the comphy is present to make that
    work. Remove this hack and use of phylink_helper_basex_speed().
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  18. net: mtk_eth_soc: remove interface checks in mtk_validate()

    As phylink checks the interface mode against the supported_interfaces
    bitmap, we no longer need to validate the interface mode, nor handle
    PHY_INTERFACE_MODE_NA in the validation function. Remove these to
    simplify the implementation.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  19. net: mtk_eth_soc: populate supported_interfaces member

    Populate the phy interface mode bitmap for the Mediatek driver with
    interfaces modes supported by the MAC.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  20. Merge branch 'sparx5-phylink'

    Russell King says:
    
    ====================
    net: sparx5: phylink validate implementation updates
    
    This series converts sparx5 to fill in the supported_interfaces member
    of phylink_config, cleans up the validate() implementation, and then
    converts to phylink_generic_validate().
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  21. net: sparx5: use phylink_generic_validate()

    Sparx5 has no special behaviour in its validation implementation, so can
    be switched to phylink_generic_validate().
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  22. net: sparx5: clean up sparx5_phylink_validate()

    sparx5_phylink_validate() no longer needs to check for
    PHY_INTERFACE_MODE_NA as phylink will walk the supported interface
    types to discover the link mode capabilities. Neither is it necessary
    to check the device capabilities as we will not be called for
    unsupported interface modes. Remove these checks.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  23. net: sparx5: populate supported_interfaces member

    Populate the phy_interface_t bitmap for the Microchip Sparx5 driver
    with interfaces modes supported by the MAC.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  24. Merge branch 'enetc-phylink'

    Russell King says:
    
    ====================
    net: enetc: phylink validate implementation updates
    
    This series converts enetc to fill in the supported_interfaces member
    of phylink_config, cleans up the validate() implementation, and then
    converts to phylink_generic_validate().
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Nov 17, 2021
  25. net: enetc: use phylink_generic_validate()

    enetc has no special behaviour in its validation implementation, so can
    be switched to phylink_generic_validate().
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
  26. net: enetc: remove interface checks in enetc_pl_mac_validate()

    As phylink checks the interface mode against the supported_interfaces
    bitmap, we no longer need to validate the interface mode in the
    validation function. Remove this to simplify it.
    
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Russell King (Oracle) authored and davem330 committed Nov 17, 2021
Older