net: ethernet: ti: am65-cpsw-qos: Add support to taprio for past base_time
authorTanmay Patil <t-patil@ti.com>
Thu, 25 Apr 2024 10:31:42 +0000 (16:01 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2024 05:19:16 +0000 (06:19 +0100)
commitd63394abc923093423c141d4049b72aa403fff07
tree02f7691870dcfdbcca69b6c1dd88b8eab97fb4d4
parent5c4c0edca68a5841a8d53ccd49596fe199c8334c
net: ethernet: ti: am65-cpsw-qos: Add support to taprio for past base_time

If the base-time for taprio is in the past, start the schedule at the time
of the form "base_time + N*cycle_time" where N is the smallest possible
integer such that the above time is in the future.

Signed-off-by: Tanmay Patil <t-patil@ti.com>
Signed-off-by: Chintan Vankar <c-vankar@ti.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-qos.c