Skip to content
Permalink
Matteo-Croce/i…
Switch branches/tags

Commits on Apr 9, 2021

  1. net: use skb_for_each_frag() in illegal_highdma()

    Coccinelle failed with the following error:
    
     EXN: Failure("no position information") in net/core/dev.c
    
    Apply it by hand as it's trivial.
    
    Signed-off-by: Matteo Croce <mcroce@microsoft.com>
    teknoraver authored and intel-lab-lkp committed Apr 9, 2021
  2. net: use skb_for_each_frag() helper where possible

    use the new helper macro skb_for_each_frag() which allows to iterate
    through all the SKB fragments.
    
    The patch was created with Coccinelle, this was the semantic patch:
    
    @@
    struct sk_buff *skb;
    identifier i;
    statement S;
    iterator name skb_for_each_frag;
    @@
    -for (i = 0; i < skb_shinfo(skb)->nr_frags; \(++i\|i++\))
    +skb_for_each_frag(skb, i)
     S
    @@
    struct skb_shared_info *sinfo;
    struct sk_buff *skb;
    identifier i;
    statement S;
    iterator name skb_for_each_frag;
    @@
     sinfo = skb_shinfo(skb);
     ...
    -for (i = 0; i < sinfo->nr_frags; \(++i\|i++\))
    +skb_for_each_frag(skb, i)
     S
    @@
    struct sk_buff *skb;
    identifier i, num_frags;
    statement S;
    iterator name skb_for_each_frag;
    @@
     num_frags = skb_shinfo(skb)->nr_frags;
     ...
    -for (i = 0; i < num_frags; \(++i\|i++\))
    +skb_for_each_frag(skb, i)
     S
    
    Tested with an allmodconfig build.
    
    Signed-off-by: Matteo Croce <mcroce@microsoft.com>
    teknoraver authored and intel-lab-lkp committed Apr 9, 2021
  3. skbuff: add helper to walk over the fraglist

    Add an skb_for_each_frag() macro to iterate on SKB fragments.
    
    Signed-off-by: Matteo Croce <mcroce@microsoft.com>
    teknoraver authored and intel-lab-lkp committed Apr 9, 2021

Commits on Apr 8, 2021

  1. Merge tag 'for-net-next-2021-04-08' 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:
    
     - Proper support for BCM4330 and BMC4334
     - Various improvements for firmware download of Intel controllers
     - Update management interface revision to 20
     - Support for AOSP HCI vendor commands
     - Initial Virtio support
    ====================
    
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  2. Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/tnguy/next-queue
    
    Tony Nguyen says:
    
    ====================
    100GbE Intel Wired LAN Driver Updates 2021-04-08
    
    This series contains updates to ice driver only.
    
    Chinh adds retrying of sending some AQ commands when receiving EBUSY
    error.
    
    Victor modifies how nodes are added to reduce stack usage.
    
    Ani renames some variables to either follow spec naming or to be inline
    with naming in the rest of the driver. Ignores EMODE error as there are
    cases where this error is expected. Performs some cleanup such as
    removing unnecessary checks, doing variable assignments over copies, and
    removing unneeded variables. Revises some error codes returned in link
    settings to be more appropriate. He also implements support for new
    firmware option to get default link configuration which accounts for
    any needed NVM based overrides for PHY configuration. He also removes
    the rx_gro_dropped stat as the value no longer changes.
    
    Jeb removes setting specific link modes on firmwares that no longer
    require it.
    
    Brett removes unnecessary checks when adding and removing VLANs.
    
    Tony fixes a checkpatch warning for unnecessary blank line.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  3. Merge tag 'batadv-next-pullrequest-20210408' of git://git.open-mesh.o…

    …rg/linux-merge
    
    Simon Wunderlich says:
    
    ====================
    This cleanup patchset includes the following patches:
    
     - for kerneldoc in batadv_priv, by Linus Luessing
    
     - drop unused header preempt.h, by Sven Eckelmann
    
     - Fix misspelled "wont", by Sven Eckelmann
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  4. Merge branch 'net-sched-action-tests'

    Vlad Buslov says:
    
    ====================
    Additional tests for action API
    
    Add two new tests for action create/change code.
    ====================
    
    Acked-by: Cong Wang <cong.wang@bytedance.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  5. tc-testing: add simple action test to verify batch change cleanup

    Verify cleanup of failed actions batch change where second action in batch
    fails after successful init of first action.
    
    Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    vbuslov authored and davem330 committed Apr 8, 2021
  6. tc-testing: add simple action test to verify batch add cleanup

    Verify cleanup of failed actions batch add where second action in batch
    fails after successful init of first action.
    
    Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    vbuslov authored and davem330 committed Apr 8, 2021
  7. net: qed: remove unused including <linux/version.h>

    Remove including <linux/version.h> that don't need it.
    
    Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
    Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Tian Tao authored and davem330 committed Apr 8, 2021
  8. Merge branch 'hns3-pm_ops'

    Huazhong Tan says:
    
    ====================
    net: hns3: add support for pm_ops
    
    This series adds support for pm_ops in the HNS3 ethernet driver.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  9. net: hns3: add suspend and resume pm_ops

    To implement the system suspend/resume functions, the NIC driver needs
    to support:
    1. When the system enters the suspend mode, the driver needs to
    implement the suspend callback function of the NIC device. The driver
    needs to mute the device, stop all RX/TX activities of the device, and
    unmap the interrupt.
    2. When the system enters the resume mode, the driver needs to
    implement the resume callback function of the NIC device and restore
    the device to the state before suspension.
    
    When the system enters the suspend and resume mode, the NIC driver
    actually executes the PF function reset process.
    
    When the PFs are suspending/resuming, VFs also enter the suspend/resume
    state because the PFs trigger the VFs to reset, therefore no operation
    is required when the VF pci_driver is suspending or resuming.
    
    Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    zhangjiaran authored and davem330 committed Apr 8, 2021
  10. net: hns3: change flr_prepare/flr_done function names

    The flr_prepare/flr_done functions are not only used in the FLR scenario,
    but also used in the suspend/resume.
    
    Change the function names to prepare_for_reset/rebuild_for_reset, change
    the flr_prepare/flr_done to reset_prepare/reset_done in hnae3_ae_ops.
    
    Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    zhangjiaran authored and davem330 committed Apr 8, 2021
  11. Merge branch 'ionic-hwtstamp-tweaks'

    Shannon Nelson says:
    
    ====================
    ionic: hwstamp tweaks
    
    A few little changes after review comments and
    additional internal testing.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  12. ionic: extend ts_config set locking

    Make sure the configuration is locked before
    operating on it for the replay.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  13. ionic: add ts_config replay

    Split the call into ionic_lif_hwstamp_set() to have two
    separate interfaces, one from the ioctl() for changing the
    configuration and one for replaying the current configuration
    after a FW RESET.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  14. ionic: ignore EBUSY on queue start

    When starting the queues in the link-check, don't go into
    the BROKEN state if the return was EBUSY.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  15. ionic: re-start ptp after queues up

    When returning after a firmware reset, re-start the
    PTP after we've restarted the general queues.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  16. ionic: add SKBTX_IN_PROGRESS

    Set the SKBTX_IN_PROGRESS when offloading the Tx timestamp.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  17. ionic: check for valid tx_mode on SKBTX_HW_TSTAMP xmit

    Make sure the device is in a Tx offload mode before calling the
    hwstamp offload xmit.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  18. ionic: remove unnecessary compat ifdef

    We don't need to look for HAVE_HWSTAMP_TX_ONESTEP_P2P in the
    upstream kernel.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  19. ionic: fix up a couple of code style nits

    Clean up variable declarations.
    
    Signed-off-by: Shannon Nelson <snelson@pensando.io>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    emusln authored and davem330 committed Apr 8, 2021
  20. Merge branch 'marvell10g-updates'

    Marek Behún says:
    
    ====================
    net: phy: marvell10g updates
    
    Here are some updates for marvell10g PHY driver.
    
    I am still working on some more changes for this driver, but I would
    like to have at least something reviewed / applied.
    
    Changes since v3:
    - added Andrew's Reviewed-by tags
    - removed patches adding variadic-macro library and bitmap
      initialization macro - it causes warning that we are not currently
      able to fix easily. Instead the supported_interfaces bitmap is now
      initialized via a chip specific method
    - added explanation of mactype initialization to commit message of patch
      07/16
    - fixed repeated word in commit message of second to last patch
    
    Changes since v2:
    - code refactored to use an additional structure mv3310_chip describing
      mv3310 specific properties / operations for PHYs supported by this
      driver
    - added separate phy_driver structures for 88X3340 and 88E2111
    - removed 88E2180 specific code (dual-port and quad-port SXGMII modes
      are ignored for now)
    
    Changes since v1:
    - added various MACTYPEs support also for 88E21XX
    - differentiate between specific models with same PHY_ID
    - better check for compatible interface
    - print exact model
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 8, 2021
  21. MAINTAINERS: add myself as maintainer of marvell10g driver

    Add myself as maintainer of the marvell10g ethernet PHY driver, in
    addition to Russell King.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  22. net: phy: marvell10g: change module description

    This module supports not only Alaska X, but also Alaska M.
    
    Change module description appropriately.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  23. net: phy: marvell10g: differentiate 88E2110 vs 88E2111

    88E2111 is a variant of 88E2110 which does not support 5 gigabit speeds.
    
    Differentiate these variants via the match_phy_device() method, since
    they have the same PHY ID.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  24. net: phy: add constants for 2.5G and 5G speed in PCS speed register

    Add constants for 2.5G and 5G speed in PCS speed register into mdio.h.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  25. net: phy: marvell10g: fix driver name for mv88e2110

    The driver name "mv88x2110" should be instead "mv88e2110".
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  26. net: phy: marvell10g: add separate structure for 88X3340

    The 88X3340 contains 4 cores similar to 88X3310, but there is a
    difference: it does not support xaui host mode. Instead the
    corresponding MACTYPE means
      rxaui / 5gbase-r / 2500base-x / sgmii without AN
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  27. net: phy: marvell10g: support other MACTYPEs

    Currently the only "changing" MACTYPE we support is when the PHY changes
    between
      10gbase-r / 5gbase-r / 2500base-x / sgmii
    
    Add support for
      usxgmii
      xaui / 5gbase-r / 2500base-x / sgmii
      rxaui / 5gbase-r / 2500base-x / sgmii
    and also
      5gbase-r / 2500base-x / sgmii
    for 88E2110.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  28. net: phy: marvell10g: store temperature read method in chip strucutre

    Now that we have a chip structure, we can store the temperature reading
    method in this structure (OOP style).
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  29. net: phy: marvell10g: check for correct supported interface mode

    The 88E2110 does not support xaui nor rxaui modes. Check for correct
    interface mode for different chips.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  30. net: phy: marvell10g: support all rate matching modes

    Add support for all rate matching modes for 88X3310 (currently only
    10gbase-r is supported, but xaui and rxaui can also be used).
    
    Add support for rate matching for 88E2110 (on 88E2110 the MACTYPE
    register is at a different place).
    
    Currently rate matching mode is selected by strapping pins (by setting
    the MACTYPE register). There is work in progress to enable this driver
    to deduce the best MACTYPE from the knowledge of which interface modes
    are supported by the host, but this work is not finished yet.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  31. net: phy: marvell10g: add MACTYPE definitions for 88E21xx

    Add all MACTYPE definitions for 88E2110, 88E2180, 88E2111 and 88E2181.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
  32. net: phy: marvell10g: add all MACTYPE definitions for 88X33x0

    Add all MACTYPE definitions for 88X3310, 88X3310P, 88X3340 and 88X3340P.
    
    In order to have consistent naming, rename
    MV_V2_33X0_PORT_CTRL_MACTYPE_RATE_MATCH to
    MV_V2_33X0_PORT_CTRL_MACTYPE_10GBASER_RATE_MATCH.
    
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    elkablo authored and davem330 committed Apr 8, 2021
Older