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 17DFDA0C51 for ; Tue, 13 Jul 2021 13:29:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAEEA410E6; Tue, 13 Jul 2021 13:29:22 +0200 (CEST) Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162]) by mails.dpdk.org (Postfix) with ESMTP id B4707410DF for ; Tue, 13 Jul 2021 13:29:21 +0200 (CEST) Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 9B381FBF533 for ; Tue, 13 Jul 2021 11:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1626175761; s=s1; d=tuta.io; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=miCttB0SxLOEfnEyvnbPeVLcSPqRLlOZRsZbLdpoG64=; b=jSyRu3RcvtTaM9R2PEZWgcLMuMcHxn36od2B6t3GI7neqri38GQQaNTxCZjsjEFM GORngmD9TbYemr86+1Og55EDUGCTNS647PNMy8Qow5IL4B1AsjgBpNhzb5CQT8sC6Ie 5qSQbvKoPdSnGDuEzQZhkY2mCN4zGK6OD/4YlR+26H3Ni911a5ScdOetpaDhiOarK/S hgmRAtJk8H6DEdyvAwy8KZS/3cO5RwCjESpzMveTikdii+LVaS3j4lsjvkxdbGZW/ev sMtfESIpCBfXLB654rqwFIkXskHWHcNuQbWlywQCwJMbyJCGCX1SB4HUDvrjWAI8WHZ OmE5R0OQVg== Date: Tue, 13 Jul 2021 13:29:21 +0200 (CEST) From: dennis.wagner@tuta.io To: users@dpdk.org Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] DPDK layer 2 forwarding without modification / disable offloading 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 Sender: "users" Hello, I am a student of computer science in Germany. Sorry, if this is a basic question. I am trying to do some latency benchmarks with DPDK as a layer 2 relay. Here is what I did: * my server is running Debian 10 and has 2 NICs Intel I210 Gigabit * NICs are configured: dpdk-devbind.py --bind=uio_pci_generic 0000:02:00.0 / 0000:05:00.0 * examples/skeleton/basicfwd.c is used to relay traffic * to measure the latency, traffic is recorded before and after the dpdk-box with tcpdump * compare the 2 traces of a http download I expected DPDK to pass all frames unmodified, but some frames after the handshake the traces start to diverge: the length of the frames change. Could hardware offloading like TSO be the reason? How would I completely disable offloading? Is this done in my DPDK application or with a tool like ethtool per interface? Setting the offloads field in basicfwd.c (port_conf.txmode.offoads = 0; port_conf.rxmode.offoads = 0) did not work. Thanks! Dennis