mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 14:04:05 +08:00
317ab5b86c
This qdisc offload is the closest thing to what the SJA1105 supports in hardware for time-based egress shaping. The switch core really is built around SAE AS6802/TTEthernet (a TTTech standard) but can be made to operate similarly to IEEE 802.1Qbv with some constraints: - The gate control list is a global list for all ports. There are 8 execution threads that iterate through this global list in parallel. I don't know why 8, there are only 4 front-panel ports. - Care must be taken by the user to make sure that two execution threads never get to execute a GCL entry simultaneously. I created a O(n^4) checker for this hardware limitation, prior to accepting a taprio offload configuration as valid. - The spec says that if a GCL entry's interval is shorter than the frame length, you shouldn't send it (and end up in head-of-line blocking). Well, this switch does anyway. - The switch has no concept of ADMIN and OPER configurations. Because it's so simple, the TAS settings are loaded through the static config tables interface, so there isn't even place for any discussion about 'graceful switchover between ADMIN and OPER'. You just reset the switch and upload a new OPER config. - The switch accepts multiple time sources for the gate events. Right now I am using the standalone clock source as opposed to PTP. So the base time parameter doesn't really do much. Support for the PTP clock source will be added in a future series. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
19 lines
393 B
Makefile
19 lines
393 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
obj-$(CONFIG_NET_DSA_SJA1105) += sja1105.o
|
|
|
|
sja1105-objs := \
|
|
sja1105_spi.o \
|
|
sja1105_main.o \
|
|
sja1105_ethtool.o \
|
|
sja1105_clocking.o \
|
|
sja1105_static_config.o \
|
|
sja1105_dynamic_config.o \
|
|
|
|
ifdef CONFIG_NET_DSA_SJA1105_PTP
|
|
sja1105-objs += sja1105_ptp.o
|
|
endif
|
|
|
|
ifdef CONFIG_NET_DSA_SJA1105_TAS
|
|
sja1105-objs += sja1105_tas.o
|
|
endif
|