diff options
author | Andy Shevchenko <[email protected]> | 2023-11-28 19:48:13 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-30 23:15:48 -0800 |
commit | 000db9e9ad42e135c7d92a56a66116542ae2b6c3 (patch) | |
tree | feadfe038c41fcfa98cd7373ac1b6b39511cde58 | |
parent | df16c1c51d8166958f533c0c886766f7ee9dd50f (diff) |
net/sched: cbs: Use units.h instead of the copy of a definition
BYTES_PER_KBIT is defined in units.h, use that definition.
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Vinicius Costa Gomes <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r-- | net/sched/sch_cbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_cbs.c b/net/sched/sch_cbs.c index 9a0b85190a2c..beece8e82c23 100644 --- a/net/sched/sch_cbs.c +++ b/net/sched/sch_cbs.c @@ -57,6 +57,8 @@ #include <linux/string.h> #include <linux/errno.h> #include <linux/skbuff.h> +#include <linux/units.h> + #include <net/netevent.h> #include <net/netlink.h> #include <net/sch_generic.h> @@ -65,8 +67,6 @@ static LIST_HEAD(cbs_list); static DEFINE_SPINLOCK(cbs_list_lock); -#define BYTES_PER_KBIT (1000LL / 8) - struct cbs_sched_data { bool offload; int queue; |