From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61C21A04B4 for ; Fri, 1 May 2020 22:44:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 398B91D9B7; Fri, 1 May 2020 22:44:02 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id D41041D6F8; Fri, 1 May 2020 22:43:58 +0200 (CEST) IronPort-SDR: ZLX5MAby0cNLbFRKSw9KSXKzFvg6qbR1gsvrwwBSW3qy9Dnq2GP0SsI7qnrrjL2CXXbBh/uqUR TVUAfh0T6TiQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 13:43:57 -0700 IronPort-SDR: 3OtqgIA+Na78YQE02J4JS3YcxrrEDAoQwnI4Gri6GxlxzeooSghqwFi+oN9rOYlnjklLi+fJEh K9PJzkxj8dPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,341,1583222400"; d="scan'208";a="262187648" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga006.jf.intel.com with ESMTP; 01 May 2020 13:43:57 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 May 2020 13:43:57 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 1 May 2020 13:43:56 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 1 May 2020 13:43:56 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 May 2020 13:43:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZNMJ7H0woFhrA0C4k/uaYOWx2Y8DDXiuYX6lFznXg2OtN58rnJdkNGNIUhI9FJIr6f0tzWMr9uUQ6+3++UdLv4iwUoshBPmAHYSIJw/LTQXaSBjcL4e9mICm+KaSVL4/w5QKubqON23zQX7HXiupQwp9+g7mrGZsgJ9ZDJcaLI2GOWs0kZrx+vZQfY7ONZVOw2cTsIEKTQwDAWf+J+kZIIjS9FiLUN3UfkWE2vd91TKV+KfhH1rzOGeVCHlZZEeaZkY5JKGjfFpZsKckKHo3e8QhDYhBR/RWgIfyAOF9L6AjazkAZlBFItUcbYCMqBM9+Cpa3MXcnkD3ZpelojnpFg== 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=Iylz27sEPHg32oCt/YOiNJXimRZK3/1Tb8H7DkXwQyQ=; b=PPXl+an8Fh/wpqfYhadmnDbdjckEmtgk3GcUfTztVc0SbGRxcPaydiV5gnCMgw9zRdHwHyvlWCyMP92ICaTPmZw2QnlFwQyPk2SMRrzjsNCVotyhjpU57eZIAQ5hbxAqKRSJhctGmzF8VNRLWz+YXZR9X3gAIJN52122WvvYw3Lj5hH9sxMrELbDD80mA2um6+uauRsDDONPo9tkNmuKrBf9Jgz/LBRltvG4IPu6WYotgmeHslv0p3L1IH/No4feSqE+Bec+d7Qbfi2LQseVE3C5VtpQaKePWiE7VwTHcbeWfn8Rlorn13kjkRIr1ol7YRlQ+X+E3Ta9ZO4eNgBGpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iylz27sEPHg32oCt/YOiNJXimRZK3/1Tb8H7DkXwQyQ=; b=wKEP5LMJQyFPwdcomkQAE3OUqN4BvXZoI/f8Ros33XxGY20QDWRK0j51saZX3vpqTLt6bgjoJlxLDZ3XDUqDhrxuUUx4WzjiLSJTflzYEDhDJ8X8VAQci5JUJKV5cSqitigM2vQ20dwIVIv/HKdrq98VhiJZDcmtW0Srp/5lYJY= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3813.namprd11.prod.outlook.com (2603:10b6:a03:ff::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Fri, 1 May 2020 20:43:51 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4%6]) with mapi id 15.20.2937.028; Fri, 1 May 2020 20:43:51 +0000 From: "Ananyev, Konstantin" To: Pu Xu <583493798@qq.com>, "cuanduo@126.com" CC: "dev@dpdk.org" , "Burakov, Anatoly" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option Thread-Index: AQHWH9NEaRoiPfbj20WeB+b7xSOehKiTsqrw Date: Fri, 1 May 2020 20:43:50 +0000 Message-ID: References: <20200501161107.33786-1-583493798@qq.com> In-Reply-To: <20200501161107.33786-1-583493798@qq.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: qq.com; dkim=none (message not signed) header.d=none;qq.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.166] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c7b733b7-56cd-4368-7455-08d7ee105b22 x-ms-traffictypediagnostic: BYAPR11MB3813: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0390DB4BDA x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(396003)(39860400002)(346002)(366004)(376002)(86362001)(316002)(55016002)(33656002)(2906002)(478600001)(71200400001)(7696005)(66946007)(66556008)(66476007)(4744005)(64756008)(66446008)(6506007)(76116006)(26005)(54906003)(186003)(110136005)(9686003)(5660300002)(8936002)(4326008)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: B/EEJY/iJXxK80/dLMJk/nqpnXol9E1IziPJBV5dv3vtrdO/stosTTSaKmioOZ1biws2yjNdkxu7fOAbfCm6lRjjt0zAIlJN6NIvQR4WdGv4klr74x2WEJq50f98VHHKfj0xQvSJVYLliB+qrWlg9TcQWhnu27MkphdDkpUVAoCF1CZxXvBd3U1A/YPKP2Gy+e2gd/wOInyPJZKy5v4hgZkvSud6vMZCl5578HhqbtOfgcNYc1DUbMV2fH2SDOrRIryfAq17zOAx7Rcgy9JRRj0Qb1OiX91DCqBrhpteNQyODsVo8FA4Pj5F5w7cadSZJzLo8MnIKykhJpaJ44a7mop26IvNJvE73Q3tL+iYPJGoertWyG3DYxdEmDMSYvs6nAiiB8cHgCwmOOo2hCdEmS/bHNkH6SEcBVHGkop9rMhvMSEIj+U5aqtBcxL2+Yb9 x-ms-exchange-antispam-messagedata: 9Cc6P2H5bI2uH3gQPpFUjx4FbRWljZ6j4HhZgC0y4yjQBZKXXJzhzs4tmHE07XI4lexCMF592NLeACWO8YPuI/bKl+fR1sNakhSfFHSJh3f6ziTcn40Y5yuCUAsSGhbL95Oyl/skTdQ3oglgBgsgs5rQRhB92W9nMIPiXWH+VKqm/GtrwkeOjYJdCsC43+YAcMBFU6twarTCB2/wZTH7wIqCfcNeQCIRC3pIZgFFbeobieTKI3F8dB11TCvHt+EFBEjbF7Um7oOswqaLtmwmHlh+CecnHNXuEy9hXR6rmV6z4xO2nS1qZ0OuCnpH4UHWIetk/VUUmrGorvSawcWRAuW1xIErrAkc01qelLkTTAXAJr/iBOJVuR50Oj+ZOvYZAVXt6QttSU0jqQguKy3Yb8eq9tOobq+TuFrPbkDdaR/k00svlK33lCPY1V0dl6xQ2qTtpCABndGMRIyHSdB9IR9ztYAxjl901xFmybpJDAmVAJXmsQfwiuIcKsTt7JthBRCgjCaeHIXic14yhFVQrLLIKEyE1wiMbRxs29tVG/R1yZGtUO4LIsl0O9QG3LYyKO0i5HeNZvpSKGdT6yCBSSQS1ldGdiL9jdJ9GHLE2vI+g7PwBZB/SExgmCKGGHea7PlRPQ/uYEjRzc0o6JK4dk1W1EqJsrROJIOmY+kHJ3DR7udOXeo6E0m1wuMbZhA+Up5Xa7fzEVPsLtnS6APU39iuwiU9DKkV+iPYDFpb0ry4FC5ds+YF2faZUYlWcmFsjSuZ6gCrBrxtbnV9Q80qmK/LlSPjrurtEYQjDYIUvugjivNNvAVqfi+r0JEl1ZtK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c7b733b7-56cd-4368-7455-08d7ee105b22 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2020 20:43:51.0547 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bLrxlE2IBsmdgTCdPw2QtWKw/TH5xV7W7PhZztHFXe8GOO/ix6/ZqFOc1qKW44GGsA3yDuvKU6hZTur3jkn+zqfU/GcwrhNuFzqDJfpPWtY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3813 X-OriginatorOrg: intel.com Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" >=20 > When fragmenting ipv4 packet, the data offset should be calculated throug= h > the ihl field in ip header rather than using sizeof(struct rte_ipv4_hdr). >=20 > Fixes: 4c38e5532a07 ("ip_frag: refactor IPv4 fragmentation into a proper = library") > Cc: anatoly.burakov@intel.com > Cc: stable@dpdk.org > --- Acked-by: Konstantin Ananyev > 2.17.0 >=20