Skip to content

Commit 000db9e

Browse files
andy-shevkuba-moo
authored andcommitted
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]>
1 parent df16c1c commit 000db9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/sched/sch_cbs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
#include <linux/string.h>
5858
#include <linux/errno.h>
5959
#include <linux/skbuff.h>
60+
#include <linux/units.h>
61+
6062
#include <net/netevent.h>
6163
#include <net/netlink.h>
6264
#include <net/sch_generic.h>
@@ -65,8 +67,6 @@
6567
static LIST_HEAD(cbs_list);
6668
static DEFINE_SPINLOCK(cbs_list_lock);
6769

68-
#define BYTES_PER_KBIT (1000LL / 8)
69-
7070
struct cbs_sched_data {
7171
bool offload;
7272
int queue;

0 commit comments

Comments
 (0)