[PATCH] net/e1000: support launchtime feature

2023-12-17 Thread Chuanyu Xue
Enable the time-based scheduled Tx of packets based on the RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP flag. The launchtime defines the packet transmission time based on PTP clock at MAC layer, which should be set to the advanced transmit descriptor. Signed-off-by: Chuanyu Xue --- drivers/net/e1000

RE: [PATCH] net/e1000: support launchtime feature

2023-12-21 Thread Chuanyu Xue
Hi Simei, Thank you so much for your review. >> >> /* QAV Tx mode control register */ >> #define E1000_I210_TQAVCTRL 0x3570 >> +#define E1000_I210_LAUNCH_OS0 0x3578 > >What does this register mean? > "LAUNCH_OS0" is defined as LaunchOffset register, which sets the base time for launchtime. Bas

RE: [PATCH] net/e1000: support launchtime feature

2023-12-29 Thread Chuanyu Xue
>> >> >> +static int >> >> +eth_igb_read_clock(__rte_unused struct rte_eth_dev *dev, uint64_t >> >> +*clock) { >> >> + uint64_t systime_cycles; >> >> + struct e1000_adapter *adapter = dev->data->dev_private; >> >> + >> >> + systime_cycles = igb_read_systime_cyclecounter(dev); >> >> + uint64_t ns =

[PATCH v2] net/e1000: support launchtime feature

2023-12-30 Thread Chuanyu Xue
Enable the time-based scheduled Tx of packets based on the RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP flag. The launchtime defines the packet transmission time based on PTP clock at MAC layer, which should be set to the advanced transmit descriptor. Signed-off-by: Chuanyu Xue --- change log: v2

RE: [PATCH] net/e1000: support launchtime feature

2024-01-03 Thread Chuanyu Xue
Hi, Simei Thank you for your guidance on how to test this feature. >> Following is how I try to test with testpmd. Please let me know if I did >> something wrong. >> >> sudo ./dpdk-testpmd -- -i --forward-mode=txonly >> >> testpmd> port stop 0 >> testpmd> set burst 1 >>