From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C730432E1; Thu, 9 Nov 2023 08:43:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 549034021E; Thu, 9 Nov 2023 08:43:39 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 5DAA04013F for ; Thu, 9 Nov 2023 08:43:38 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 3F06D432E2; Thu, 9 Nov 2023 08:43:38 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1310] iavf : max_rtx_queues not true when network adaptor not support large vf Date: Thu, 09 Nov 2023 07:43:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 22.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yue.ma@ericsson.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=16995158180.a5496931F.302913 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --16995158180.a5496931F.302913 Date: Thu, 9 Nov 2023 08:43:38 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1310 Bug ID: 1310 Summary: iavf : max_rtx_queues not true when network adaptor not support large vf Product: DPDK Version: 22.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: yue.ma@ericsson.com Target Milestone: --- our app code use dev_info->max_tx_queues to check the max queue. we get dev_info->max_rx_queues=3D265(IAVF_MAX_NUM_QUEUES_LV), but when we t= ry to requet 30 tx queue, we got iavf_dev_configure(): large VF is not supported. by check code we find that : max queue number of nomal vf is 16 (IAVF_MAX_NUM_QUEUES_DFLT). may be the code need to change like this : drivers/net/iavf/iavf_ethdev.c:=20=20=20=20=20=20=20=20=20 static int iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_inf= o) { struct iavf_adapter *adapter =3D IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); struct iavf_info *vf =3D &adapter->vf; if (adapter->closed) return -EIO; dev_info->max_rx_queues =3D IAVF_MAX_NUM_QUEUES_LV; dev_info->max_tx_queues =3D IAVF_MAX_NUM_QUEUES_LV; + if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_LARGE_NUM_QPAIRS){ + dev_info->max_rx_queues =3D IAVF_MAX_NUM_QUEUES_DFLT; + dev_info->max_tx_queues =3D IAVF_MAX_NUM_QUEUES_DFLT;=20=20= =20=20=20 + } --=20 You are receiving this mail because: You are the assignee for the bug.= --16995158180.a5496931F.302913 Date: Thu, 9 Nov 2023 08:43:38 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1310
Summary iavf : max_rtx_queues not true when network adaptor not suppo= rt large vf
Product DPDK
Version 22.11
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter yue.ma@ericsson.com
Target Milestone ---

our app code use dev_info->max_=
tx_queues to check the max queue.
we get dev_info->max_rx_queues=3D265(IAVF_MAX_NUM_QUEUES_LV), but when w=
e try to
requet 30 tx queue, we got  iavf_dev_configure(): large VF is not supported.
by check code we find that :
max queue number of  nomal vf  is 16 (IAVF_MAX_NUM_QUEUES_DFLT).

may be the code need to change like this :
drivers/net/iavf/iavf_ethdev.c:=20=20=20=20=20=20=20=20=20
static int
iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_inf=
o)
{
        struct iavf_adapter *adapter =3D
                IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
        struct iavf_info *vf =3D &adapter->vf;

        if (adapter->closed)
                return -EIO;

        dev_info->max_rx_queues =3D IAVF_MAX_NUM_QUEUES_LV;
        dev_info->max_tx_queues =3D IAVF_MAX_NUM_QUEUES_LV;
+       if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_LARGE_NUM_QPAI=
RS){
+               dev_info->max_rx_queues =3D IAVF_MAX_NUM_QUEUES_DFLT;
+               dev_info->max_tx_queues =3D IAVF_MAX_NUM_QUEUES_DFLT;=20=
=20=20=20=20
+       }
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16995158180.a5496931F.302913--