net/i40e/base: add macro for 25G device
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>
This commit is contained in:
parent
552ac471f1
commit
b3cd767cbc
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user