Home
last modified time | relevance | path

Searched hist:"8599099 f0c58cec677a47c968e777eee8d64fb80" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/sched/
H A Dsch_taprio.cdiff 8599099f0c58cec677a47c968e777eee8d64fb80 Tue Apr 23 14:44:21 CDT 2019 Andre Guedes <andre.guedes@intel.com> net: sched: taprio: Refactor taprio_get_start_time()

This patch does a code refactoring to taprio_get_start_time() function
to improve readability and report error properly.

If 'base' time is later than 'now', the start time is equal to 'base'
and taprio_get_start_time() is done. That's the natural case so we move
that code to the beginning of the function. Also, if 'cycle' calculation
is zero, something went really wrong with taprio and we should log that
internal error properly.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>