[dpdk-dev] i40evf: add ops for rx queue and tx queue

Message ID 1461410959-16983-1-git-send-email-beilei.xing@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Bruce Richardson
Headers

Commit Message

Xing, Beilei April 23, 2016, 11:29 a.m. UTC
  Add 3 vf ops: rx_queue_count, rxq_info_get and
txq_info_get. They can reuse corresponding pv APIs.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
---
 drivers/net/i40e/i40e_ethdev_vf.c | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Jingjing Wu April 26, 2016, 1:56 a.m. UTC | #1
On 4/23/2016 7:29 PM, Xing, Beilei wrote:
> Add 3 vf ops: rx_queue_count, rxq_info_get and
> txq_info_get. They can reuse corresponding pv APIs.
>
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> ---
>   drivers/net/i40e/i40e_ethdev_vf.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
> index 2bce69b..87d6a64 100644
> --- a/drivers/net/i40e/i40e_ethdev_vf.c
> +++ b/drivers/net/i40e/i40e_ethdev_vf.c
> @@ -214,6 +214,9 @@ static const struct eth_dev_ops i40evf_eth_dev_ops = {
>   	.rx_descriptor_done   = i40e_dev_rx_descriptor_done,
>   	.tx_queue_setup       = i40e_dev_tx_queue_setup,
>   	.tx_queue_release     = i40e_dev_tx_queue_release,
> +	.rx_queue_count       = i40e_dev_rx_queue_count,
> +	.rxq_info_get         = i40e_rxq_info_get,
> +	.txq_info_get         = i40e_txq_info_get,
>   	.mac_addr_add	      = i40evf_add_mac_addr,
>   	.mac_addr_remove      = i40evf_del_mac_addr,
>   	.reta_update          = i40evf_dev_rss_reta_update,

Acked-by: Jingjing Wu <jingjing.wu@intel.com <mailto:jingjing.wu@intel.com>>
  
Jingjing Wu April 26, 2016, 1:58 a.m. UTC | #2
On 4/23/2016 7:29 PM, Xing, Beilei wrote:
> Add 3 vf ops: rx_queue_count, rxq_info_get and
> txq_info_get. They can reuse corresponding pv APIs.
a typo here? pv -> pf ?
>
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> ---
>   drivers/net/i40e/i40e_ethdev_vf.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
> index 2bce69b..87d6a64 100644
> --- a/drivers/net/i40e/i40e_ethdev_vf.c
> +++ b/drivers/net/i40e/i40e_ethdev_vf.c
> @@ -214,6 +214,9 @@ static const struct eth_dev_ops i40evf_eth_dev_ops = {
>   	.rx_descriptor_done   = i40e_dev_rx_descriptor_done,
>   	.tx_queue_setup       = i40e_dev_tx_queue_setup,
>   	.tx_queue_release     = i40e_dev_tx_queue_release,
> +	.rx_queue_count       = i40e_dev_rx_queue_count,
> +	.rxq_info_get         = i40e_rxq_info_get,
> +	.txq_info_get         = i40e_txq_info_get,
>   	.mac_addr_add	      = i40evf_add_mac_addr,
>   	.mac_addr_remove      = i40evf_del_mac_addr,
>   	.reta_update          = i40evf_dev_rss_reta_update,
  

Patch

diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index 2bce69b..87d6a64 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -214,6 +214,9 @@  static const struct eth_dev_ops i40evf_eth_dev_ops = {
 	.rx_descriptor_done   = i40e_dev_rx_descriptor_done,
 	.tx_queue_setup       = i40e_dev_tx_queue_setup,
 	.tx_queue_release     = i40e_dev_tx_queue_release,
+	.rx_queue_count       = i40e_dev_rx_queue_count,
+	.rxq_info_get         = i40e_rxq_info_get,
+	.txq_info_get         = i40e_txq_info_get,
 	.mac_addr_add	      = i40evf_add_mac_addr,
 	.mac_addr_remove      = i40evf_del_mac_addr,
 	.reta_update          = i40evf_dev_rss_reta_update,