git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
552ac47
)
net/i40e/base: add macro for 25G device
author
Qi Zhang
<qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:05 +0000
(15:30 -0500)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000
(18:47 +0100)
Add macro to idenfity 25G device by device ID
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_devids.h
patch
|
blob
|
history
diff --git
a/drivers/net/i40e/base/i40e_devids.h
b/drivers/net/i40e/base/i40e_devids.h
index
f4a8784
..
66ff1cc
100644
(file)
--- a/
drivers/net/i40e/base/i40e_devids.h
+++ b/
drivers/net/i40e/base/i40e_devids.h
@@
-76,4
+76,7
@@
POSSIBILITY OF SUCH DAMAGE.
(d) == I40E_DEV_ID_QSFP_B || \
(d) == I40E_DEV_ID_QSFP_C)
+#define i40e_is_25G_device(d) ((d) == I40E_DEV_ID_25G_B || \
+ (d) == I40E_DEV_ID_25G_SFP28)
+
#endif /* _I40E_DEVIDS_H_ */