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 E27F4457A0 for ; Mon, 12 Aug 2024 12:26:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A99A4402C3; Mon, 12 Aug 2024 12:26:03 +0200 (CEST) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by mails.dpdk.org (Postfix) with ESMTP id 85E764029C for ; Mon, 12 Aug 2024 12:26:02 +0200 (CEST) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-e0885b4f1d5so3966227276.1 for ; Mon, 12 Aug 2024 03:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723458362; x=1724063162; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=QDF/61uSlJQSXP4oKlDUwGm8Cj5fKeHHdOZiLw7ko/w=; b=nfQgP6qQ/4uxZxcIjZvQ/6WWwa5jx8I8wzzPs9ZkcjtG3uJLjIazlZYezBNDvB2Hu6 P6VgJzp+fqYeHZwIWb86F2wLCV+a5R3+Slx26k5IO9VjmjHvYpifnvCWGN7dzjeEo0CT vd+RSJvO9KQ8jgHz7yM4ulAHG2vDJXGsWzcMc6igfxc/QXWJIGFgP2ffO34oB26YRvCj kUnEH6VyKRC68QytaL0zJa2rn3yduuCRCfVJlQZgpTZuS42Dqz5onobSc1f4OVNiJC0a LVMxYgOegqqKaAFjurVbbzGX72gJRrjQcIvHKGci/TgxEsfrq2pT+cNOmb7zjZ5zRB5N rGQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723458362; x=1724063162; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QDF/61uSlJQSXP4oKlDUwGm8Cj5fKeHHdOZiLw7ko/w=; b=ssNEBOck4Z87vDh+LOkW5nxVNaI+U5TsJ6OubTDp5sbe6jwku2rQ4BiaVO9xUTbZiv nhuNnNSOpLU/oUtPXknNkuDId/R9lWQ38NqyrJxYtjzgvh+FIdbLnL586gOK82WgXm88 I9rGQM/rYnNLC/EqMwHGOXHhYYqvezQr7Eea7DtOPvnVuNPkbnJ6Ml2RCdgPTg7ZXWRP E84u+1St6/yga67M1UsHlnIVEDLMkI4AUk+l8jw42UA7hRfaRuiCawF5act8Myk9PK87 tiLTOn4MZd3JR9tNM7nkdEh8Uag5OwmPAc9blh5gAl1khsU/x3IoQZu4iT7QZ3swuZuX 6PMw== X-Gm-Message-State: AOJu0YzjGcURSDw0G8n9P+xXyX2HUAIYfRTJ52Vr7+H7+71tr24TsiRg jp4YW+8QthFYEWNZY5w+uufcT+Im5zHUzSYVinhVLYGVVZM9L6bsjW6qYnSiDEnRJZyGMhdT4OA XeL+QM14c4GUSpcCzEyGTpsXD1NCUgA== X-Google-Smtp-Source: AGHT+IGR6IXwU90vO9VZ4NwnQEUS93xZ2+0qGz40aswZJSrGRiD3umLR1wxtKlc8xebGg/IN0XhOP224DUZ/979mCag= X-Received: by 2002:a05:6902:2701:b0:e0b:111d:313c with SMTP id 3f1490d57ef6-e0eb9a564ebmr7809600276.55.1723458361690; Mon, 12 Aug 2024 03:26:01 -0700 (PDT) MIME-Version: 1.0 From: Lokesh Chakka Date: Mon, 12 Aug 2024 15:55:50 +0530 Message-ID: Subject: reuse the packets after tx burst To: users Content-Type: multipart/alternative; boundary="0000000000006f128c061f79eb4d" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000006f128c061f79eb4d Content-Type: text/plain; charset="UTF-8" hello, Here is a small piece of code : while( condition ) { if( rte_eth_tx_burst( port_id, 0, mbuf, num_of_pkts_per_queue ) != num_of_pkts_per_queue ) { fprintf( stderr, "%d %s\n", rte_errno, rte_strerror(rte_errno) ); rte_exit( EXIT_FAILURE, "%s %d rte_eth_tx_burst port id: %u\n", __func__, __LINE__, port_id );//second iteration failing. } fprintf( stderr, "%s %d port: %u packet: %c sent %u packets\n", __func__, __LINE__, port_id, argv[3][0], num_of_pkts_per_queue );//printing once for( pkt_count=0; pkt_countpkt_len = mbuf[pkt_count]->data_len = dev_info.max_mtu; } } Can someone help me understand how to reuse the packets again to send the same data ? Thanks & Regards -- Lokesh Chakka. --0000000000006f128c061f79eb4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hello,

Here is a small piece= of code :

while( condition )
{
	if( rte_eth_tx_burst( port_id, 0, mbuf, num_of_pkts_per_queue ) !=3D =
num_of_pkts_per_queue )
	{
		fprintf( stderr, "%d %s\n", rte_errno, rte_strerror(rte_errno) =
);
		rte_exit( EXIT_FAILURE, "%s %d rte_eth_tx_burst port id: %u\n",=
 __func__, __LINE__, port_id );//second iteration failing.
	}
	fprintf( stderr, "%s %d port: %u packet: %c sent %u packets\n", =
__func__, __LINE__, port_id, argv[3][0], num_of_pkts_per_queue );//printing=
 once
	for( pkt_count=3D0; pkt_count<num_of_pkts_per_queue; pkt_count++ )
	{//want to send same data again...!!!
		mbuf[pkt_count]->pkt_len =3D mbuf[pkt_count]->data_len =3D dev_info=
.max_mtu;
	}
}

Can someone help me understand how to reuse the packets= again to send the same data ?

Thanks & Regards
--
Lokesh Chakka.
--0000000000006f128c061f79eb4d--