forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: "Highlights: - Gustavo A. R. Silva keeps working on the implicit switch fallthru changes. - Support 802.11ax High-Efficiency wireless in cfg80211 et al, From Luca Coelho. - Re-enable ASPM in r8169, from Kai-Heng Feng. - Add virtual XFRM interfaces, which avoids all of the limitations of existing IPSEC tunnels. From Steffen Klassert. - Convert GRO over to use a hash table, so that when we have many flows active we don't traverse a long list during accumluation. - Many new self tests for routing, TC, tunnels, etc. Too many contributors to mention them all, but I'm really happy to keep seeing this stuff. - Hardware timestamping support for dpaa_eth/fsl-fman from Yangbo Lu. - Lots of cleanups and fixes in L2TP code from Guillaume Nault. - Add IPSEC offload support to netdevsim, from Shannon Nelson. - Add support for slotting with non-uniform distribution to netem packet scheduler, from Yousuk Seung. - Add UDP GSO support to mlx5e, from Boris Pismenny. - Support offloading of Team LAG in NFP, from John Hurley. - Allow to configure TX queue selection based upon RX queue, from Amritha Nambiar. - Support ethtool ring size configuration in aquantia, from Anton Mikaev. - Support DSCP and flowlabel per-transport in SCTP, from Xin Long. - Support list based batching and stack traversal of SKBs, this is very exciting work. From Edward Cree. - Busyloop optimizations in vhost_net, from Toshiaki Makita. - Introduce the ETF qdisc, which allows time based transmissions. IGB can offload this in hardware. From Vinicius Costa Gomes. - Add parameter support to devlink, from Moshe Shemesh. - Several multiplication and division optimizations for BPF JIT in nfp driver, from Jiong Wang. - Lots of prepatory work to make more of the packet scheduler layer lockless, when possible, from Vlad Buslov. - Add ACK filter and NAT awareness to sch_cake packet scheduler, from Toke Høiland-Jørgensen. - Support regions and region snapshots in devlink, from Alex Vesker. - Allow to attach XDP programs to both HW and SW at the same time on a given device, with initial support in nfp. From Jakub Kicinski. - Add TLS RX offload and support in mlx5, from Ilya Lesokhin. - Use PHYLIB in r8169 driver, from Heiner Kallweit. - All sorts of changes to support Spectrum 2 in mlxsw driver, from Ido Schimmel. - PTP support in mv88e6xxx DSA driver, from Andrew Lunn. - Make TCP_USER_TIMEOUT socket option more accurate, from Jon Maxwell. - Support for templates in packet scheduler classifier, from Jiri Pirko. - IPV6 support in RDS, from Ka-Cheong Poon. - Native tproxy support in nf_tables, from Máté Eckl. - Maintain IP fragment queue in an rbtree, but optimize properly for in-order frags. From Peter Oskolkov. - Improvde handling of ACKs on hole repairs, from Yuchung Cheng" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1996 commits) bpf: test: fix spelling mistake "REUSEEPORT" -> "REUSEPORT" hv/netvsc: Fix NULL dereference at single queue mode fallback net: filter: mark expected switch fall-through xen-netfront: fix warn message as irq device name has '/' cxgb4: Add new T5 PCI device ids 0x50af and 0x50b0 net: dsa: mv88e6xxx: missing unlock on error path rds: fix building with IPV6=m inet/connection_sock: prefer _THIS_IP_ to current_text_addr net: dsa: mv88e6xxx: bitwise vs logical bug net: sock_diag: Fix spectre v1 gadget in __sock_diag_cmd() ieee802154: hwsim: using right kind of iteration net: hns3: Add vlan filter setting by ethtool command -K net: hns3: Set tx ring' tc info when netdev is up net: hns3: Remove tx ring BD len register in hns3_enet net: hns3: Fix desc num set to default when setting channel net: hns3: Fix for phy link issue when using marvell phy driver net: hns3: Fix for information of phydev lost problem when down/up net: hns3: Fix for command format parsing error in hclge_is_all_function_id_zero net: hns3: Add support for serdes loopback selftest bnxt_en: take coredump_record structure off stack ...
- Loading branch information
Showing
1,752 changed files
with
119,401 additions
and
29,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
153 changes: 153 additions & 0 deletions
153
Documentation/devicetree/bindings/net/dsa/realtek-smi.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
Realtek SMI-based Switches | ||
========================== | ||
|
||
The SMI "Simple Management Interface" is a two-wire protocol using | ||
bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does | ||
not use the MDIO protocol. This binding defines how to specify the | ||
SMI-based Realtek devices. | ||
|
||
Required properties: | ||
|
||
- compatible: must be exactly one of: | ||
"realtek,rtl8366" | ||
"realtek,rtl8366rb" (4+1 ports) | ||
"realtek,rtl8366s" (4+1 ports) | ||
"realtek,rtl8367" | ||
"realtek,rtl8367b" | ||
"realtek,rtl8368s" (8 port) | ||
"realtek,rtl8369" | ||
"realtek,rtl8370" (8 port) | ||
|
||
Required properties: | ||
- mdc-gpios: GPIO line for the MDC clock line. | ||
- mdio-gpios: GPIO line for the MDIO data line. | ||
- reset-gpios: GPIO line for the reset signal. | ||
|
||
Optional properties: | ||
- realtek,disable-leds: if the LED drivers are not used in the | ||
hardware design this will disable them so they are not turned on | ||
and wasting power. | ||
|
||
Required subnodes: | ||
|
||
- interrupt-controller | ||
|
||
This defines an interrupt controller with an IRQ line (typically | ||
a GPIO) that will demultiplex and handle the interrupt from the single | ||
interrupt line coming out of one of the SMI-based chips. It most | ||
importantly provides link up/down interrupts to the PHY blocks inside | ||
the ASIC. | ||
|
||
Required properties of interrupt-controller: | ||
|
||
- interrupt: parent interrupt, see interrupt-controller/interrupts.txt | ||
- interrupt-controller: see interrupt-controller/interrupts.txt | ||
- #address-cells: should be <0> | ||
- #interrupt-cells: should be <1> | ||
|
||
- mdio | ||
|
||
This defines the internal MDIO bus of the SMI device, mostly for the | ||
purpose of being able to hook the interrupts to the right PHY and | ||
the right PHY to the corresponding port. | ||
|
||
Required properties of mdio: | ||
|
||
- compatible: should be set to "realtek,smi-mdio" for all SMI devices | ||
|
||
See net/mdio.txt for additional MDIO bus properties. | ||
|
||
See net/dsa/dsa.txt for a list of additional required and optional properties | ||
and subnodes of DSA switches. | ||
|
||
Examples: | ||
|
||
switch { | ||
compatible = "realtek,rtl8366rb"; | ||
/* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */ | ||
mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; | ||
mdio-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; | ||
reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||
|
||
switch_intc: interrupt-controller { | ||
/* GPIO 15 provides the interrupt */ | ||
interrupt-parent = <&gpio0>; | ||
interrupts = <15 IRQ_TYPE_LEVEL_LOW>; | ||
interrupt-controller; | ||
#address-cells = <0>; | ||
#interrupt-cells = <1>; | ||
}; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0>; | ||
port@0 { | ||
reg = <0>; | ||
label = "lan0"; | ||
phy-handle = <&phy0>; | ||
}; | ||
port@1 { | ||
reg = <1>; | ||
label = "lan1"; | ||
phy-handle = <&phy1>; | ||
}; | ||
port@2 { | ||
reg = <2>; | ||
label = "lan2"; | ||
phy-handle = <&phy2>; | ||
}; | ||
port@3 { | ||
reg = <3>; | ||
label = "lan3"; | ||
phy-handle = <&phy3>; | ||
}; | ||
port@4 { | ||
reg = <4>; | ||
label = "wan"; | ||
phy-handle = <&phy4>; | ||
}; | ||
port@5 { | ||
reg = <5>; | ||
label = "cpu"; | ||
ethernet = <&gmac0>; | ||
phy-mode = "rgmii"; | ||
fixed-link { | ||
speed = <1000>; | ||
full-duplex; | ||
}; | ||
}; | ||
}; | ||
|
||
mdio { | ||
compatible = "realtek,smi-mdio", "dsa-mdio"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
phy0: phy@0 { | ||
reg = <0>; | ||
interrupt-parent = <&switch_intc>; | ||
interrupts = <0>; | ||
}; | ||
phy1: phy@1 { | ||
reg = <1>; | ||
interrupt-parent = <&switch_intc>; | ||
interrupts = <1>; | ||
}; | ||
phy2: phy@2 { | ||
reg = <2>; | ||
interrupt-parent = <&switch_intc>; | ||
interrupts = <2>; | ||
}; | ||
phy3: phy@3 { | ||
reg = <3>; | ||
interrupt-parent = <&switch_intc>; | ||
interrupts = <3>; | ||
}; | ||
phy4: phy@4 { | ||
reg = <4>; | ||
interrupt-parent = <&switch_intc>; | ||
interrupts = <12>; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.