> > > + > > > new_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX; > > > + new_link.link_status = vport->link_up ? RTE_ETH_LINK_UP : > > > + RTE_ETH_LINK_DOWN; > > > new_link.link_autoneg = !(dev->data->dev_conf.link_speeds & > > > RTE_ETH_LINK_SPEED_FIXED); > > Better to use RTE_ETH_LINK_[AUTONEG/FIXED] instead. > > > [Liu, Mingxia] According to the comment description of struct rte_eth_conf, > RTE_ETH_LINK_SPEED_FIXED is better. > struct rte_eth_conf { > uint32_t link_speeds; /**< bitmap of RTE_ETH_LINK_SPEED_XXX of speeds to be > used. RTE_ETH_LINK_SPEED_FIXED disables link > autonegotiation, and a unique speed shall be > set. Otherwise, the bitmap defines the set of > speeds to be advertised. If the special value > RTE_ETH_LINK_SPEED_AUTONEG (0) is used, all > speeds > supported are advertised. */ > I am talking about link_autoneg but not link_speeds
- [PATCH v3 2/6] common/idpf: add RSS set/get ops Mingxia Liu
- RE: [PATCH v3 2/6] common/idpf: add RSS set/get ops Wu, Jingjing
- RE: [PATCH v3 2/6] common/idpf: add RSS set/get ops Liu, Mingxia
- [PATCH v3 3/6] common/idpf: support single q scatter RX datap... Mingxia Liu
- [PATCH v3 4/6] common/idpf: add rss_offload hash in singleq r... Mingxia Liu
- [PATCH v3 5/6] common/idpf: add alarm to support handle vchnl... Mingxia Liu
- RE: [PATCH v3 5/6] common/idpf: add alarm to support han... Wu, Jingjing
- RE: [PATCH v3 5/6] common/idpf: add alarm to support... Liu, Mingxia
- RE: [PATCH v3 5/6] common/idpf: add alarm to sup... Wu, Jingjing
- [PATCH v3 6/6] common/idpf: add xstats ops Mingxia Liu
- [PATCH v4 0/6] add idpf pmd enhancement features Mingxia Liu
- [PATCH v4 1/6] common/idpf: add hw statistics Mingxia Liu
- [PATCH v4 2/6] common/idpf: add RSS set/get ops Mingxia Liu
- [PATCH v4 3/6] common/idpf: support single q scatter RX ... Mingxia Liu
- [PATCH v4 4/6] common/idpf: add rss_offload hash in sing... Mingxia Liu
- [PATCH v4 5/6] common/idpf: add alarm to support handle ... Mingxia Liu
- [PATCH v4 6/6] common/idpf: add xstats ops Mingxia Liu
- [PATCH v4 0/6] add idpf pmd enhancement features Mingxia Liu
- [PATCH v5 1/6] common/idpf: add hw statistics Mingxia Liu