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 D2B4341B8A; Tue, 31 Jan 2023 08:44:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C67540E28; Tue, 31 Jan 2023 08:44:19 +0100 (CET) Received: from hmat.qianxin.com (hmat.qianxin.com [220.181.41.43]) by mails.dpdk.org (Postfix) with ESMTP id EBA4140DFB; Tue, 31 Jan 2023 08:44:15 +0100 (CET) From: =?utf-8?B?6Z+p54i9?= To: Simei Su , "beilei.xing@intel.com" , "yuying.zhang@intel.com" , "david.marchand@redhat.com" CC: "dev@dpdk.org" , "qi.z.zhang@intel.com" , "qiming.yang@intel.com" , "stable@dpdk.org" Subject: =?utf-8?B?562U5aSNOiBbW1NQRiBGYWlsZWRdXVtQQVRDSCB2Ml0gbmV0L2k0MGU6IHJl?= =?utf-8?Q?work_maximum_frame_size_configuration?= Thread-Topic: [[SPF Failed]][PATCH v2] net/i40e: rework maximum frame size configuration Thread-Index: AQHZNUDC8XmV8Kf0ukeY/n3zwfq0sq64IDFg Date: Tue, 31 Jan 2023 07:44:10 +0000 Message-ID: <89ad936909b04363b36f4014680ed65c@qianxin.com> References: <20230116105318.19412-1-simei.su@intel.com> <20230131065229.290041-1-simei.su@intel.com> In-Reply-To: <20230131065229.290041-1-simei.su@intel.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.24.194.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 V2h5IGk0MGVfZGV2X2xpbmtfdXBkYXRlIG11c3QgYm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