On 5/27/2017 4:47 AM, Jingjing Wu wrote: > i40e base code upate. The main changes are: > - use virtchnl.h instead of i40e_virtchnl.h > - add support for Adaptive Virtual Function > - add new AQ commands for read/write PHY registers > - add new phy types for 25G
Hi Jingjing, Patchset giving build error with clang [1] because of assignment between different enum types, can you please check the build errors? [1] .../drivers/net/i40e/i40e_pf.c:349:32: error: implicit conversion from enumeration type 'enum i40e_vsi_type' to different enumeration type 'enum virtchnl_vsi_type' [-Werror,-Wenum-conversion] vf_res->vsi_res[0].vsi_type = I40E_VSI_SRIOV; ~ ^~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1195:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_100MB; ~ ^~~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1198:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_1GB; ~ ^~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1201:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_10GB; ~ ^~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1204:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_20GB; ~ ^~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1207:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_25GB; ~ ^~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1210:44: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] event.event_data.link_event.link_speed = I40E_LINK_SPEED_40GB; ~ ^~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_pf.c:1214:4: error: implicit conversion from enumeration type 'enum i40e_aq_link_speed' to different enumeration type 'enum virtchnl_link_speed' [-Werror,-Wenum-conversion] I40E_LINK_SPEED_UNKNOWN; ^~~~~~~~~~~~~~~~~~~~~~~ 8 errors generated. .../mk/internal/rte.compile-pre.mk:138: recipe for target 'i40e_pf.o' failed make[4]: *** [i40e_pf.o] Error 1 make[4]: *** Waiting for unfinished jobs.... .../drivers/net/i40e/i40e_ethdev_vf.c:275:32: error: implicit conversion from enumeration type 'enum virtchnl_link_speed' to different enumeration type 'enum i40e_aq_link_speed' [-Werror,-Wenum-conversion] vpe->event_data.link_event.link_speed; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ .../drivers/net/i40e/i40e_ethdev_vf.c:1274:30: error: implicit conversion from enumeration type 'enum virtchnl_vsi_type' to different enumeration type 'enum i40e_vsi_type' [-Werror,-Wenum-conversion] vf->vsi.type = vf->vsi_res->vsi_type; ~ ~~~~~~~~~~~~~^~~~~~~~ .../drivers/net/i40e/i40e_ethdev_vf.c:1339:50: error: implicit conversion from enumeration type 'enum virtchnl_link_speed' to different enumeration type 'enum i40e_aq_link_speed' [-Werror,-Wenum-conversion] vf->link_speed = pf_msg->event_data.link_event.link_speed; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ <...>