On 10/20/2017 1:26 AM, Jingjing Wu wrote: > enable device and queue setup ops like: > > - dev_configure > - dev_start > - dev_stop > - dev_close > - dev_infos_get > - rx_queue_start > - rx_queue_stop > - tx_queue_start > - tx_queue_stop > - rx_queue_setup > - rx_queue_release > - tx_queue_setup > - tx_queue_release > > Signed-off-by: Jingjing Wu <jingjing...@intel.com>
<...> > static int > +avf_dev_configure(struct rte_eth_dev *dev) > +{ > + struct avf_adapter *ad = > + AVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); > + struct rte_eth_conf *dev_conf = &dev->data->dev_conf; > + > + /* Initialize to TRUE. If any of Rx queues doesn't meet the bulk > + * allocation or vector Rx preconditions we will reset it. > + */ > + ad->rx_vec_allowed = true; > + ad->tx_simple_allowed = true; > + ad->tx_vec_allowed = true; > + > + /* Vlan stripping setting */ > + if (dev_conf->rxmode.hw_vlan_strip) What about using new method for offloading configuration: ce17eddefc20 ("ethdev: introduce Rx queue offloads API") cba7f53b717d ("ethdev: introduce Tx queue offloads API") cc'ed Shahaf if support needed.