From: Qi Zhang Date: Tue, 9 Jan 2018 20:30:05 +0000 (-0500) Subject: net/i40e/base: add macro for 25G device X-Git-Tag: spdx-start~459 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b3cd767cbc523c2e72687c656c6ca45d87e59caf;p=dpdk.git net/i40e/base: add macro for 25G device Add macro to idenfity 25G device by device ID Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/base/i40e_devids.h b/drivers/net/i40e/base/i40e_devids.h index f4a8784238..66ff1ccfc2 100644 --- 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_ */