git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: fix configurations of port-level scheduling rate
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_ethdev.h
diff --git
a/drivers/net/hns3/hns3_ethdev.h
b/drivers/net/hns3/hns3_ethdev.h
index
b23c90e
..
a2b61ff
100644
(file)
--- a/
drivers/net/hns3/hns3_ethdev.h
+++ b/
drivers/net/hns3/hns3_ethdev.h
@@
-827,6
+827,8
@@
struct hns3_adapter {
#define hns3_get_bit(origin, shift) \
hns3_get_field((origin), (0x1UL << (shift)), (shift))
#define hns3_get_bit(origin, shift) \
hns3_get_field((origin), (0x1UL << (shift)), (shift))
+#define hns3_gen_field_val(mask, shift, val) (((val) << (shift)) & (mask))
+
/*
* upper_32_bits - return bits 32-63 of a number
* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress
/*
* upper_32_bits - return bits 32-63 of a number
* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress