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 82A53A0547; Mon, 21 Jun 2021 09:03:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 168DD40040; Mon, 21 Jun 2021 09:03:32 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by mails.dpdk.org (Postfix) with ESMTP id 9D0DF40E32 for ; Sat, 19 Jun 2021 17:18:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fMSpuwgUeBOj/QD6SbcTDy3BR+h/MyD7hDUneXLumgsW41u0y8fzKr3VVpsfYc/VqAFHIRUepqP2xUz1XCRP4QLv5v+Pz3yA4Gyax+HFRMnMjtX/niix9p/LQT/xu9q+RNQpWGqNSi5nsxCMXvSf1FlAghuLFBE0GoNH1I+yusLpNVeoe3O4mHZjQrEAsIHzOt6Y3YjCkwzTZeLwGXV0LQ9UpbBHJa5kDtPbRkpU5+bQj/+zcZO/daxPu+8w73fnfJJsjKKaRtPAG1bRiRke3zh0AWb54C8mYYxpAtBiuNMJYxpZGY5N1n/WhLpqY3mrUJycRmyr6EVK5WZQD2eWdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DmpwrThJX2sOUmM7T4lUDSsFBPT6H1KQ507Lot8E6bU=; b=cy1qlU7za793X0WhLDQjqPCwOcu3jlATL6P8+ZwNBEr4DqqevUY1TYxjdDjn5B0o5hz3mq3WGb1HICf/FxVFTISQ+grYBNSCUo9ZRwf9sF/psDOcyjLBcvccsCOFRlhm1trHgrZiwHeCrSZh1irtPdJIGwuoeurdPpzXc53kUVvK/roT6eI6PC+3SgMcXfS0vt8gVwiL5ruvRJYx44EgDKp4aofrRSXhmdLSJRmxHcPgZc+f4SPtKFvxLJ8tkNjJPloa8A6ykozWvWl6HkbVUCZBL2RJgSqLPl6gEfvFTJs9Qb6lNdqlh3ei4JtXjPdyF3cuRJNvYnJTpo4LRp85mA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DmpwrThJX2sOUmM7T4lUDSsFBPT6H1KQ507Lot8E6bU=; b=m6V3S8Vrhj6vS+/zzSyn7jwcidckfiyXhDeqJJlMEWX7iRIqa/mU48uPUwPsQVOXQTwnptRGIVqgHRtR7lisBuOfyd8LHn8fWBYByaurkoz32m2o+aHfj6u1JSknR4jMq/vMc07R8Dm97Fwww9nN2oZycL9skaluhtQEzfccj08= Received: from PR3PR07MB8225.eurprd07.prod.outlook.com (2603:10a6:102:178::6) by PR3PR07MB8241.eurprd07.prod.outlook.com (2603:10a6:102:178::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.14; Sat, 19 Jun 2021 15:18:50 +0000 Received: from PR3PR07MB8225.eurprd07.prod.outlook.com ([fe80::c6d:48f3:7615:6a36]) by PR3PR07MB8225.eurprd07.prod.outlook.com ([fe80::c6d:48f3:7615:6a36%8]) with mapi id 15.20.4242.018; Sat, 19 Jun 2021 15:18:49 +0000 From: =?iso-8859-1?Q?Bal=E1zs_Lugossy?= To: "dev@dpdk.org" Thread-Topic: max_rx_pkt_len Thread-Index: AddlD/akaOCwvlZvSQmve9m6HVZaSg== Date: Sat, 19 Jun 2021 15:18:49 +0000 Message-ID: Accept-Language: hu-HU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=ericsson.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ff0510e9-546a-4672-57c0-08d933358a86 x-ms-traffictypediagnostic: PR3PR07MB8241: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: loxC23B9p6B4FV1p0ZnTaH+hYTPwvF1D50JNoEMEObOeukq8V51FkDo4WM4Xl+8+Hp7ywNrrRBlnmh/4lqMu/r7GjNGf3sxW12VMfuUgK30Ij+EKWiBYGF8mmtDkCZ205WZyXMiJ4S5lUFru4JbULuTgc6vt7KNEKJ+soYtCg2qZaac2KmzvR/Dm72EVHhuMC0GCSmxh1LLrvxa8rd1eQSS9FankZLFoGom8YXz67xYv7Y1KLFU/UcvlKMXNx4yrnxUE1ScekOMY6hufmANc6q4N1svV2agv/DIqjkVD7KQhWqU9riKVH4kFjwzVdm+d69Wx+TWer8cMufyr8fW0eJuFLs44hAYLH5nfHW86zxDt+LnPbdrw4TaQN7df30mJsd3rwBCYrUr1uzZcpgT+RCEEgQS58XHM9XIiNGyAzzvGGJmLNYbxxz+DHe+C/JA2+HsIcKlaGur1uHk3FmbOcJ/qGVLUgohaZi9EwaVBmLFjcO3RubnZbgi3p28JNJXPnZZdAPLUgayIz4BPgl64DJv5INVwQ/FLRxfgA9uO/F+Kq5ZL3Z408DQc6jVm7XLV0x1NaVmABwqEwjCFV7V2EvhkEKQ9zc3AhEY2cyeZaeYrDyFu4l2jXCW5fu3pyttVNqdwgCgQdhsQdbhdfkmpnU1YPRP83HuzIE+durnazZz2xK2t69dmF3k9FYvqWlc6tPWpS/GHi1jf57/umzk0yQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR07MB8225.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(71200400001)(4744005)(186003)(316002)(122000001)(26005)(7696005)(966005)(76116006)(6506007)(6916009)(7116003)(478600001)(64756008)(55016002)(5660300002)(8936002)(86362001)(33656002)(2906002)(166002)(8676002)(38100700002)(66556008)(66446008)(9686003)(52536014)(66476007)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?K9S4LktaS1YW7ARdNgxKLyp82vgE1EPA9MDggr8RtjRh0swxc7IKtdwVo1?= =?iso-8859-1?Q?rzOZXiIomWBa9pvHln617xnPIjIgRJMF7x+ONKHtXoERLRunhNfVLUKR5A?= =?iso-8859-1?Q?y8q+mlcvAzc/Pp/doJUimjcScu8uST4Ru47XyukUXflj7xfH44yIPNgu0m?= =?iso-8859-1?Q?M8q5lup32gJ5zLfGrPY3dxzAmMn5I+QmArBifQu4O3fEU57OBALRCaO7B2?= =?iso-8859-1?Q?Pg/KNk25O1EJb+ZgbtHrvw3bMN106x/T+WGkWyuEaWD7V+7G0eGhcDG66h?= =?iso-8859-1?Q?+kgqwtG2bpt5Q1bTLw4YDTjJTrAt7TbzlEn8Ey8nAclVXQ+fwvBmzFl1kN?= =?iso-8859-1?Q?6UyhkGxi0503RVpnmjGFtFk2yAl1DvVVrCKYgMFfLrvWrRU1ggapbO+Gua?= =?iso-8859-1?Q?nZg6RS4pvMZEtK/Hd1noGacbbWx7OTbo3FLveioao1soh2Worl6NmyV9W6?= =?iso-8859-1?Q?6gG2gWu7cfeJMFvhr+g1RdXB3URfS8lI3AbFj3D9om40GNjq8IzOH1LEn+?= =?iso-8859-1?Q?b4JsvR91pNmIgvE9noKzWCJktYrBxoWll5HFrrDqdI4DFfiYa+TC185FnE?= =?iso-8859-1?Q?wr5Q6OIkkcTPLKrsUXH1H7JW2x1D9gwjUe4bOdsFMehRv6t7yRwdkNldYr?= =?iso-8859-1?Q?v1bi7rKC8Rkcn/fRPCl678CI1hUwYcnrzPrkteOdzUUTt0jxEmc0yjCSas?= =?iso-8859-1?Q?u49Qvj6a9Iup5Pa41kH5dIcTOGn6mmH0ftMJBSrtPeEk7r1ROsdqNLYuTG?= =?iso-8859-1?Q?CJU80iOijWQgOmFjDGM7U5M3p5puUdF4mZQmWcEivhYt7UmV9WfGPUbDA7?= =?iso-8859-1?Q?nSspl39NvEWeYpMrqQh1ewdAGGiaNIAuSuQK5WkNtNh8MkwFLiPCZsxSaC?= =?iso-8859-1?Q?+Pmz676pEKOjqsyQ5OtTxQ3/PyApgO5AtoWCAA0CBM6FiEzotp8iy9TxSG?= =?iso-8859-1?Q?0rQDFTLPRXk+Eljixw9cxkNYfrKQvDuwbTkdd9LfWCJAaue6KVaLEiyh92?= =?iso-8859-1?Q?a+vKTZBKX8M6LTfL6Q4pR+M3+TGDzc9cN3Mn7ekKUZTNKI5XXjhMPCgNB5?= =?iso-8859-1?Q?LVtEnwmliv5T0/Im9N66iHTm3noZ+9YS1Sh3Kfv2kwijEU7J3e2RjCX5gu?= =?iso-8859-1?Q?ysSO6B7AEIpxmcX2rFDWGa9pjqnkJh/9emZuZ86z8O+t+VCgbt2KgkzZed?= =?iso-8859-1?Q?alxh/UJkkksPMzdA27vUg394EN6QWcqeHtpRrY31vtFGxyZ82Ni9TfuY2b?= =?iso-8859-1?Q?EaMXsQSKvEuaj0ic0fMps0OdrbYAKegRvr6gBvPkuecvgRadWNatOk1Is6?= =?iso-8859-1?Q?Sk5rT/TC8sTGydFNrUlFIRugYHAK3UiZcPgIkDLeyfU3fF4=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PR3PR07MB8225.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff0510e9-546a-4672-57c0-08d933358a86 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2021 15:18:49.8754 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SAzvqMn87WmNta3SylKe0pJD9Fi7ddFS954H9LQgD6NhHt2iTIBlwAahbzsciWsCRbGR6rv6Sg+DVvmTzLBhdVlltyEnMioR+M0oJxwG+Go= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB8241 X-Mailman-Approved-At: Mon, 21 Jun 2021 09:03:31 +0200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] max_rx_pkt_len 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 Sender: "dev" Hi DPDK developers, We have an external DPDK KNI interface in our product, and we experienced t= hat ethernet payload of size 1500 cannot be received, only 1496. It is impo= rtant that the traffic is VLAN tagged. We have encountered this report: htt= ps://dev.dpdk.narkive.com/xGGOQC8R/dpdk-dev-issue-with-mtu-max-rx-pkt-len-h= andling-by-different-nics-pmd-drivers, which pretty much similar to our cas= e. We started to experiment with max_rx_pkt_len, but no matter what we set = it to it won't work with 1500 payload only 1496. Then we checked rte_eth_de= v_configure and realized that max_rx_pkt_len is defaulted to ETHER_MAX_LEN = in case max_rx_pkt_len is set to > ETHER_MAX_LEN. ETHER_MAX_LEN is 1518 and= thus doesn't contain enough bytes for possible vlan header. As a workaroun= d we have enabled JUMBO frames and set max_rx_pkt_len to 2048. This way tra= ffic is fine. But I want to know what should be the official way to support= 1500 payload in VLAN tagged frames with standard frame size? Regards, Balazs