From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [69.175.69.93]) by dpdk.org (Postfix) with ESMTP id 842581B903 for ; Sat, 9 Feb 2019 16:27:31 +0100 (CET) Received: from ns1.es18.siteground.eu ([37.60.250.193] helo=es18.siteground.eu) by se4.mailspamprotection.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gsUXQ-0005NU-3n; Sat, 09 Feb 2019 09:27:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QavsoW46hl5obYXrIeJSDgvyBJwnDIwBehfPJ/MJg4g=; b=nOniMKGwuqURG2n3bjDolxOoTG gackqpSC/ueFdyfh9cSyepEwuBe2rrVCPjCHfwMTUSV0AQbaVdq8hmcd6kuPfzXp2VnOlX2i7akUl MuAI7dKn6KWyps5QpyDe5mGg6v51GhcYqEY6G42yOd6hOQsKRa56c6eObmQvEYVxSwXNSK19CLADu pCsQsMo2kO9YpSgKG+YRz2kq4ZeyqGYeB2Xd9f9gYN32FWTpfXcxphANiyvlMzE466IaaguBvDEsc A3XOOY4GgVupQ297UBpPmRqtv4aOWIrvAuRYUeChzfsShbBVp609+IsWMR9D8rWODJldw1Nnxm3lK uEPlbebw==; Received: from [89.64.173.160] (port=46606 helo=localhost.localdomain) by es18.siteground.eu with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_34-9f6032f-XX) (envelope-from ) id 1gsUXN-0004Sf-Hq; Sat, 09 Feb 2019 16:27:25 +0100 To: "Wiles, Keith" Cc: "users@dpdk.org" References: <4bd38b68-02e7-f031-5627-2bd2c9a38333@filipjaniszewski.com> <95B2277E-2E64-4703-97C3-022967A7F175@intel.com> From: Filip Janiszewski Message-ID: Date: Sat, 9 Feb 2019 16:27:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <95B2277E-2E64-4703-97C3-022967A7F175@intel.com> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: 37.60.250.193 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 37.60.250.193 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=37.60.250.193@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5ri6VKknbJEE+cjMh/BaZ3d602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvO/HgfYHNbHMZNn8uVEcaq0hO+JUrlpL+1xYGDni+Jm/nMXmrtlkagZCNRsz8za2guufH zJ6mVE7ewsipSVIfs4ZuTcWW179+c+2WXqBytJZj1UoIZHeGiHTv13xbWqFGxY5Tx86fSmD6Mp4Z jEymh8Bli19mW0G91CSooRJqA7sIn7yttJWcfDN/UT6/wnDi5b6NjhToz7AbkSS/ihTHoF6htohM oxLNurLxItwRYhKjUAsAEp7he0osUq/5XwU41W6noxJ1R+JPOFQkdVRSeviFcFhO9Ph08zfxywcA n5Te8dcxvnQYERkMuRL5/fo3RNhLla8JCfjz6HFCYJ5nqvIDuONzMRaL3IMJceeVmuMY+GQ66azi oBnt+leQ7P/PJYubkfpBG83WrynQ+RDP1axbO+uWqv+yIXuSaTRGCFbDjMhpwyKUnIZXKOkSA6DY P9CWUDl6hp96RIaeG6P8U6RGPYZZXkvmZIcO+5pLCnX7Aidax8CimApmOijfm+KR6wEiRQv+PVjj wa+Z5RFCOMQNu3hSDAs7gi4q/oplzky/ezpVeNA1AZIqkDewm4+COPYYN6kuAgL3UBG1YPfnii4J lb+DG2Eh1ZZl9i/083ZANAkQaH3cypg8zu2qSfC6jIC5mYir/YNOGoUgyGM/BDjr0EPGkacJsHvK JCPoTophf6uNtfvhlxVIcNsI7TpuMtA5DM6Uum4ULsp8BODMWiXD/KIZFjZmfdcVjL2SVfcQZUqp 2j1DSFO4LXhiNybgK0gTAIlKcH7p74aqKFINO+r/7k5E4JV2JuSbdnwQY3Cj3AgKAH5tNEGzVEA8 zSZJdwevsfz7cUb+lsJuE4nMHzAskCuuxqjaOHN+c36FBq06tQycLwV+wK/merQw3ZE+PY8zlF0N uV2x3dbZ9Yap7ka/ON3T8omjTopJj826j7plrSumR6gJcuQ+HYqRcYRhVLtrvh5Ua36O3zTdKKQQ S/f1OH/N2CSfYCQG9rVl8PxuC8TdA5uvm+Y6Cp8fqY8iBdcWekHm+tYLzZqX3r1jWfF9lCOkWUYZ OVHJPQLe1gC302IsJaA5JH7vvTcKI6bNtTEvuGslKTrRIXcXpFg5ivY= X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: Re: [dpdk-users] RX of multi-segment jumbo frames X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 15:27:32 -0000 Il 09/02/19 14:51, Wiles, Keith ha scritto: > > >> On Feb 9, 2019, at 5:11 AM, Filip Janiszewski wrote: >> >> Hi, >> >> I'm attempting to receive jumbo frames (~9000 bytes) on a Mellonox card >> using DPDK, I've configured the DEV_RX_OFFLOAD_JUMBO_FRAME offload for >> rte_eth_conf and rte_eth_rxconf (per RX Queue), but I can capture jumbo >> frames only if the mbuf is large enough to contain the whole packet, is >> there a way to enable DPDK to chain the incoming data in mbufs smaller >> than the actual packet? >> >> We don't have many of those big packets coming in, so would be optimal >> to leave the mbuf size to RTE_MBUF_DEFAULT_BUF_SIZE and then configure >> the RX device to chain those bufs for larger packets, but can't find a >> way to do it, any suggestion? >> > > the best i understand is the nic or pmd needs to be configured to split up packets between mbufs in the rx ring. i look in the docs for the nic and see if it supports splitting up packets or ask the maintainer from the maintainers file. I can capture jumbo packets with Wireshark on the same card (same port, same setup), which let me think the problem is purely on my DPDK card configuration. According to ethtools, the jumbo packet (from now on JF, Jumbo Frame) is detected at phy level, the couters rx_packets_phy, rx_bytes_phy, rx_8192_to_10239_bytes_phy are properly increased. There was an option to setup manually the support for JF but was remove from DPDK after version 16.07: CONFIG_RTE_LIBRTE_MLX5_SGE_WR_N. According to the release note: . Improved jumbo frames support, by dynamically setting RX scatter gather elements according to the MTU and mbuf size, no need for compilation parameter ``MLX5_PMD_SGE_WR_N`` . Not quire sure where to look for.. >> Thanks >> >> -- >> BR, Filip >> +48 666 369 823 > > Regards, > Keith > -- BR, Filip +48 666 369 823