From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=J7OyGGcF; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 4F0CF5A061A for ; Tue, 01 Apr 2025 13:38:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743507499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+5CYrb5rv85jt4WvIpFGB7a264HjKQrDOxPFdkclqJE=; b=J7OyGGcFtpU89wiY77i1T+Xw72zO4Y3Qhpmow0oe/898r+JUl3uDtm08zoA6seocW+AdIl 4ODhpiZ9SO16AGE4iR+hkW/FAkI7TjHiCSPvHyOQyGxgCE6JRmNi2uDgp9krGo/oOk35RQ y9zqc89K3Z3lOEr6ZvMSXNNCeq3uBn0= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-400-rHesubICMcuB92gnPoJO4A-1; Tue, 01 Apr 2025 07:38:17 -0400 X-MC-Unique: rHesubICMcuB92gnPoJO4A-1 X-Mimecast-MFC-AGG-ID: rHesubICMcuB92gnPoJO4A_1743507497 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1E8641800262 for ; Tue, 1 Apr 2025 11:38:17 +0000 (UTC) Received: from eperezma-thinkpadt480s.rmtes.csb (unknown [10.45.225.39]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1EA4B1801747; Tue, 1 Apr 2025 11:38:14 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: passt-dev@passt.top Subject: [PATCH 1/3] tap: specify the packet pool Date: Tue, 1 Apr 2025 13:38:07 +0200 Message-ID: <20250401113809.1765282-2-eperezma@redhat.com> In-Reply-To: <20250401113809.1765282-1-eperezma@redhat.com> References: <20250401113809.1765282-1-eperezma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: zKXV-2umWu3U7T98SIpw_5i4j_rGp_64LN0eWu5sLSU_1743507497 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: DI53NAHLEG746ZATLRSY52YFOSXBIBBC X-Message-ID-Hash: DI53NAHLEG746ZATLRSY52YFOSXBIBBC X-MailFrom: eperezma@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: jmaloy@redhat.com, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: SW4gdmhvc3Qta2VybmVsIHdlIG5lZWQgdG8gYWxsb2NhdGUgYSBzdG9yYWdlIGZvciBy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