remove use of non-standard array range initialization
Subsystems (2)
cover remove use of non-standard array range initialization
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
Andre Muezerie (2):
app/test: remove use of non-standard array range initialization drivers/net: remove use of non-standard array range initialization
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++--- drivers/net/r8169/r8169_phy.c | 163 +++++++- drivers/net/r8169/r8169_rxtx.c | 25 +- 8 files changed, 770 insertions(+), 92 deletions(-)
--
2.47.0.vfs.0.3
PATCH 1/2 app/test: remove use of non-standard array range initialization
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,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/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*37*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.47.0.vfs.0.3
PATCH 2/2 drivers/net: remove use of non-standard array range initialization
In reply to Andre MuezerieArray range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++++++---- drivers/net/r8169/r8169_phy.c | 163 ++++++++-- drivers/net/r8169/r8169_rxtx.c | 25 +- 7 files changed, 617 insertions(+), 89 deletions(-)
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
drivers/net/r8169/base/rtl8125a_mcu.c +7 -1
@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );
drivers/net/r8169/base/rtl8126a.c +4 -1
@@ -29,7 +29,10 @@ static void hw_ephy_config_8126a(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :/* nothing to do */ break ; }
drivers/net/r8169/r8169_ethdev.c +30 -4
@@ -295,8 +295,21 @@ rtl_dev_stop(struct rte_eth_dev *dev)rtl_nic_reset (hw);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting);break ; }
@@ -333,8 +346,21 @@ rtl_dev_set_link_down(struct rte_eth_dev *dev)/* mcu pme intr masks */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting & ~(BIT_11 |BIT_14 ));break ; }
drivers/net/r8169/r8169_hw.c +391 -56
629 lines not on this page · raw message
drivers/net/r8169/r8169_phy.c +143 -20
229 lines not on this page · raw message
drivers/net/r8169/r8169_rxtx.c +22 -3
@@ -1012,8 +1012,21 @@ rtl_tx_init(struct rte_eth_dev *dev)/* Set TDFNR: TX Desc Fetch NumbeR */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :RTL_W8 (hw,TDFNR ,0x10 );break ; }
@@ -1187,7 +1200,13 @@ rtl_xmit_pkt(struct rtl_hw *hw, struct rtl_tx_queue *txq,rtl_setup_csum_offload (tx_pkt, tx_ol_flags, opts);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl8125_ptp_patch (tx_pkt);break ; }
Signature · 1 line
2.47.0.vfs.0.3
v2 cover remove use of non-standard array range initialization
In reply to Andre MuezerieArray range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
v2:
- Rebase on top of latest main.
Andre Muezerie (2):
app/test: remove use of non-standard array range initialization drivers/net: remove use of non-standard array range initialization
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++--- drivers/net/r8169/r8169_phy.c | 163 +++++++- drivers/net/r8169/r8169_rxtx.c | 25 +- 8 files changed, 770 insertions(+), 92 deletions(-)
--
2.48.1.vfs.0.0
PATCH v2 1/2 app/test: remove use of non-standard array range initialization
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499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11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.48.1.vfs.0.0
PATCH v2 2/2 drivers/net: remove use of non-standard array range initialization
In reply to Andre MuezerieArray range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++++++---- drivers/net/r8169/r8169_phy.c | 163 ++++++++-- drivers/net/r8169/r8169_rxtx.c | 25 +- 7 files changed, 617 insertions(+), 89 deletions(-)
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
drivers/net/r8169/base/rtl8125a_mcu.c +7 -1
@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );
drivers/net/r8169/base/rtl8126a.c +4 -1
@@ -29,7 +29,10 @@ static void hw_ephy_config_8126a(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :/* nothing to do */ break ; }
drivers/net/r8169/r8169_ethdev.c +30 -4
@@ -295,8 +295,21 @@ rtl_dev_stop(struct rte_eth_dev *dev)rtl_nic_reset (hw);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting);break ; }
@@ -333,8 +346,21 @@ rtl_dev_set_link_down(struct rte_eth_dev *dev)/* mcu pme intr masks */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting & ~(BIT_11 |BIT_14 ));break ; }
drivers/net/r8169/r8169_hw.c +391 -56
629 lines not on this page · raw message
drivers/net/r8169/r8169_phy.c +143 -20
229 lines not on this page · raw message
drivers/net/r8169/r8169_rxtx.c +22 -3
@@ -1012,8 +1012,21 @@ rtl_tx_init(struct rte_eth_dev *dev)/* Set TDFNR: TX Desc Fetch NumbeR */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :RTL_W8 (hw,TDFNR ,0x10 );break ; }
@@ -1187,7 +1200,13 @@ rtl_xmit_pkt(struct rtl_hw *hw, struct rtl_tx_queue *txq,rtl_setup_csum_offload (tx_pkt, tx_ol_flags, opts);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl8125_ptp_patch (tx_pkt);break ; }
Signature · 1 line
2.48.1.vfs.0.0
Re: [PATCH v2 2/2] drivers/net: remove use of non-standard array range initialization
Recheck-request: iol-intel-Performance
There was an infra failure with the Arm Grace server about 12 hours ago which caused this failure - sending a retest request.
Re: [PATCH v2 2/2] drivers/net: remove use of non-standard array range initialization
In reply to Andre Muezeriev3 cover enable drivers to be compiled with MSVC
In reply to Andre MuezerieThis patchset solves the last issues preventing drivers from being compiled with MSVC (array range initialization) and enables the drivers to be built with it.
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
v3:
- Add a patch to enable drivers to be compiled with MSVC.
v2:
- Rebase on top of latest main.
Andre Muezerie (3):
app/test: remove use of non-standard array range initialization drivers/net: remove use of non-standard array range initialization
drivers: enable drivers to be compiled with MSVC
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++- drivers/meson.build | 4 - drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++--- drivers/net/r8169/r8169_phy.c | 163 +++++++- drivers/net/r8169/r8169_rxtx.c | 25 +- 9 files changed, 770 insertions(+), 96 deletions(-)
--
2.49.0.vfs.0.3
PATCH v3 1/3 app/test: remove use of non-standard array range initialization
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*04*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*05*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*06*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*07*/ +0x11 ,0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,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.49.0.vfs.0.3
Re: [PATCH v3 1/3] app/test: remove use of non-standard array range initialization
Quoted 68 lines · Andre Muezerie
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)app/test/test_cryptodev_zuc_test_vectors.h +44
-1@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11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,/*31*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*32*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*33*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*34*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*35*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*36*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*37*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*42*/
app/test/test_cryptodev_zuc_test_vectors.h static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { · line 1123
Quoted 10 lines
app/test/test_cryptodev_zuc_test_vectors.h +7
-0+ 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*43*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*44*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*45*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*46*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*47*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*48*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*49*/ }, .len =4000 },
This is very ugly to have the source code. Can we find a better way to do this, e.g. init this at runtime using memset, or else just disable the build of this test case on windows?
/Bruce
Re: [PATCH v3 1/3] app/test: remove use of non-standard array range initialization
Adding Akhil and Kai Ji,
Quoted 74 lines · Bruce Richardson
Quoted 72 lines · Andre Muezerie
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)app/test/test_cryptodev_zuc_test_vectors.h +48
-1@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 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0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*35*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*36*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*37*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*46*/
Quoted 8 lines
app/test/test_cryptodev_zuc_test_vectors.h static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { · line 1123
Quoted 6 lines
app/test/test_cryptodev_zuc_test_vectors.h +3
-0+ 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*47*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*48*/ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, /*49*/ }, .len =4000 },This is very ugly to have the source code. Can we find a better way to do
On the other hand, this file is already full of fixed arrays filled explicitly (like zuc_test_auth_5670b for example).
I would just drop the comments and avoid a special init case just for this array.
Quoted 2 lines
this, e.g. init this at runtime using memset, or else just disable the build of this test case on windows?
Signature · 1 line
David Marchand
PATCH v3 2/3 drivers/net: remove use of non-standard array range initialization
In reply to Andre MuezerieArray range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++++++---- drivers/net/r8169/r8169_phy.c | 163 ++++++++-- drivers/net/r8169/r8169_rxtx.c | 25 +- 7 files changed, 617 insertions(+), 89 deletions(-)
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
drivers/net/r8169/base/rtl8125a_mcu.c +7 -1
@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );
drivers/net/r8169/base/rtl8126a.c +4 -1
@@ -29,7 +29,10 @@ static void hw_ephy_config_8126a(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :/* nothing to do */ break ; }
drivers/net/r8169/r8169_ethdev.c +30 -4
@@ -295,8 +295,21 @@ rtl_dev_stop(struct rte_eth_dev *dev)rtl_nic_reset (hw);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting);break ; }
@@ -333,8 +346,21 @@ rtl_dev_set_link_down(struct rte_eth_dev *dev)/* mcu pme intr masks */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :rtl_mac_ocp_write (hw,0xE00A , hw->mcu_pme_setting & ~(BIT_11 |BIT_14 ));break ; }
drivers/net/r8169/r8169_hw.c +391 -56
629 lines not on this page · raw message
drivers/net/r8169/r8169_phy.c +143 -20
229 lines not on this page · raw message
drivers/net/r8169/r8169_rxtx.c +22 -3
@@ -1012,8 +1012,21 @@ rtl_tx_init(struct rte_eth_dev *dev)/* Set TDFNR: TX Desc Fetch NumbeR */ switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_57: - case CFG_METHOD_69 ... CFG_METHOD_71: +/* CFG_METHOD_48 ... CFG_METHOD_57 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 : +case CFG_METHOD_54 : +case CFG_METHOD_55 : +case CFG_METHOD_56 : +case CFG_METHOD_57 : +/* CFG_METHOD_69 ... CFG_METHOD_71 */ +case CFG_METHOD_69 : +case CFG_METHOD_70 : +case CFG_METHOD_71 :RTL_W8 (hw,TDFNR ,0x10 );break ; }
@@ -1187,7 +1200,13 @@ rtl_xmit_pkt(struct rtl_hw *hw, struct rtl_tx_queue *txq,rtl_setup_csum_offload (tx_pkt, tx_ol_flags, opts);switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53: +/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl8125_ptp_patch (tx_pkt);break ; }
Signature · 1 line
2.49.0.vfs.0.3
Re: [PATCH v3 2/3] drivers/net: remove use of non-standard array range initialization
Quoted 9 lines · Andre Muezerie
drivers/net/r8169/base/rtl8125a_mcu.c +0
-1@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53:
drivers/net/r8169/base/rtl8125a_mcu.c static void · line 174
Quoted 10 lines
drivers/net/r8169/base/rtl8125a_mcu.c +7
-0+/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );
I don't have a strong opinion against this change. The driver maintainer already acked this change.
So just some comment, on the form.switch() here does not seem well suited since this driver code is validating a range of values.
if (hw->mcfg >= CFG_METHOD_48 && hw->mcfg <= CFG_METHOD_53) seems more robust and is easier to read.
Signature · 1 line
David Marchand
Re: [PATCH v3 2/3] drivers/net: remove use of non-standard array range initialization
16/06/2025 09:37, David Marchand:
Quoted 25 lines
Quoted 9 lines · Andre Muezerie
drivers/net/r8169/base/rtl8125a_mcu.c +0
-1@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53:drivers/net/r8169/base/rtl8125a_mcu.c static void · line 174
Quoted 10 lines
drivers/net/r8169/base/rtl8125a_mcu.c +7
-0+/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );I don't have a strong opinion against this change. The driver maintainer already acked this change.
Quoted 5 lines
So just some comment, on the form.
switch()here does not seem well suited since this driver code is validating a range of values.
if (hw->mcfg>=CFG_METHOD_48&&hw->mcfg<=CFG_METHOD_53) seems more robust and is easier to read.
Yes I agree with David.
Please could you fix this code to have simpler code with some "if"?
答复: [PATCH v3 2/3] drivers/net: remove use of non-standard array range initialization
Dear Thomas,
OK, I will update this part in the next code refactoring.
By the way, I would like to ask how to resolve this error. From what I can see, it does not seem to be related to the patches I uploaded.
https://mails.dpdk.org/archives/test-report/2025-June/886815.html
Thanks!
Howard Wang
-----邮件原件-----
发件人: Thomas Monjalon <[email protected]>
发送时间: 2025年6月18日 17:25
收件人: 王颢 <[email protected]>
抄送: Andre Muezerie <[email protected]>; [email protected]; Bruce Richardson <[email protected]>; David Marchand <[email protected]> 主题: Re: [PATCH v3 2/3] drivers/net: remove use of non-standard array range initialization
External mail : This email originated from outside the organization. Do not reply, click links, or open attachments unless you recognize the sender and know the content is safe.
16/06/2025 09:37, David Marchand:
Quoted 25 lines
Quoted 9 lines · Andre Muezerie
drivers/net/r8169/base/rtl8125a_mcu.c +0
-1@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53:drivers/net/r8169/base/rtl8125a_mcu.c static void · line 173
Quoted 10 lines
drivers/net/r8169/base/rtl8125a_mcu.c +7
-0+/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );I don't have a strong opinion against this change. The driver maintainer already acked this change.
Quoted 5 lines
So just some comment, on the form.
switch()here does not seem well suited since this driver code is validating a range of values.
if (hw->mcfg>=CFG_METHOD_48&&hw->mcfg<=CFG_METHOD_53) seems more robust and is easier to read.
Yes I agree with David.
Please could you fix this code to have simpler code with some "if"?
Re: 答复: [PATCH v3 2/3] drivers/net: remove use of non-standard array range initialization
18/06/2025 11:37, 王颢:
Quoted 3 lines
Dear Thomas,
OK, I will update this part in the next code refactoring.
Thank you
Quoted 2 lines
By the way, I would like to ask how to resolve this error. From what I can see, it does not seem to be related to the patches I uploaded.
https://mails.dpdk.org/archives/test-report/2025-June/886815.html
We are working to resolve the Windows errors currently.
We'll have to re-run tests on the patches when it will be resolved in the main branch.
Quoted 49 lines
-----邮件原件-----
发件人: Thomas Monjalon <[email protected]>
发送时间: 2025年6月18日 17:25
收件人: 王颢 <[email protected]>
抄送: Andre Muezerie <[email protected]>; [email protected]; Bruce Richardson <[email protected]>; David Marchand <[email protected]> 主题: Re: [PATCH v3 2/3]drivers/net: remove use of non-standard array range initializationExternal mail : This email originated from outside the organization. Do not reply, click links, or open attachments unless you recognize the sender and know the content is safe.
16/06/2025 09:37, David Marchand:
Quoted 25 lines
Quoted 9 lines · Andre Muezerie
drivers/net/r8169/base/rtl8125a_mcu.c +0
-1@@ -162,7 +162,13 @@ static void rtl_release_phy_mcu_patch_key_lock(struct rtl_hw *hw) {switch (hw->mcfg) { - case CFG_METHOD_48 ... CFG_METHOD_53:drivers/net/r8169/base/rtl8125a_mcu.c static void · line 173
Quoted 10 lines
drivers/net/r8169/base/rtl8125a_mcu.c +7
-0+/* CFG_METHOD_48 ... CFG_METHOD_53 */ +case CFG_METHOD_48 : +case CFG_METHOD_49 : +case CFG_METHOD_50 : +case CFG_METHOD_51 : +case CFG_METHOD_52 : +case CFG_METHOD_53 :rtl_mdio_direct_write_phy_ocp (hw,0xA436 ,0x0000 );rtl_mdio_direct_write_phy_ocp (hw,0xA438 ,0x0000 );rtl_clear_eth_phy_ocp_bit (hw,0xB82E ,BIT_0 );I don't have a strong opinion against this change. The driver maintainer already acked this change.
Quoted 5 lines
So just some comment, on the form.
switch()here does not seem well suited since this driver code is validating a range of values.
if (hw->mcfg>=CFG_METHOD_48&&hw->mcfg<=CFG_METHOD_53) seems more robust and is easier to read.Yes I agree with David.
Please could you fix this code to have simpler code with some "if"?
PATCH v3 3/3 drivers: enable drivers to be compiled with MSVC
In reply to Andre MuezerieNow that all issues related to drivers are addressed they can be enabled to be built with MSVC.
--- drivers/meson.build | 4 ---- 1 file changed, 4 deletions(-)
drivers/meson.build +0 -4
@@ -1,10 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_ms_compiler - subdir_done() -endif - # Defines the order of dependencies evaluation subdirs = [ 'common',
Signature · 1 line
2.49.0.vfs.0.3
Re: [PATCH v3 3/3] drivers: enable drivers to be compiled with MSVC
Recheck-request: iol-compile-amd64-testing
Just sending this recheck request to ensure that our reporting script is fixed and that it reports a FAIL instead of a WARN. Once that's done, we'll upgrade the meson version on the system and do another retest.
Re: [PATCH v3 0/3] enable drivers to be compiled with MSVC
In reply to Andre MuezerieQuoted 26 lines · Andre Muezerie
This patchset solves the last issues preventing drivers from being compiled with MSVC (array range initialization) and enables the drivers to be built with it.
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
v3:
- Add a patch to enable drivers to be compiled with MSVC.v2:
- Rebase on top of latest main.Andre Muezerie (3):
app/test: remove use of non-standard array range initializationdrivers/net: remove use of non-standard array range initialization
drivers: enable drivers to be compiled with MSVC
Quoted 10 lines
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++- drivers/meson.build | 4 - drivers/net/octeon_ep/otx_ep_mbox.c | 24 +- drivers/net/r8169/base/rtl8125a_mcu.c | 8 +- drivers/net/r8169/base/rtl8126a.c | 5 +- drivers/net/r8169/r8169_ethdev.c | 34 +- drivers/net/r8169/r8169_hw.c | 447 ++++++++++++++++++--- drivers/net/r8169/r8169_phy.c | 163 +++++++- drivers/net/r8169/r8169_rxtx.c | 25 +- 9 files changed, 770 insertions(+), 96 deletions(-)
Recheck-request: rebase=main, iol-compile-amd64-testing, iol-unit-amd64-testing
Signature · 1 line
David Marchand
v4 cover enable drivers to be compiled with MSVC
In reply to Andre MuezerieThis patchset solves the last issues preventing drivers from being compiled with MSVC (array range initialization) and enables the drivers to be built with it.
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
v4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.
v3:
- Add a patch to enable drivers to be compiled with MSVC.
v2:
- Rebase on top of latest main.
Andre Muezerie (3):
app/test: remove use of non-standard array range initialization drivers/net: remove use of non-standard array range initialization
drivers: enable drivers to be compiled with MSVC
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_flow_dv.c | 5 +- drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 7 files changed, 183 insertions(+), 18 deletions(-)
--
2.50.1.vfs.0.0
PATCH v4 1/3 app/test: remove use of non-standard array range initialization
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,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,0x11 ,0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.50.1.vfs.0.0
RE: [PATCH v4 1/3] app/test: remove use of non-standard array range initialization
Quoted 22 lines
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)app/test/test_cryptodev_zuc_test_vectors.h +0
-0
app/test/test_cryptodev_zuc_test_vectors.h static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { · line 1067
Quoted 1 line
app/test/test_cryptodev_zuc_test_vectors.h +0
-0@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { },
From my perspective that makes code to look really ugly...
If the static initialization is not possible, can we simply change the code to do memset() before first usage of the array?
Quoted 177 lines
app/test/test_cryptodev_zuc_test_vectors.h +153
-4.plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*04*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*05*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*06*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*07*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*08*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*09*/ +0x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11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 }, --2.50.1.vfs.0.0
Re: [PATCH v4 1/3] app/test: remove use of non-standard array range initialization
Quoted 24 lines · Konstantin Ananyev
Quoted 23 lines
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)app/test/test_cryptodev_zuc_test_vectors.h +0
-0@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { },
Quoted 2 lines
Quoted 1 line
From my perspective that makes code to look really ugly...
If the static initialization is not possible, can we simply change the code to do
memset()before first usage of the array?
I agree that the compact notation allowed by the gcc extension is nice, but unfortunately msvc does not implement it.
This subject has previously been addressed [1], and it was noted that, given the existing use of explicitly populated fixed arrays within this file (such as zuc_test_auth_5670b), the proposed modification is considered acceptable.
[1] https://inbox.dpdk.org/dev/CAJFAV8wx0yZXctq90Q2b4PBoA6GVrpMgKQCudWgij==Lf4cDAw@mail.gmail.com/
Quo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x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 }, --2.50.1.vfs.0.0
RE: [PATCH v4 1/3] app/test: remove use of non-standard array range initialization
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)app/test/test_cryptodev_zuc_test_vectors.h +0
-0@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { },From my perspective that makes code to look really ugly...
Quoted 8 lines
Quoted 1 line
If the static initialization is not possible, can we simply change the code to do
memset()before first usage of the array?I agree that the compact notation allowed by the gcc extension is nice, but unfortunately msvc does not implement it.
This subject has previously been addressed [1], and it was noted that, given the existing use of explicitly populated fixed arrays within this file (such as
zuc_test_auth_5670b), the proposed modification is considered acceptable.[1] https://inbox.dpdk.org/dev/CAJFAV8wx0yZXctq90Q2b4PBoA6GVrpMgKQCudWgij==Lf4cDAw@mail.gmail.com/
Ok then, let's go ahead with that, though it looks really clumsy.
Quoted 179 lines
Quoted 179 lines
Quoted 179 lines
app/test/test_cryptodev_zuc_test_vectors.h +153
-4.plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 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,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*36*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*37*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 }, --2.50.1.vfs.0.0
PATCH v4 2/3 drivers/net: remove use of non-standard array range initialization
In reply to Andre MuezerieArray range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:
The fix is to explicitly initialize each element in the range.
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 5 ++++- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 5 files changed, 30 insertions(+), 11 deletions(-)
drivers/common/mlx5/mlx5_malloc.h +2 -2
@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + (mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))#endif #ifdef __cplusplus }
drivers/net/mlx5/mlx5_flow_dv.c +4 -1
@@ -19652,7 +19652,10 @@ mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) .size = sizeof(value.buf), };struct mlx5dv_flow_matcher_attr dv_attr = { - .type =IBV_FLOW_ATTR_NORMAL |IBV_FLOW_ATTR_FLAGS_EGRESS , +/* Cast below is needed to avoid warning until bug +* (https://bugs.dpdk.org/show_bug.cgi?id=1758) is fixed. +*/ + .type =IBV_FLOW_ATTR_NORMAL | (enum ibv_flow_attr_type )IBV_FLOW_ATTR_FLAGS_EGRESS , .priority =0 , .match_criteria_enable =0 , .match_mask = (void *)&mask,
drivers/net/mlx5/mlx5_rx.c +2 -2
@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
drivers/net/mlx5/mlx5_utils.c +2 -2
@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + (((pool)->cfg.malloc(((uint32_t)(flags) | MLX5_NUMA_TOLERANT), (size), (align), (socket))))#endif int mlx5_logtype_ipool;
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
Signature · 1 line
2.50.1.vfs.0.0
Re: [PATCH v4 2/3] drivers/net: remove use of non-standard array range initialization
Hello Andre,
Quoted 8 lines · Andre Muezerie
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:
The commitlog (and title) is not aligned anymore with the patch
content: there is more than the array range init now, and the realtek driver build error is not relevant anymore.
Please reword.
This comment also applies to the first patch of the series.
Quoted 5 lines
The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>Acked-by Howard Wang <[email protected]>
Howard acked on the realtek driver update (in a previous revision). Now that this was reworked in a separate change (if I am not wrong, commit d9ee71b5f1bc ("net/r8169: support RTL8168 series")), I don't think this ack should be kept.
Quoted 13 lines
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 5 ++++- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 5 files changed, 30 insertions(+), 11 deletions(-)drivers/common/mlx5/mlx5_malloc.h +0
-0
drivers/common/mlx5/mlx5_malloc.h void mlx5_free(void *addr); · line 122
Quoted 7 lines
drivers/common/mlx5/mlx5_malloc.h +2
-2@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + (mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))
The "outer" () are unneeded.
Quoted 8 lines
drivers/common/mlx5/mlx5_malloc.h +0
-0#endif #ifdef __cplusplus }drivers/net/mlx5/mlx5_flow_dv.c +0
-0
drivers/net/mlx5/mlx5_flow_dv.c mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) · line 19658
Quoted 8 lines
drivers/net/mlx5/mlx5_flow_dv.c +4
-1@@ -19652,7 +19652,10 @@ mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) .size = sizeof(value.buf), };struct mlx5dv_flow_matcher_attr dv_attr = { - .type =IBV_FLOW_ATTR_NORMAL |IBV_FLOW_ATTR_FLAGS_EGRESS , +/* Cast below is needed to avoid warning until bug +* (https://bugs.dpdk.org/show_bug.cgi?id=1758) is fixed. +*/ + .type =IBV_FLOW_ATTR_NORMAL | (enum ibv_flow_attr_type )IBV_FLOW_ATTR_FLAGS_EGRESS ,
I assigned the bug to Raslan, I hope mlx5 guys can have a look soon.
Quoted 30 lines
drivers/net/mlx5/mlx5_flow_dv.c +0
-0.priority = 0, .match_criteria_enable = 0, .match_mask = (void *)&mask,drivers/net/mlx5/mlx5_rx.c +2
-2@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;drivers/net/mlx5/mlx5_utils.c +0
-0
drivers/net/mlx5/mlx5_utils.c line 34
Quoted 8 lines
drivers/net/mlx5/mlx5_utils.c +2
-2@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + (((pool)->cfg.malloc(((uint32_t)(flags) | MLX5_NUMA_TOLERANT), (size), (align), (socket))))#endif
Ugh, there is a regression in there, from ce2cf3403f2a ("net/mlx5:
support NUMA node fallback") iiuc.
I am surprised this was not caught by the CI with clang.
Do we really need all those (()) ?
Signature · 1 line
David Marchand
Re: [PATCH v4 2/3] drivers/net: remove use of non-standard array range initialization
Quoted 13 lines · David Marchand
Hello Andre,
Quoted 8 lines · Andre Muezerie
Array range initialization is non-standard and is not provided by all compilers. MSVC does not implement it and ends up emitting errors like the one below:
drivers/net/r8169/r8169_phy.c(380):
error C2143: syntax error: missing ':' before '...'case
CFG_METHOD_48...CFG_METHOD_57:
Quoted 7 lines
The commitlog (and title) is not aligned anymore with the patch
content: there is more than the array range init now, and the realtek driver build error is not relevant anymore.
Please reword.This comment also applies to the first patch of the series.
Indeed. I forgot to review the messages after resolving the merge conflict. Updated both.
Quoted 11 lines
Quoted 6 lines
The fix is to explicitly initialize each element in the range.
Signed-off-by Andre Muezerie <[email protected]>Acked-by Howard Wang <[email protected]>Howard acked on the realtek driver update (in a previous revision). Now that this was reworked in a separate change (if I am not wrong, commit
d9ee71b5f1bc("net/r8169: support RTL8168 series")), I don't think this ack should be kept.
You're right. I removed his ack.
Quoted 10 lines
Quoted 10 lines
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 5 ++++- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 5 files changed, 30 insertions(+), 11 deletions(-)
Quoted 14 lines
drivers/common/mlx5/mlx5_malloc.h void mlx5_free(void *addr); · line 122
Quoted 12 lines
drivers/common/mlx5/mlx5_malloc.h +2
-2@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + (mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))The "outer" () are unneeded.
Removed.
Quoted 12 lines
Quoted 12 lines
drivers/common/mlx5/mlx5_malloc.h +0
-0#endif #ifdef __cplusplus }drivers/net/mlx5/mlx5_flow_dv.c +0
-0@@ -19652,7 +19652,10 @@ mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) .size = sizeof(value.buf), };
Quoted 8 lines
drivers/net/mlx5/mlx5_flow_dv.c mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) · line 19658
Quoted 6 lines
drivers/net/mlx5/mlx5_flow_dv.c +4
-1struct mlx5dv_flow_matcher_attr dv_attr = { - .type =IBV_FLOW_ATTR_NORMAL |IBV_FLOW_ATTR_FLAGS_EGRESS , +/* Cast below is needed to avoid warning until bug +* (https://bugs.dpdk.org/show_bug.cgi?id=1758) is fixed. +*/ + .type =IBV_FLOW_ATTR_NORMAL | (enum ibv_flow_attr_type )IBV_FLOW_ATTR_FLAGS_EGRESS ,I assigned the bug to Raslan, I hope mlx5 guys can have a look soon.
Awesome. It would be great to have that fixed. It's really confusing as it is now.
Quoted 45 lines
Quoted 32 lines
drivers/net/mlx5/mlx5_flow_dv.c +0
-0.priority = 0, .match_criteria_enable = 0, .match_mask = (void *)&mask,drivers/net/mlx5/mlx5_rx.c +2
-2@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;drivers/net/mlx5/mlx5_utils.c +0
-0drivers/net/mlx5/mlx5_utils.c line 34
Quoted 8 lines
drivers/net/mlx5/mlx5_utils.c +2
-2@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + (((pool)->cfg.malloc(((uint32_t)(flags) | MLX5_NUMA_TOLERANT), (size), (align), (socket))))#endif Ugh, there is a regression in there, from
ce2cf3403f2a("net/mlx5:
support NUMA node fallback") iiuc.
I am surprised this was not caught by the CI with clang.
Quoted 2 lines
Do we really need all those (()) ?
This macro is not used with gcc and clang, and when using msvc the code that makes use of this macro was not enabled yet, so it was not expected that the CI would catch this for now.
Most parentesis in this macro definition are not strictly necessary, but they add safety when complex expressions are used. I did remove one of the outer parentesis which was not needed, but left one otherwise the validation script complains:
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #89: FILE: drivers/net/mlx5/mlx5_utils.c:32:
+#define pool_malloc(pool, flags, size, align, socket) \
+ (pool)->cfg.malloc((uint32_t)(flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket))
Thanks for the review and the comments.
Andre Muezerie
Quoted 3 lines
Signature · 2 lines
-- David Marchand
PATCH v4 3/3 drivers: enable drivers to be compiled with MSVC
In reply to Andre MuezerieNow that all issues related to drivers are addressed they can be enabled to be built with MSVC.
--- drivers/meson.build | 4 ---- 1 file changed, 4 deletions(-)
drivers/meson.build +0 -4
@@ -1,10 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_ms_compiler - subdir_done() -endif - # Defines the order of dependencies evaluation subdirs = [ 'common',
Signature · 1 line
2.50.1.vfs.0.0
v5 cover enable drivers to be compiled with MSVC
In reply to Andre MuezerieThis patchset solves the last issues preventing drivers from being compiled with MSVC and enables drivers to be built with it.
v5:
- Remove unnecessary parentheses from macros
v4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.
v3:
- Add a patch to enable drivers to be compiled with MSVC.
v2:
- Rebase on top of latest main.
Andre Muezerie (3):
app/test: remove use of non-standard array range initialization drivers/net: make code compatible with MSVC
drivers: enable drivers to be compiled with MSVC
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_flow_dv.c | 5 +- drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 7 files changed, 183 insertions(+), 18 deletions(-)
--
2.50.1.vfs.0.1
PATCH v5 1/3 app/test: remove use of non-standard array range initialization
Removed array range initializations as they are non-standard and not implemented by MSVC.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*04*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*05*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*06*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*07*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*08*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*09*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*11*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11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0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.50.1.vfs.0.1
PATCH v5 2/3 drivers/net: make code compatible with MSVC
In reply to Andre MuezerieRemoved use of non-standard array range initialization, which is non-standard and is not supported by MSVC.
Fixed macro mlx5_malloc_numa_tolerant: added missing backslash.
Fixed macro pool_malloc: added missing backslash and added prefix MLX5_ to "NUMA_TOLERANT" parameter.
Added temporary workaround for bug
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 5 ++++- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 5 files changed, 30 insertions(+), 11 deletions(-)
drivers/common/mlx5/mlx5_malloc.h +2 -2
@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket))#endif #ifdef __cplusplus }
drivers/net/mlx5/mlx5_flow_dv.c +4 -1
@@ -19652,7 +19652,10 @@ mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) .size = sizeof(value.buf), };struct mlx5dv_flow_matcher_attr dv_attr = { - .type =IBV_FLOW_ATTR_NORMAL |IBV_FLOW_ATTR_FLAGS_EGRESS , +/* Cast below is needed to avoid warning until bug +* (https://bugs.dpdk.org/show_bug.cgi?id=1758) is fixed. +*/ + .type =IBV_FLOW_ATTR_NORMAL | (enum ibv_flow_attr_type )IBV_FLOW_ATTR_FLAGS_EGRESS , .priority =0 , .match_criteria_enable =0 , .match_mask = (void *)&mask,
drivers/net/mlx5/mlx5_rx.c +2 -2
@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
drivers/net/mlx5/mlx5_utils.c +2 -2
@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + ((pool)->cfg.malloc((uint32_t)(flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))#endif int mlx5_logtype_ipool;
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
Signature · 1 line
2.50.1.vfs.0.1
PATCH v5 3/3 drivers: enable drivers to be compiled with MSVC
In reply to Andre MuezerieNow that all issues related to drivers are addressed they can be enabled to be built with MSVC.
--- drivers/meson.build | 4 ---- 1 file changed, 4 deletions(-)
drivers/meson.build +0 -4
@@ -1,10 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_ms_compiler - subdir_done() -endif - # Defines the order of dependencies evaluation subdirs = [ 'common',
Signature · 1 line
2.50.1.vfs.0.1
v5 cover enable drivers to be compiled with MSVC
In reply to Andre MuezerieThis patchset solves the last issues preventing drivers from being compiled with MSVC and enables drivers to be built with it.
v5:
- Remove unnecessary parentheses from macros
v4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.
v3:
- Add a patch to enable drivers to be compiled with MSVC.
v2:
- Rebase on top of latest main.
Andre Muezerie (3):
app/test: remove use of non-standard array range initialization drivers/net: make code compatible with MSVC
drivers: enable drivers to be compiled with MSVC
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_flow_dv.c | 5 +- drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 7 files changed, 183 insertions(+), 18 deletions(-)
--
2.50.1.vfs.0.1
PATCH RESEND v5 1/3 app/test: remove use of non-standard array range initialization
Removed array range initializations as they are non-standard and not implemented by MSVC.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*04*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x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,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
--
2.50.1.vfs.0.1
PATCH RESEND v5 2/3 drivers/net: make code compatible with MSVC
In reply to Andre MuezerieRemoved use of non-standard array range initialization, which is non-standard and is not supported by MSVC.
Fixed macro mlx5_malloc_numa_tolerant: added missing backslash.
Fixed macro pool_malloc: added missing backslash and added prefix MLX5_ to "NUMA_TOLERANT" parameter.
Added temporary workaround for bug
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 5 ++++- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 5 files changed, 30 insertions(+), 11 deletions(-)
drivers/common/mlx5/mlx5_malloc.h +2 -2
@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket))#endif #ifdef __cplusplus }
drivers/net/mlx5/mlx5_flow_dv.c +4 -1
@@ -19652,7 +19652,10 @@ mlx5_flow_dv_discover_counter_offset_support(struct rte_eth_dev *dev) .size = sizeof(value.buf), };struct mlx5dv_flow_matcher_attr dv_attr = { - .type =IBV_FLOW_ATTR_NORMAL |IBV_FLOW_ATTR_FLAGS_EGRESS , +/* Cast below is needed to avoid warning until bug +* (https://bugs.dpdk.org/show_bug.cgi?id=1758) is fixed. +*/ + .type =IBV_FLOW_ATTR_NORMAL | (enum ibv_flow_attr_type )IBV_FLOW_ATTR_FLAGS_EGRESS , .priority =0 , .match_criteria_enable =0 , .match_mask = (void *)&mask,
drivers/net/mlx5/mlx5_rx.c +2 -2
@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
drivers/net/mlx5/mlx5_utils.c +2 -2
@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + ((pool)->cfg.malloc((uint32_t)(flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))#endif int mlx5_logtype_ipool;
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
--
2.50.1.vfs.0.1
PATCH RESEND v5 3/3 drivers: enable drivers to be compiled with MSVC
In reply to Andre MuezerieNow that all issues related to drivers are addressed they can be enabled to be built with MSVC.
--- drivers/meson.build | 4 ---- 1 file changed, 4 deletions(-)
drivers/meson.build +0 -4
@@ -1,10 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_ms_compiler - subdir_done() -endif - # Defines the order of dependencies evaluation subdirs = [ 'common',
--
2.50.1.vfs.0.1
Re: [PATCH RESEND v5 0/3] enable drivers to be compiled with MSVC
In reply to Andre MuezerieQuoted 24 lines · Andre Muezerie
This patchset solves the last issues preventing drivers from being compiled with MSVC and enables drivers to be built with it.
v5:
- Remove unnecessary parentheses from macrosv4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.v3:
- Add a patch to enable drivers to be compiled with MSVC.v2:
- Rebase on top of latest main.Andre Muezerie (3):
app/test: remove use of non-standard array range initializationdrivers/net: make code compatible with MSVC
drivers: enable drivers to be compiled with MSVC
Quoted 8 lines
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_flow_dv.c | 5 +- drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 7 files changed, 183 insertions(+), 18 deletions(-)
This series needs a (trivial) rebase.
The CI has been a bit bumpy with new drivers and changes in mlx5.
Please send a v6.
Signature · 1 line
David Marchand
v6 cover enable drivers to be compiled with MSVC
In reply to Andre MuezerieThis patchset solves the last issues preventing drivers from being compiled with MSVC and enables drivers to be built with it.
-v6:
- Remove temporary workaround for bug
(https://bugs.dpdk.org/show_bug.cgi?id=1758)
introduced in an earlier iteration.
v5:
- Remove unnecessary parentheses from macros
v4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.
v3:
- Add a patch to enable drivers to be compiled with MSVC.
v2:
- Rebase on top of latest main.
Andre Muezerie (3):
app/test: remove use of non-standard array range initialization drivers/net: make code compatible with MSVC
drivers: enable drivers to be compiled with MSVC
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 6 files changed, 179 insertions(+), 17 deletions(-)
--
2.50.1.vfs.0.2
PATCH v6 1/3 app/test: remove use of non-standard array range initialization
Removed array range initializations as they are non-standard and not implemented by MSVC.
--- app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 3 deletions(-)
app/test/test_cryptodev_zuc_test_vectors.h +153 -3
@@ -1067,7 +1067,57 @@ static struct wireless_test_data zuc_test_case_auth_4000b_mac_128b = { }, .plaintext = { .data = { - [0 ... 499] = 0x11, +/* [0 ... 499] = 0x11, */ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*00*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*01*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*02*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*03*/ +0x11 ,0x11 ,0x11 ,0x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0x11 ,0x11 ,0x11 ,/*38*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*39*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*40*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*41*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*42*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*43*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*44*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*45*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*46*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*47*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*48*/ +0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,0x11 ,/*49*/ }, .len = 4000 },
Signature · 1 line
2.50.1.vfs.0.2
PATCH v6 2/3 drivers/net: make code compatible with MSVC
In reply to Andre MuezerieRemoved use of non-standard array range initialization, which is non-standard and is not supported by MSVC.
Fixed macro mlx5_malloc_numa_tolerant: added missing backslash.
Fixed macro pool_malloc: added missing backslash and added prefix MLX5_ to "NUMA_TOLERANT" parameter.
--- drivers/common/mlx5/mlx5_malloc.h | 4 ++-- drivers/net/mlx5/mlx5_rx.c | 4 ++-- drivers/net/mlx5/mlx5_utils.c | 4 ++-- drivers/net/octeon_ep/otx_ep_mbox.c | 24 ++++++++++++++++++++---- 4 files changed, 26 insertions(+), 10 deletions(-)
drivers/common/mlx5/mlx5_malloc.h +2 -2
@@ -118,8 +118,8 @@ void mlx5_free(void *addr); mem; \ }))#else -#define mlx5_malloc_numa_tolerant (flags, size, align, socket) - (mlx5_malloc ((flags) |MLX5_NUMA_TOLERANT , (size), (align), (socket))); +#define mlx5_malloc_numa_tolerant (flags, size, align, socket) \ + mlx5_malloc((flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket))#endif #ifdef __cplusplus }
drivers/net/mlx5/mlx5_rx.c +2 -2
@@ -1093,7 +1093,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)break ; } pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
@@ -1273,7 +1273,7 @@ mlx5_rx_burst_out_of_order(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts }if (!pkt) { pkt = seg; -MLX5_ASSERT (len >= (rxq->crc_present <<2 )); +MLX5_ASSERT (len >= (int )(rxq->crc_present <<2 )); pkt->ol_flags &=RTE_MBUF_F_EXTERNAL ;if (rxq->cqe_comp_layout && mcqe) cqe = &rxq->title_cqe;
drivers/net/mlx5/mlx5_utils.c +2 -2
@@ -29,8 +29,8 @@ mem; \ }))#else -#define pool_malloc (pool, flags, size, align, socket) - (pool)->cfg.malloc ((uint32_t )(flags) |NUMA_TOLERANT , (size), (align), (socket)); +#define pool_malloc (pool, flags, size, align, socket) \ + ((pool)->cfg.malloc((uint32_t)(flags) | MLX5_NUMA_TOLERANT, (size), (align), (socket)))#endif int mlx5_logtype_ipool;
drivers/net/octeon_ep/otx_ep_mbox.c +20 -4
@@ -17,10 +17,26 @@* with new command and it's version info. */ static uint32_t otx_ep_cmd_versions[OTX_EP_MBOX_CMD_MAX ] = { - [0 ...OTX_EP_MBOX_CMD_DEV_REMOVE ] =OTX_EP_MBOX_VERSION_V1 , - [OTX_EP_MBOX_CMD_GET_FW_INFO ...OTX_EP_MBOX_NOTIF_LINK_STATUS ] =OTX_EP_MBOX_VERSION_V2 , - [OTX_EP_MBOX_NOTIF_PF_FLR ] =OTX_EP_MBOX_VERSION_V3 - +/* [0 ... OTX_EP_MBOX_CMD_DEV_REMOVE] = OTX_EP_MBOX_VERSION_V1, */ +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +OTX_EP_MBOX_VERSION_V1 , +/* [OTX_EP_MBOX_CMD_GET_FW_INFO ... OTX_EP_MBOX_NOTIF_LINK_STATUS] = +* OTX_EP_MBOX_VERSION_V2, +*/ +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +OTX_EP_MBOX_VERSION_V2 , +/* [OTX_EP_MBOX_NOTIF_PF_FLR] = OTX_EP_MBOX_VERSION_V3 */ +OTX_EP_MBOX_VERSION_V3 , }; static int
Signature · 1 line
2.50.1.vfs.0.2
PATCH v6 3/3 drivers: enable drivers to be compiled with MSVC
In reply to Andre MuezerieNow that all issues related to drivers are addressed they can be enabled to be built with MSVC.
--- drivers/meson.build | 4 ---- 1 file changed, 4 deletions(-)
drivers/meson.build +0 -4
@@ -1,10 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation -if is_ms_compiler - subdir_done() -endif - # Defines the order of dependencies evaluation subdirs = [ 'common',
Signature · 1 line
2.50.1.vfs.0.2
Re: [PATCH v6 0/3] enable drivers to be compiled with MSVC
In reply to Andre MuezerieQuoted 29 lines · Andre Muezerie
This patchset solves the last issues preventing drivers from being compiled with MSVC and enables drivers to be built with it.
-v6:
- Remove temporary workaround for bug
(https://bugs.dpdk.org/show_bug.cgi?id=1758)
introduced in an earlier iteration.v5:
- Remove unnecessary parentheses from macrosv4:
- Add explicit casts to avoid warnings in mlx5 driver
(https://bugs.dpdk.org/show_bug.cgi?id=1758).
- Add cast to drivers\net\mlx5\mlx5_rx.c to avoid warnings about signed/unsigned comparison.v3:
- Add a patch to enable drivers to be compiled with MSVC.v2:
- Rebase on top of latest main.Andre Muezerie (3):
app/test: remove use of non-standard array range initializationdrivers/net: make code compatible with MSVC
drivers: enable drivers to be compiled with MSVC
Quoted 7 lines
app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++++++++++++++++- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/meson.build | 4 - drivers/net/mlx5/mlx5_rx.c | 4 +- drivers/net/mlx5/mlx5_utils.c | 4 +- drivers/net/octeon_ep/otx_ep_mbox.c | 24 +++- 6 files changed, 179 insertions(+), 17 deletions(-)
Series applied.
Thanks Andre.
Signature · 1 line
David Marchand