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 C10EC41CB3; Thu, 16 Feb 2023 19:10:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACA7142DAE; Thu, 16 Feb 2023 19:10:44 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id BB93242D1A for ; Thu, 16 Feb 2023 19:10:42 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id v3so1810067pgh.4 for ; Thu, 16 Feb 2023 10:10:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=YT+dBorlNjKNl37sM7fH6ms5S4NLXABkDeRXT1IfPS8=; b=qAMfPkjfmgaZiG2hc7sOXDrtbE4mjjK7H15xNZygcoXfCu1C7q0m72nAq1la+jiJ8m hRb+uPO89Rid8sTOnIH1YQcPpxBhzpvKBZial6iE0ZE3Aik3jJxLrUhH2pJ7ZQnDXZgE 6W6/guwdJpUsH84tfdc/btoG3quluzFx+bhMhyOinpK0oRNsjg/L0VIv43+2T7mnf/oC 3YbKDzbrgPNbIuBH0aJ1ZEexk6G9GW8c+W6YIE27c2oo88j68WyZ7DktC1bv5PqN+Drg QexVPhnDIgkVW/vXq9TQa/Y/zyzA/IV5oDrP2R+fngmfIGfn9oyTJF/DRUj7VnnG4B4Z aA3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YT+dBorlNjKNl37sM7fH6ms5S4NLXABkDeRXT1IfPS8=; b=Nly9ko6o1FaH78DY8ebS8UBVyBne3mv3qi0r4FgzpVdLAgDJk+BGXVjlLfAcFnwBmJ Szfg49oF7FDnwguVtrkzFZHQWa/xGUMzhsIx6iz0kxnHZN9PJld7eBER41IuYoxUlnHE e7J1p+Ghhiar1IzWcCcq8xvMZKE211/B6zLhvnyOrz7twQLyx2fFBZsmwllK41cYyLAU 0aXAWlfToVPpXPYNLcKdd/Okb5C+Bo+tjmBp39dfAuET7cHhk7zuwj/6bSQujnlVlc49 BI/OWDPxPcegdVXGYl/rYNnI6QIErVyn9yGoxg1zX+9n5qyM2XIKFd58EQ3QTOskBcuf S30g== X-Gm-Message-State: AO0yUKXDPsmyvyCr2fwA64bf3aDacfVqxEtKFpDrTTD/YBu07vC4AFq8 flI3xtQU21asByGjidKNxclKccnKdoKsqUvcQ1w= X-Google-Smtp-Source: AK7set/6E6LSt8lRPkPXODw2qoRNrIk9it/QNBlnsTJPoJUIm2odHqy6mDObWGcvoI4aut278kIG8W3EtXTQ3LhjxSo= X-Received: by 2002:aa7:9aee:0:b0:5a8:49c8:122e with SMTP id y14-20020aa79aee000000b005a849c8122emr1114869pfp.5.1676571039745; Thu, 16 Feb 2023 10:10:39 -0800 (PST) MIME-Version: 1.0 From: Rajasekhar Pulluru Date: Thu, 16 Feb 2023 23:40:27 +0530 Message-ID: Subject: Multiple Tx-Queues not working as expected To: dev@dpdk.org Content-Type: multipart/alternative; boundary="00000000000043ccaf05f4d51d05" 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 --00000000000043ccaf05f4d51d05 Content-Type: text/plain; charset="UTF-8" Hi Team, I am trying to set-up 8 Tx-Queues (but only 1 Rx-Queue) and burst traffic out of different Tx-Queues from the same cpu core on an ixgbe nic (10G). Although transmitted packets reach the peer, reading the statistics indicates only the Tx-q[0] has non-zero packets and bytes count, the rest of the Tx-q[1] to Tx-q[7] all have zero packets and bytes count. I am following the below sequence. 1. configuration rte_eth_dev_configure(port-id, 1 /* only 1 rx-q */, 8 /* tx-queues */, &dev_conf /* memset of 0 on this dev_conf done */); 2. tx queue set-up struct rte_eth_dev_info dev_info; rte_eth_dev_info_get(port-id, &dev_info); struct rte_eth_txconf tx_conf; memcpy(&tx_conf, &dev_info.default_txconf, sizeof tx_conf); for(i=0; i<8; i++) { rte_eth_tx_queue_setup(port-id, i /* queue-id */, 1024 /* num_of_txdesc */, numa_node, &tx_conf;) } 3. rx queue set-up rte_eth_rx_queue_setup(port-id, 0, 1024 /* num_of_rxdesc */, &rx_conf, mbuf_pool); 4. start the port rte_eth_dev_start(port-id); 5. call the below tx burst function with different queue-id (range 0 to 7) every-time for every burst of new packets to be transmitted rte_eth_tx_burst(port-id, queue-id, pkts_burst, nb_pkts_burst); 6. read stats using rte_eth_xstats_get and verified that only the first tx-q has non-zero packets and bytes count, rest of the tx-q's have 0 packets and bytes count. What could be wrong here? Appreciate any help. Thanks & Regards, Rajasekhar ReplyForward --00000000000043ccaf05f4d51d05 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=
Hi Team,

I am= trying to set-up 8 Tx-Queues (but only 1 Rx-Queue) and burst traffic out o= f different Tx-Queues from the same cpu core on an ixgbe nic (10G). Althoug= h transmitted packets reach the peer, reading the statistics indicates only= the Tx-q[0] has non-zero packets and bytes count, the rest of the Tx-q[1] = to Tx-q[7] all have zero packets and bytes count.=C2=A0

I am following the below sequence.=C2=A0

1. = configuration
rte_eth_dev_configure(port-id, 1 /* only 1 rx-q */, 8 /* t= x-queues */, &dev_conf /* memset of 0 on this dev_conf done */);
2. tx queue set-up
struct rte_eth_dev_info dev_info;
rte_eth_dev_inf= o_get(port-id, &dev_info);

struct rte_eth_txconf tx_conf;
mem= cpy(&tx_conf, &dev_info.default_txconf, sizeof tx_conf);
for(i= =3D0; i<8; i++) {
rte_eth_tx_queue_setup(port-id, i /* queue-id */, 1= 024 /* num_of_txdesc */, numa_node, &tx_conf;)
}

3. rx queue = set-up
rte_eth_rx_queue_setup(port-id, 0, 1024 /* num_of_rxdesc */, &= ;rx_conf, mbuf_pool);

4. start the port
rte_eth_dev_start(port-id= );

5. call the below tx burst function with different queue-id (rang= e 0 to 7) every-time for every burst of new packets to be transmitted
rt= e_eth_tx_burst(port-id, queue-id, pkts_burst, nb_pkts_burst);

6. rea= d stats using rte_eth_xstats_get and verified that only the first tx-q has = non-zero packets and bytes count, rest of the tx-q's have 0 packets and= bytes count.

What could be wrong here? Apprec= iate any help.=C2=A0

Thanks & Regards,
Rajasekhar
ReplyForward

--00000000000043ccaf05f4d51d05--