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 A13AE45B6A; Fri, 18 Oct 2024 18:35:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5ADC44027C; Fri, 18 Oct 2024 18:35:38 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id 8773940268 for ; Fri, 18 Oct 2024 18:35:37 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-71e61b47c6cso1856480b3a.2 for ; Fri, 18 Oct 2024 09:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729269336; x=1729874136; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=B+t+b1Ncoo9yu8DrKjkFEoYYIrDhss/K7YbqHnJss3c=; b=N2YtDYegddTmjvivo9FlRUbjVhcIKJzNlS9vSxxD6wAFXDRR8CVa9INGtlas6NUNga DlDrh77nyYa2Kka0oxkFHwncJtSL6d/Verb9rTgONd61BFciKf0BcmdWJQtQuLLKkAu2 jQQSKThIBOY3Mg9zfNSOONTfTDENT8h8AkRQ+iyWzQMOMP0hXHd/s559KnIJU3+xv+Xk eADgnqPHKD/sO134a4KIKOQpdr73sLLItERaJ8QBgtn3ViyxgsWoHo1towWJBb6FwsbT U9QWmrvUHCd/bjoiUPYOWi90zarPH2IS5SHG3GyDeN1bkE9aGcMDKpe4hSyIjGoxfYYx anOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729269336; x=1729874136; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B+t+b1Ncoo9yu8DrKjkFEoYYIrDhss/K7YbqHnJss3c=; b=kT6Q28i1ZubV6d7GBg3X8E5Q+PLyr61AuT8KbR43WDkVuyte7oNwHXNfFv+AnTsq3G V5W0A2P6xjeg1Mn1WLxaSDSZnSNt9Sfr5wSe+ALP39TrAfM4x3oDi8SCOskxqFc9MGV8 csVhLZwOyMen0PdVo6owiN0V01ehRIHRQbuslYmMo68wxLID5vh5DRUQw9CDWPiICjrJ xnhnsDE6k6FWfit4buXgjGDkZqIrb8BtFUptJu6KBh6NtiBu4alHjCqXJT2KQCniyLvh dXMYi4+gagvzAvOiUcDuYPVo6gNt3PN4h/pwhL8lyLv4VoAFn0tW/84nug0+qCw6f2Ns LAtw== X-Gm-Message-State: AOJu0Yzx1Kx1ttsN5BNLWhhv3dJzzcXac1IAW9LkW30z0PlxD1PzVblK FKiYpS0vQ96+K8ttBbDHyqDvTXaDn/jnrTFsIp8H3DuDwQvuRlSn9ZDbtPrfsQcAb52bq67we+J odMZXK2CdmXT8TCyYy958aURNgCTCmO/i X-Google-Smtp-Source: AGHT+IFavfnPl0ku9YPwldJGOoNRogsr9pcRr+GnoTizU5vo9Sm/A6a87k2UQ5Hr9ec+Zm8/kbdnEakujAbRuMGsXCI= X-Received: by 2002:a05:6a00:2da8:b0:717:86e9:cc34 with SMTP id d2e1a72fcca58-71ea313dc98mr4297129b3a.8.1729269336415; Fri, 18 Oct 2024 09:35:36 -0700 (PDT) MIME-Version: 1.0 From: Rajasekhar Pulluru Date: Fri, 18 Oct 2024 22:05:24 +0530 Message-ID: Subject: Restrict max packet size on rx To: dev@dpdk.org Content-Type: multipart/alternative; boundary="00000000000084a4e40624c2e4b7" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --00000000000084a4e40624c2e4b7 Content-Type: text/plain; charset="UTF-8" Team, Does setting mtu using rte_eth_dev_set_mtu limit the maximum size of the packet received on the dpdk port to the configured mtu size? On an intel machine with ixgbe port, with mtu set to 1500, no rx-offloads enabled, ixgbe dpdk port is able to receive packets greater than 1500 size and even jumbo frames of size 9000, even though the peer is sending them fragmented with mtu of 1500. How do I restrict the port not to receive any frame greater than mtu size? Appreciate any help, Thanks. Rajasekhar --00000000000084a4e40624c2e4b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Team,
Does setting mtu using rte_eth_dev_set_mtu limit= the maximum size of the packet received on the dpdk port to the configured= mtu size?=C2=A0

On an intel machine with ixgbe po= rt, with mtu set to 1500, no rx-offloads enabled, ixgbe dpdk port is able t= o receive packets greater than 1500 size and even jumbo frames of size 9000= , even though the peer is sending them fragmented with mtu of 1500.

How do I restrict the port not to receive any frame great= er than mtu size?

Appreciate any help,
T= hanks.
Rajasekhar
--00000000000084a4e40624c2e4b7--