1. 30 12月, 2021 1 次提交
  2. 29 12月, 2021 12 次提交
  3. 27 12月, 2021 17 次提交
  4. 24 12月, 2021 7 次提交
  5. 23 12月, 2021 3 次提交
    • O
      net: stmmac: add tc flower filter for EtherType matching · e48cb313
      Ong Boon Leong 提交于
      This patch adds basic support for EtherType RX frame steering for
      LLDP and PTP using the hardware offload capabilities.
      
      Example steps for setting up RX frame steering for LLDP and PTP:
      $ IFDEVNAME=eth0
      $ tc qdisc add dev $IFDEVNAME ingress
      $ tc qdisc add dev $IFDEVNAME root mqprio num_tc 8 \
           map 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0 \
           queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 hw 0
      
      For LLDP
      $ tc filter add dev $IFDEVNAME parent ffff: protocol 0x88cc \
           flower hw_tc 5
      OR
      $ tc filter add dev $IFDEVNAME parent ffff: protocol LLDP \
           flower hw_tc 5
      
      For PTP
      $ tc filter add dev $IFDEVNAME parent ffff: protocol 0x88f7 \
           flower hw_tc 6
      
      Show tc ingress filter
      $ tc filter show dev $IFDEVNAME ingress
      
      v1->v2:
       Thanks to Kurt's and Sebastian's suggestion.
       - change from __be16 to u16 etype
       - change ETHER_TYPE_FULL_MASK to use cpu_to_be16() macro
      Signed-off-by: NOng Boon Leong <boon.leong.ong@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e48cb313
    • H
      net: lan966x: Add support for multiple bridge flags · 2e49761e
      Horatiu Vultur 提交于
      This patch series extends the current supported bridge flags with the
      following flags: BR_FLOOD, BR_BCAST_FLOOD and BR_LEARNING.
      Signed-off-by: NHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e49761e
    • A
      mlxsw: spectrum_flower: Make vlan_id limitation more specific · 70ec72d5
      Amit Cohen 提交于
      Spectrum ASICs do not support matching of VLAN ID at egress.
      Currently, mlxsw driver forbids matching of all VLAN related fields at
      egress, which is too strict check.
      
      For example, the following filter is not supported by the driver:
      $ tc filter add dev swpX egress protocol 802.1q pref 1 handle 101 flower
      vlan_ethtype ipv4 src_ip .. dst_ip .. skip_sw action pass
      Error: mlxsw_spectrum: vlan_id key is not supported on egress.
      We have an error talking to the kernel
      
      The filter above does not match on VLAN ID, but is bounced anyway.
      
      Make the check more specific, forbid only matching of 'vlan_id' at egress.
      Signed-off-by: NAmit Cohen <amcohen@nvidia.com>
      Reviewed-by: NPetr Machata <petrm@nvidia.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      70ec72d5