1. 06 Feb, 2023 10 commits
  2. 04 Feb, 2023 23 commits
  3. 03 Feb, 2023 7 commits
    • David S. Miller's avatar
      Merge branch 'yt8531-support' · 8065c0e1
      David S. Miller authored
      Frank Sae says:
      
      ====================
      net: add dts for yt8521 and yt8531s, add driver for yt8531
      
      Add dts for yt8521 and yt8531s, add driver for yt8531.
       These patches have been verified on our AM335x platform (motherboard)
       which has one integrated yt8521 and one RGMII interface.
       It can connect to daughter boards like yt8531s or yt8531 board.
      
       v5:
       - change the compatible of yaml
       - change the maintainers of yaml from "frank sae" to "Frank Sae"
      
       v4:
       - change default tx delay from 150ps to 1950ps
       - add compatible for yaml
      
       v3:
       - change default rx delay from 1900ps to 1950ps
       - moved ytphy_rgmii_clk_delay_config_with_lock from yt8521's patch to yt8531's patch
       - removed unnecessary checks of phydev->attached_dev->dev_addr
      
       v2:
       - split BIT macro as one patch
       - split "dts for yt8521/yt8531s ... " patch as two patches
       - use standard rx-internal-delay-ps and tx-internal-delay-ps, removed motorcomm,sds-tx-amplitude
       - removed ytphy_parse_dt, ytphy_probe_helper and ytphy_config_init_helper
       - not store dts arg to yt8521_priv
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8065c0e1
    • Frank Sae's avatar
      net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy · 4ac94f72
      Frank Sae authored
      Add a driver for the motorcomm yt8531 gigabit ethernet phy. We have
       verified the driver on AM335x platform with yt8531 board. On the
       board, yt8531 gigabit ethernet phy works in utp mode, RGMII
       interface, supports 1000M/100M/10M speeds, and wol(magic package).
      Signed-off-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4ac94f72
    • Frank Sae's avatar
      net: phy: Add dts support for Motorcomm yt8531s gigabit ethernet phy · 36152f87
      Frank Sae authored
      Add dts support for Motorcomm yt8531s gigabit ethernet phy.
       Change yt8521_probe to support clk config of yt8531s. Becase
       yt8521_probe does the things which yt8531s is needed, so
       removed yt8531s function.
       This patch has been verified on AM335x platform with yt8531s board.
      Signed-off-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      36152f87
    • Frank Sae's avatar
      net: phy: Add dts support for Motorcomm yt8521 gigabit ethernet phy · a6e68f0f
      Frank Sae authored
      Add dts support for Motorcomm yt8521 gigabit ethernet phy.
       Add ytphy_rgmii_clk_delay_config function to support dst config for
       the delay of rgmii clk. This funciont is common for yt8521, yt8531s
       and yt8531.
       This patch has been verified on AM335x platform.
      Signed-off-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a6e68f0f
    • Frank Sae's avatar
      net: phy: Add BIT macro for Motorcomm yt8521/yt8531 gigabit ethernet phy · 4869a146
      Frank Sae authored
      Add BIT macro for Motorcomm yt8521/yt8531 gigabit ethernet phy.
       This is a preparatory patch. Add BIT macro for 0xA012 reg, and
       supplement for 0xA001 and 0xA003 reg. These will be used to support dts.
      Signed-off-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4869a146
    • Frank Sae's avatar
      dt-bindings: net: Add Motorcomm yt8xxx ethernet phy · cf08dfe8
      Frank Sae authored
      Add a YAML binding document for the Motorcomm yt8xxx Ethernet phy.
      Signed-off-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cf08dfe8
    • David S. Miller's avatar
      Merge branch 'act_ct-UDP-NEW' · 18390581
      David S. Miller authored
      Vlad Buslov says:
      
      ====================
      net: Allow offloading of UDP NEW connections via act_ct
      
      Currently only bidirectional established connections can be offloaded
      via act_ct. Such approach allows to hardcode a lot of assumptions into
      act_ct, flow_table and flow_offload intermediate layer codes. In order
      to enabled offloading of unidirectional UDP NEW connections start with
      incrementally changing the following assumptions:
      
      - Drivers assume that only established connections are offloaded and
        don't support updating existing connections. Extract ctinfo from meta
        action cookie and refuse offloading of new connections in the drivers.
      
      - Fix flow_table offload fixup algorithm to calculate flow timeout
        according to current connection state instead of hardcoded
        "established" value.
      
      - Add new flow_table flow flag that designates bidirectional connections
        instead of assuming it and hardcoding hardware offload of every flow
        in both directions.
      
      - Add new flow_table flow flag that designates connections that are
        offloaded to hardware as "established" instead of assuming it. This
        allows some optimizations in act_ct and prevents spamming the
        flow_table workqueue with redundant tasks.
      
      With all the necessary infrastructure in place modify act_ct to offload
      UDP NEW as unidirectional connection. Pass reply direction traffic to CT
      and promote connection to bidirectional when UDP connection state
      changes to "assured". Rely on refresh mechanism to propagate connection
      state change to supporting drivers.
      
      Note that early drop algorithm that is designed to free up some space in
      connection tracking table when it becomes full (by randomly deleting up
      to 5% of non-established connections) currently ignores connections
      marked as "offloaded". Now, with UDP NEW connections becoming
      "offloaded" it could allow malicious user to perform DoS attack by
      filling the table with non-droppable UDP NEW connections by sending just
      one packet in single direction. To prevent such scenario change early
      drop algorithm to also consider "offloaded" connections for deletion.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      18390581