Skip to content
  1. Aug 16, 2023
  2. Aug 15, 2023
  3. Aug 14, 2023
    • Gabor Juhos's avatar
      net: phy: Introduce PSGMII PHY interface mode · 83b5f025
      Gabor Juhos authored
      
      
      The PSGMII interface is similar to QSGMII. The main difference
      is that the PSGMII interface combines five SGMII lines into a
      single link while in QSGMII only four lines are combined.
      
      Similarly to the QSGMII, this interface mode might also needs
      special handling within the MAC driver.
      
      It is commonly used by Qualcomm with their QCA807x PHY series and
      modern WiSoC-s.
      
      Add definitions for the PHY layer to allow to express this type
      of connection between the MAC and PHY.
      
      Signed-off-by: default avatarGabor Juhos <j4g8y7@gmail.com>
      Signed-off-by: default avatarRobert Marko <robert.marko@sartura.hr>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      83b5f025
    • Robert Marko's avatar
      dt-bindings: net: ethernet-controller: add PSGMII mode · de875d35
      Robert Marko authored
      
      
      Add a new PSGMII mode which is similar to QSGMII with the difference being
      that it combines 5 SGMII lines into a single link compared to 4 on QSGMII.
      
      It is commonly used by Qualcomm on their QCA807x PHY series.
      
      Signed-off-by: default avatarRobert Marko <robert.marko@sartura.hr>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      de875d35
    • David S. Miller's avatar
      Merge branch 'mlxsw-redirection' · 2d93c30c
      David S. Miller authored
      Petr Machata says:
      
      ====================
      mlxsw: Support traffic redirection from a locked bridge port
      
      Ido Schimmel writes:
      
      It is possible to add a filter that redirects traffic from the ingress
      of a bridge port that is locked (i.e., performs security / SMAC lookup)
      and has learning enabled. For example:
      
       # ip link add name br0 type bridge
       # ip link set dev swp1 master br0
       # bridge link set dev swp1 learning on locked on mab on
       # tc qdisc add dev swp1 clsact
       # tc filter add dev swp1 ingress pref 1 proto ip flower skip_sw src_ip 192.0.2.1 action mirred egress redirect dev swp2
      
      In the kernel's Rx path, this filter is evaluated before the Rx handler
      of the bridge, which means that redirected traffic should not be
      affected by bridge port configuration such as learning.
      
      However, the hardware data path is a bit different and the redirect
      action (FORWARDING_ACTION in hardware) merely attaches a pointer to the
      packet, which is later used by the L2 lookup stage to understand how to
      forward the packet. Between both stages - ingress ACL and L2 lookup -
      learning and security lookup are performed, which means that redirected
      traffic is affected by bridge port configuration, unlike in the kernel's
      data path.
      
      The learning discrepancy was handled in commit 577fa14d ("mlxsw:
      spectrum: Do not process learned records with a dummy FID") by simply
      ignoring learning notifications generated by the redirected traffic. A
      similar solution is not possible for the security / SMAC lookup since
      - unlike learning - the CPU is not involved and packets that failed the
      lookup are dropped by the device.
      
      Instead, solve this by prepending the ignore action to the redirect
      action and use it to instruct the device to disable both learning and
      the security / SMAC lookup for redirected traffic.
      
      Patch #1 adds the ignore action.
      
      Patch #2 prepends the action to the redirect action in flower offload
      code.
      
      Patch #3 removes the workaround in commit 577fa14d
      
       ("mlxsw:
      spectrum: Do not process learned records with a dummy FID") since it is
      no longer needed.
      
      Patch #4 adds a test case.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2d93c30c
    • Ido Schimmel's avatar
      selftests: forwarding: Add test case for traffic redirection from a locked port · 38c43a1c
      Ido Schimmel authored
      
      
      Check that traffic can be redirected from a locked bridge port and that
      it does not create locked FDB entries.
      
      Cc: Hans J. Schultz <netdev@kapio-technology.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      38c43a1c