[PATCH bpf-next v2 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
HWTSTAMP_TX_ON to enable hardware timestamping for all outgoing packets, so that user no longer need to execute hwstamp_ctl command. Signed-off-by: Song Yoong Siang Acked-by: Stanislav Fomichev --- v1: https://patchwork.kernel.org/project/netdevbpf/patch/20241204115715.3148412-1-yoong.siang.s

[PATCH bpf v2 1/1] selftests/bpf: Actuate tx_metadata_len in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata. Fixes: d5e726d9143c ("xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len") Cc: sta...@vger.kernel.org # v6.11 Signed-off-by: Song Yoong Siang Acked-by: Stanislav Fomichev ---

RE: [PATCH bpf-next 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song, Yoong Siang
On Wednesday, December 4, 2024 11:49 PM, Stanislav Fomichev wrote: >On 12/04, Song Yoong Siang wrote: >> Set tx_type to HWTSTAMP_TX_ON to enable hardware timestamping for all >> outgoing packets. >> >> Besides, set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadat

[PATCH bpf-next 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
Set tx_type to HWTSTAMP_TX_ON to enable hardware timestamping for all outgoing packets. Besides, set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata. Signed-off-by: Song Yoong Siang --- tools/testing/selftests/bpf/xdp_hw_metadata.c | 3 ++- 1 file changed

RE: [PATCH net-next v4 0/6] stmmac: Add XDP support

2021-04-01 Thread Song, Yoong Siang
tes from 169.254.1.11: icmp_seq=10 ttl=64 time=0.870 ms --- 169.254.1.11 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 909ms rtt min/avg/max/mdev = 0.829/1.020/1.136/0.101 ms LP:~# ping 169.254.1.11 -s 500 -i 0.1 -c 10 PING 169.254.1.11 (169.254.1.11) 500(528) bytes of data. From 169.254.1.11 icmp_seq=7 Frag needed and DF set (mtu = 386) From 169.254.1.11 icmp_seq=9 Frag needed and DF set (mtu = 386) --- 169.254.1.11 ping statistics --- 10 packets transmitted, 0 received, +2 errors, 100% packet loss, time 930ms Regards Song, Yoong Siang

[PATCH net 1/1] net: stmmac: fix CBS idleslope and sendslope calculation

2021-02-17 Thread Song Yoong Siang
From: "Song, Yoong Siang" When link speed is not 100 Mbps, port transmit rate and speed divider are set to 8 and 100 respectively. These values are incorrect for CBS idleslope and sendslope HW values calculation if the link speed is not 1 Gbps. This patch adds switch statement

[PATCH net 1/1] net: stmmac: set TxQ mode back to DCB after disabling CBS

2021-02-03 Thread Song Yoong Siang
: Mohammad Athari Bin Ismail Signed-off-by: Song, Yoong Siang --- drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c ind