projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df16c1c
)
net/sched: cbs: Use units.h instead of the copy of a definition
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 28 Nov 2023 17:48:13 +0000
(19:48 +0200)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/net/sched/sch_cbs.c
b/net/sched/sch_cbs.c
index
9a0b851
..
beece8e
100644
(file)
--- 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;