Skip to content
Permalink
Andreas-Roesel…
Switch branches/tags

Commits on Mar 14, 2021

  1. icmp: add response to RFC 8335 PROBE messages

    Modify the icmp_rcv function to check PROBE messages and call icmp_echo
    if a PROBE request is detected.
    
    Modify the existing icmp_echo function to respond ot both ping and PROBE
    requests.
    
    This was tested using a custom modification to the iputils package and
    wireshark. It supports IPV4 probing by name, ifindex, and probing by
    both IPV4 and IPV6 addresses. It currently does not support responding
    to probes off the proxy node (see RFC 8335 Section 2).
    
    Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
    aroeseler authored and intel-lab-lkp committed Mar 14, 2021
  2. net: add support for sending RFC 8335 PROBE messages

    Modify the ping_supported function to support PROBE message types. This
    allows tools such as the ping command in the iputils package to be
    modified to send PROBE requests through the existing framework for
    sending ping requests.
    
    Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
    aroeseler authored and intel-lab-lkp committed Mar 14, 2021
  3. net: add sysctl for enabling RFC 8335 PROBE messages

    Section 8 of RFC 8335 specifies potential security concerns of
    responding to PROBE requests, and states that nodes that support PROBE
    functionality MUST be able to enable/disable responses and that
    responses MUST be disabled by default
    
    Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
    aroeseler authored and intel-lab-lkp committed Mar 14, 2021
  4. ICMPV6: add support for RFC 8335 PROBE

    Add definitions for the ICMPV6 type of Extended Echo Request and
    Extended Echo Reply, as defined by sections 2 and 3 of RFC 8335.
    
    Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
    aroeseler authored and intel-lab-lkp committed Mar 14, 2021
  5. icmp: add support for RFC 8335 PROBE

    Add definitions for PROBE ICMP types and codes.
    
    Add AFI definitions for IP and IPV6 as specified by IANA
    
    Add a struct to represent the additional header when probing by IP
    address (ctype == 3) for use in parsing incoming PROBE messages
    
    Add a struct to represent the entire Interface Identification Object
    (IIO) section of an incoming PROBE packet
    
    Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
    aroeseler authored and intel-lab-lkp committed Mar 14, 2021
  6. docs: net: add missing devlink health cmd - trigger

    Documentation is missing and it's not very clear what
    this callback is for - presumably testing the recovery?
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Jakub Kicinski authored and davem330 committed Mar 14, 2021
  7. docs: net: tweak devlink health documentation

    Minor tweaks and improvement of wording about the diagnose callback.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Jakub Kicinski authored and davem330 committed Mar 14, 2021
  8. net: stmmac: Set FIFO sizes for ipq806x

    Commit eaf4fac ("net: stmmac: Do not accept invalid MTU values")
    started using the TX FIFO size to verify what counts as a valid MTU
    request for the stmmac driver.  This is unset for the ipq806x variant.
    Looking at older patches for this it seems the RX + TXs buffers can be
    up to 8k, so set appropriately.
    
    (I sent this as an RFC patch in June last year, but received no replies.
    I've been running with this on my hardware (a MikroTik RB3011) since
    then with larger MTUs to support both the internal qca8k switch and
    VLANs with no problems. Without the patch it's impossible to set the
    larger MTU required to support this.)
    
    Signed-off-by: Jonathan McDowell <noodles@earth.li>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    u1f35c authored and davem330 committed Mar 14, 2021
  9. drivers: net: vxlan.c: Fix declaration issue

    Added a blank line after structure declaration.
    This is done to maintain code uniformity.
    
    Signed-off-by: Sanjana Srinidhi <sanjanasrinidhi1810@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Sanjana-Srinidhi authored and davem330 committed Mar 14, 2021
  10. net: ethernet: marvell: Fixed typo in the file sky2.c

    s/calclation/calculation/
    
    Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
    Acked-by: Randy Dunlap <rdunlap@infradead.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    unixbhaskar authored and davem330 committed Mar 14, 2021

Commits on Mar 13, 2021

  1. Merge branch 'dsa-hewllcreek-dumps'

    Kurt Kanzenbach says:
    
    ====================
    net: dsa: hellcreek: Add support for dumping tables
    
    add support for dumping the VLAN and FDB table via devlink. As the driver uses
    internal VLANs and static FDB entries, this is a useful debugging feature.
    
    Changes since v1:
    
     * Drop memory reporting as there are better APIs to expose this
     * Move comment to VLAN patch
    
    Previous versions:
    
     * https://lkml.kernel.org/netdev/20210311175344.3084-1-kurt@kmk-computers.de/
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  2. net: dsa: hellcreek: Add devlink FDB region

    Allow to dump the FDB table via devlink. This is a useful debugging feature.
    
    Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    shifty91 authored and davem330 committed Mar 13, 2021
  3. net: dsa: hellcreek: Move common code to helper

    There are two functions which need to populate fdb entries. Move that to a
    helper function.
    
    Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    shifty91 authored and davem330 committed Mar 13, 2021
  4. net: dsa: hellcreek: Use boolean value

    hellcreek_select_vlan() takes a boolean instead of an integer.
    So, use false accordingly.
    
    Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    shifty91 authored and davem330 committed Mar 13, 2021
  5. net: dsa: hellcreek: Add devlink VLAN region

    Allow to dump the VLAN table via devlink. This especially useful, because the
    driver internally leverages VLANs for the port separation. These are not visible
    via the bridge utility.
    
    Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
    Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    shifty91 authored and davem330 committed Mar 13, 2021
  6. Merge tag 'batadv-next-pullrequest-20210312' of git://git.open-mesh.o…

    …rg/linux-merge
    
    Simon Wunderlich says:
    
    ====================
    There is only a single patch this time:
    
     - Use netif_rx_any_context(), by Sebastian Andrzej Siewior
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  7. Merge branch 'pps-policing'

    Simon Horman says:
    
    ====================
    net/sched: act_police: add support for packet-per-second policing
    
    This series enhances the TC policer action implementation to allow a
    policer action instance to enforce a rate-limit based on
    packets-per-second, configurable using a packet-per-second rate and burst
    parameters.
    
    In the hope of aiding review this is broken up into three patches.
    
    * [PATCH 1/3] flow_offload: add support for packet-per-second policing
    
      Add support for this feature to the flow_offload API that is used to allow
      programming flows, including TC rules and their actions, into hardware.
    
    * [PATCH 2/3] flow_offload: reject configuration of packet-per-second policing in offload drivers
    
      Teach all exiting users of the flow_offload API that allow offload of
      policer action instances to reject offload if packet-per-second rate
      limiting is configured: none support it at this time
    
    * [PATCH 3/3] net/sched: act_police: add support for packet-per-second policing
    
      With the above ground-work in place add the new feature to the TC policer
      action itself
    
    With the above in place the feature may be used.
    
    As follow-ups we plan to provide:
    * Corresponding updates to iproute2
    * Corresponding self tests (which depend on the iproute2 changes)
    * Hardware offload support for the NFP driver
    
    Key changes since v2:
    * Added patches 1 and 2, which makes adding patch 3 safe for existing
      hardware offload of the policer action
    * Re-worked patch 3 so that a TC policer action instance may be configured
      for packet-per-second or byte-per-second rate limiting, but not both.
    * Corrected kdoc usage
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  8. net/sched: act_police: add support for packet-per-second policing

    Allow a policer action to enforce a rate-limit based on packets-per-second,
    configurable using a packet-per-second rate and burst parameters.
    
    e.g.
    tc filter add dev tap1 parent ffff: u32 match \
            u32 0 0 police pkts_rate 3000 pkts_burst 1000
    
    Testing was unable to uncover a performance impact of this change on
    existing features.
    
    Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
    Signed-off-by: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: Louis Peens <louis.peens@netronome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    zhengbaowen authored and davem330 committed Mar 13, 2021
  9. flow_offload: reject configuration of packet-per-second policing in o…

    …ffload drivers
    
    A follow-up patch will allow users to configures packet-per-second policing
    in the software datapath. In preparation for this, teach all drivers that
    support offload of the policer action to reject such configuration as
    currently none of them support it.
    
    Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
    Signed-off-by: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: Louis Peens <louis.peens@netronome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    zhengbaowen authored and davem330 committed Mar 13, 2021
  10. flow_offload: add support for packet-per-second policing

    Allow flow_offload API to configure packet-per-second policing using rate
    and burst parameters.
    
    Dummy implementations of tcf_police_rate_pkt_ps() and
    tcf_police_burst_pkt() are supplied which return 0, the unconfigured state.
    This is to facilitate splitting the offload, driver, and TC code portion of
    this feature into separate patches with the aim of providing a logical flow
    for review. And the implementation of these helpers will be filled out by a
    follow-up patch.
    
    Signed-off-by: Xingfeng Hu <xingfeng.hu@corigine.com>
    Signed-off-by: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: Louis Peens <louis.peens@netronome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    huxingfeng authored and davem330 committed Mar 13, 2021
  11. Merge branch 'hns3-imp-phys'

    Huazhong Tan says:
    
    ====================
    net: hns3: support imp-controlled PHYs
    
    This series adds support for imp-controlled PHYs in the HNS3
    ethernet driver.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  12. net: hns3: add phy loopback support for imp-controlled PHYs

    If the imp-controlled PHYs feature is enabled, driver can not
    call phy driver interface to set loopback anymore and needs
    to send command to firmware to start phy loopback.
    
    Driver reuses the existing firmware command 0x0315 to start
    phy loopback, just add a setting bit in this command. As this
    command is not only for serdes loopback anymore, rename this
    command to "xxx_COMMON_LOOPBACK", and modify function name,
    macro name and logs related to it.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Mar 13, 2021
  13. net: hns3: add ioctl support for imp-controlled PHYs

    When the imp-controlled PHYs feature is enabled, driver will not
    register mdio bus. In order to support ioctl ops for phy tool to
    read or write phy register in this case, the firmware implement
    a new command for driver and driver implement ioctl by using this
    new command.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Mar 13, 2021
  14. net: hns3: add get/set pause parameters support for imp-controlled PHYs

    When the imp-controlled PHYs feature is enabled, phydev is NULL.
    In this case, the autoneg is always off when user uses ethtool -a
    command to get pause parameters because  hclge_get_pauseparam()
    uses phydev to check whether device is TP port. To fit this new
    feature, use media type to check whether device is TP port.
    
    And when user set pause parameters, these parameters need to
    always set to mac, no matter whether autoneg is off.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Mar 13, 2021
  15. net: hns3: add support for imp-controlled PHYs

    IMP(Intelligent Management Processor) firmware add a new feature
    to take control of PHYs for some new devices, PF driver adds
    support for this feature.
    
    Driver queries device's capability to check whether IMP supports
    this feature, it will tell IMP to enable this feature by firmware
    compatible command if it is supported.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Mar 13, 2021
  16. Merge branch 'sh_eth-reg-defs'

    Sergey Shtylyov says:
    
    ====================
    sh_eth: Improve the register/bit definitions in the Ether driver
    
    Here are 4 patches against DaveM's 'net-next' repo. Mainly I'm renaming the register *enum*
    tags/entries to match the SoC manuals,and also moving the RX-TX descriptor *enum*s closer to
    the corresponding *struct*s...
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  17. sh_eth: place RX/TX descriptor *enum*s after their *struct*s

    Place the RX/TX descriptor bit *enum*s where they belong -- after the
    corresponding RX/TX descriptor *struct*s and, while at it, switch to
    declaring one *enum* entry per line...
    
    Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Sergey Shtylyov authored and davem330 committed Mar 13, 2021
  18. sh_eth: rename *enum*s still not matching register names

    Finally, rename the rest of the *enum* tags still not (exactly) matching
    the abbreviated register names from the manuals...
    
    Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Sergey Shtylyov authored and davem330 committed Mar 13, 2021
  19. sh_eth: rename PSR bits

    In all the SoC manuals (except R-Car gen2) the PHY status register's name
    is abbreviated to  PSR with the only valid bit 0 named LMON.  Follow the
    suit and rename the corresponding *enum* tag/entry.
    
    Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Sergey Shtylyov authored and davem330 committed Mar 13, 2021
  20. sh_eth: rename TRSCER bits

    In all the SoC manuals the TRSCER register bits match the corresponding
    EESR registers's bits, but only on the R-Car gen2 SoC those are named
    RINT<n> and TINT<n>.  Follow the suit and rename the *enum* tag/entries
    from DESC_I_* to TRSCER_*.
    
    Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Sergey Shtylyov authored and davem330 committed Mar 13, 2021
  21. Merge branch 'mptcp-Include-multiple-address-ids-in-RM_ADDR'

    Mat Martineau says:
    
    ====================
    mptcp: Include multiple address ids in RM_ADDR
    
    Here's a patch series from the MPTCP tree that extends the capabilities
    of the MPTCP RM_ADDR header.
    
    MPTCP peers can exchange information about their IP addresses that are
    available for additional MPTCP subflows. IP addresses are advertised
    with an ADD_ADDR header type, and those advertisements are revoked with
    the RM_ADDR header type. RFC 8684 allows the RM_ADDR header to include
    more than one address ID, so multiple advertisements can be revoked in a
    single header. Previous kernel versions have only used RM_ADDR with a
    single address ID, so multiple removals required multiple packets.
    
    Patches 1-4 plumb address id list structures around the MPTCP code,
    where before only a single address ID was passed.
    
    Patches 5-8 make use of the address lists at the path manager layer that
    tracks available addresses for both peers.
    
    Patches 9-11 update the selftests to cover the new use of RM_ADDR with
    multiple address IDs.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Mar 13, 2021
  22. selftests: mptcp: add testcases for removing addrs

    This patch added the testcases for removing a list of addresses. Used
    the netlink to flush the addresses in the testcases.
    
    Signed-off-by: Geliang Tang <geliangtang@gmail.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    geliangtang authored and davem330 committed Mar 13, 2021
  23. selftests: mptcp: set addr id for removing testcases

    The removing testcases can only delete the addresses from id 1, this
    patch added the support for deleting the addresses from any id that user
    set.
    
    Signed-off-by: Geliang Tang <geliangtang@gmail.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    geliangtang authored and davem330 committed Mar 13, 2021
  24. selftests: mptcp: add invert argument for chk_rm_nr

    Some of the removing testcases used two zeros as arguments for chk_rm_nr
    like this: chk_rm_nr 0 0. This doesn't mean that no RM_ADDR has been sent.
    It only means that RM_ADDR had been sent in the opposite direction that
    chk_rm_nr is checking.
    
    This patch added a new argument invert for chk_rm_nr to allow it can
    check the RM_ADDR from the opposite direction.
    
    Signed-off-by: Geliang Tang <geliangtang@gmail.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    geliangtang authored and davem330 committed Mar 13, 2021
  25. mptcp: remove a list of addrs when flushing

    This patch invoked mptcp_nl_remove_addrs_list to remove a list of addresses
    when the netlink flushes addresses, instead of using
    mptcp_nl_remove_subflow_and_signal_addr to remove them one by one.
    
    And dropped the unused parameter net in __flush_addrs too.
    
    Signed-off-by: Geliang Tang <geliangtang@gmail.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    geliangtang authored and davem330 committed Mar 13, 2021
Older