From: Qi Zhang Date: Tue, 23 Jun 2020 02:38:29 +0000 (+0800) Subject: net/ice: complete device configure in DCF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6f0a54b74bce90fca6264773db1b0bf13871874f;p=dpdk.git net/ice: complete device configure in DCF Enable device configuration function in DCF. Signed-off-by: Qi Zhang Signed-off-by: Ting Xu Reviewed-by: Qiming Yang --- diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index eb37081914..01412ced00 100644 --- a/drivers/net/ice/ice_dcf_ethdev.c +++ b/drivers/net/ice/ice_dcf_ethdev.c @@ -57,8 +57,17 @@ ice_dcf_dev_stop(struct rte_eth_dev *dev) } static int -ice_dcf_dev_configure(__rte_unused struct rte_eth_dev *dev) +ice_dcf_dev_configure(struct rte_eth_dev *dev) { + struct ice_dcf_adapter *dcf_ad = dev->data->dev_private; + struct ice_adapter *ad = &dcf_ad->parent; + + ad->rx_bulk_alloc_allowed = true; + ad->tx_simple_allowed = true; + + if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG) + dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH; + return 0; }