From owner-freebsd-net@freebsd.org Fri May 14 14:12:02 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 650DB649CA0 for ; Fri, 14 May 2021 14:12:02 +0000 (UTC) (envelope-from jim@netgate.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FhVp945KYz3q9b for ; Fri, 14 May 2021 14:12:01 +0000 (UTC) (envelope-from jim@netgate.com) Received: by mail-io1-xd30.google.com with SMTP id p8so28127105iol.11 for ; Fri, 14 May 2021 07:12:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=dsH77eVmTqZtYK8hjPXuhlv/mrsYhxe5qgogXK6BpiA=; b=Bqy20mwFSJhs08yCotOk1miXdkNm3+FcAudArYTIwbjLgX4G9E4C3G2pwAaETk/l/t O36R3yoRwiePvd23oSPzeMHHGJ4XGfEfQKOfEFQOFfSl6tTHbfRMgxC6mj/KQgHchD3u cp8+SAAMA1gCtGL4MwSpaA3DapfkCuQTNy7JSuBEAcc/e6JLY6hbw741PcUddsOLxlz+ cGMtfoAQpImZ9ikUgOQr/AN+56fIrtUJbMtyrUShdGRDX1eW1xPe7cvq99p7gIL11wRH xKq5q4RAmBwabv5TZSPN7CUUr7fiMvXZuHsGOCG8vNaIT8ttf8wAS/LVuFneki5rkfjS mh4g== X-Gm-Message-State: AOAM533j6oITPxyxCmkOb7PnVgY/ZT96dW/tzCeykcXl+7b72HuY15SQ bXJId2M+16cUWVbJW4XQZOJeWw== X-Google-Smtp-Source: ABdhPJzHnWwvMAqSiZ22dHkAN5VkQ3EeWvcNKrOlv+CmaIa7K5GMIZDrsgYPJIrq0qsl7bRzBpIp7g== X-Received: by 2002:a02:9621:: with SMTP id c30mr2168178jai.113.1621001520398; Fri, 14 May 2021 07:12:00 -0700 (PDT) Received: from ?IPv6:2601:280:5b80:b910:2891:c20:d7c4:a1a8? ([2601:280:5b80:b910:2891:c20:d7c4:a1a8]) by smtp.gmail.com with ESMTPSA id r11sm3075234ilq.29.2021.05.14.07.11.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 07:11:59 -0700 (PDT) From: Jim Thompson Mime-Version: 1.0 (1.0) Subject: Re: Vector Packet Processing (VPP) portability on FreeBSD Date: Fri, 14 May 2021 08:11:59 -0600 Message-Id: References: Cc: Jacques Fourie , Luigi Rizzo , Vincenzo Maffione , freebsd-net@freebsd.org In-Reply-To: To: Francois ten Krooden X-Mailer: iPhone Mail (18D70) X-Rspamd-Queue-Id: 4FhVp945KYz3q9b X-Spamd-Bar: / X-Spamd-Result: default: False [-0.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; URI_COUNT_ODD(1.00)[1]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[netgate.com:+]; DMARC_POLICY_ALLOW(-0.50)[netgate.com,quarantine]; NEURAL_HAM_SHORT(-0.98)[-0.980]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d30:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[netgate.com:s=google]; FREEFALL_USER(0.00)[jim]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d30:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d30:from]; FREEMAIL_CC(0.00)[gmail.com,iet.unipi.it,freebsd.org]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; MAILMAN_DEST(0.00)[freebsd-net] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 14:12:02 -0000 > On May 13, 2021, at 7:02 AM, Francois ten Krooden wrote:= >=20 > =EF=BB=BF >>=20 >>=20 >> Thank you. I did set this to 1 specifically now and it still works. So t= hen it >> should be running in native mode. >>=20 >> I will dig a bit into the function that processes the incoming packets. >> The code I currently use was added to VPP in somewhere before 2016, so it= >> might be that there is a bug in that code. >>=20 >> Will try and see if I can find anything interesting there. It was added to plumb in a TCP stack, (mstack, iirc) prior to the VPP group w= riting their own. L Your netmap-fed results are also quite low. loos@ (who wrote netmap-fwd) wa= s getting 2.23Mpps single core on a xeon D-1540. https://youtube.com/watch?v=3DcAVgvzivzII Jim=