mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 05:16:43 +07:00
af5136f950
The SO_TXTIME API enables packet tranmission with delayed delivery.
This is currently supported by the ETF and FQ packet schedulers.
Evaluate the interface with both schedulers. Install the scheduler
and send a variety of packets streams: without delay, with one
delayed packet, with multiple ordered delays and with reordering.
Verify that packets are released by the scheduler in expected order.
The ETF qdisc requires a timestamp in the future on every packet. It
needs a delay on the qdisc else the packet is dropped on dequeue for
having a delivery time in the past. The test value is experimentally
derived. ETF requires clock_id CLOCK_TAI. It checks this base and
drops for non-conformance.
The FQ qdisc expects clock_id CLOCK_MONOTONIC, the base used by TCP
as of commit fb420d5d91
("tcp/fq: move back to CLOCK_MONOTONIC").
Within a flow there is an expecation of ordered delivery, as shown by
delivery times of test 4. The FQ qdisc does not require all packets to
have timestamps and does not drop for non-conformance.
The large (msec) delays are chosen to avoid flakiness.
Output:
SO_TXTIME ipv6 clock monotonic
payload:a delay:28 expected:0 (us)
SO_TXTIME ipv4 clock monotonic
payload:a delay:38 expected:0 (us)
SO_TXTIME ipv6 clock monotonic
payload:a delay:40 expected:0 (us)
SO_TXTIME ipv4 clock monotonic
payload:a delay:33 expected:0 (us)
SO_TXTIME ipv6 clock monotonic
payload:a delay:10120 expected:10000 (us)
SO_TXTIME ipv4 clock monotonic
payload:a delay:10102 expected:10000 (us)
[.. etc ..]
OK. All tests passed
Changes v1->v2: update commit message output
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
30 lines
597 B
Plaintext
30 lines
597 B
Plaintext
CONFIG_USER_NS=y
|
|
CONFIG_BPF_SYSCALL=y
|
|
CONFIG_TEST_BPF=m
|
|
CONFIG_NUMA=y
|
|
CONFIG_NET_VRF=y
|
|
CONFIG_NET_L3_MASTER_DEV=y
|
|
CONFIG_IPV6=y
|
|
CONFIG_IPV6_MULTIPLE_TABLES=y
|
|
CONFIG_VETH=y
|
|
CONFIG_NET_IPVTI=y
|
|
CONFIG_IPV6_VTI=y
|
|
CONFIG_DUMMY=y
|
|
CONFIG_BRIDGE=y
|
|
CONFIG_VLAN_8021Q=y
|
|
CONFIG_NETFILTER=y
|
|
CONFIG_NETFILTER_ADVANCED=y
|
|
CONFIG_NF_CONNTRACK=m
|
|
CONFIG_NF_NAT=m
|
|
CONFIG_IP6_NF_IPTABLES=m
|
|
CONFIG_IP_NF_IPTABLES=m
|
|
CONFIG_IP6_NF_NAT=m
|
|
CONFIG_IP_NF_NAT=m
|
|
CONFIG_NF_TABLES=m
|
|
CONFIG_NF_TABLES_IPV6=y
|
|
CONFIG_NF_TABLES_IPV4=y
|
|
CONFIG_NFT_CHAIN_NAT_IPV6=m
|
|
CONFIG_NFT_CHAIN_NAT_IPV4=m
|
|
CONFIG_NET_SCH_FQ=m
|
|
CONFIG_NET_SCH_ETF=m
|