net/sched: cbs: Use units.h instead of the copy of a definition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Nov 2023 17:48:13 +0000 (19:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 1 Dec 2023 07:15:48 +0000 (23:15 -0800)
BYTES_PER_KBIT is defined in units.h, use that definition.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231128174813.394462-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_cbs.c

index 9a0b851..beece8e 100644 (file)
@@ -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;