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 4DAB2A2E1B for ; Tue, 3 Sep 2019 22:10:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83F8D1EC5E; Tue, 3 Sep 2019 22:10:44 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780070.outbound.protection.outlook.com [40.107.78.70]) by dpdk.org (Postfix) with ESMTP id 60AFE1EC1A for ; Tue, 3 Sep 2019 22:10:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kq47JINRI7FFpa0h7ZxVTBlbdSmQqwa0b4+nJhCCfYXvrdYG4VqymdKbEU2Je1tli97KO14isT9ZKLBST5lgq1gKxK1vGFegO3MpJDRWPZpRdTZkRvtLgEHN04h4c7F+k1KlsYsNCxfwKEYI4UdpeJHEKVbIt+xbDBhGNnH5LxzS5nBM6DOd3bh8Rm2GqaA+cbSm3/c0HrKpFAihm45Fvt6hvWxKI1j/cdE4rv9maLwHUd3lO7UexArzVina2ubdmLZ+QM3H26NEHZTbSsIbAV9jL/tueFfHJwM5cjny5/owqUyWts3dFB3MP3dV/5fbDny1tI6udI0YHVBrsLQqxg== 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=eEPxRB08+uiDiN0sEURbNbfj5+bpQk+hp6q0MEb0omY=; b=KECkmNJpSOJ5JCSjIeWqLd0xsdOJeRKoYQpoXEFadpWSPGgbBIqqCcoFVVHsE3fbr7hRcDopTQzBs4khq5l9jdHi+wqGkeYt3HRUaGCIWi+dpfpHp5hLFlj3nNiQnX8rD7HSInAx9Vu+ztuXcTlO4djBBUhtrZdyZDwdUvN0gbCT2s8zXtlp1xnFcgJWVOYll6rxzo+a9J3m12nYc3QJf3/5I4TTqMe7y/HDj7khmJ54VQmOHW2YkGoLCO5pTO0NBy2VTS9UirTrZ9q+TcovmTCxhhQ/5sOgf5ZDfXSse3fz6RS5tdX1azkUWHdNSEE/fAD94/IwpDp0MLy1bmeJGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eEPxRB08+uiDiN0sEURbNbfj5+bpQk+hp6q0MEb0omY=; b=aLGCPC2Fd/G04g7FFp/iMqsW6yMY0SatZI7LdSjv9WyPwnwO9iiYICIj0+YkXZhtoKuQGN9fJ4ZKZk1N7EoyBL0RHazBK07cVG9TE0MQ4rZE4l9P3NIdAW4raGXFoiCiV3zQ33nbLxvy9c2PEeOkI91HJvBMQt+SER7BZTm+Ksg= Received: from BY5PR05MB6820.namprd05.prod.outlook.com (52.133.253.12) by BY5PR05MB7026.namprd05.prod.outlook.com (52.132.252.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.10; Tue, 3 Sep 2019 20:10:40 +0000 Received: from BY5PR05MB6820.namprd05.prod.outlook.com ([fe80::fd35:30bd:64b:f310]) by BY5PR05MB6820.namprd05.prod.outlook.com ([fe80::fd35:30bd:64b:f310%5]) with mapi id 15.20.2241.013; Tue, 3 Sep 2019 20:10:40 +0000 From: Yong Wang To: "Myers, Charles" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/vmxnet3: Added mtu_set() function to allow setting MTU. Thread-Index: AQHVVwy5RAlwvYQVC0q2OwHjSTP7GqcaA9sA Date: Tue, 3 Sep 2019 20:10:40 +0000 Message-ID: <8BE692ED-BBA9-41EA-8D3A-CAE640D780CF@vmware.com> References: <1566017542-26938-1-git-send-email-Charles.Myers@spirent.com> <1566273996-24368-1-git-send-email-charles.myers@spirent.com> In-Reply-To: <1566273996-24368-1-git-send-email-charles.myers@spirent.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.1c.0.190812 authentication-results: spf=none (sender IP is ) smtp.mailfrom=yongwang@vmware.com; x-originating-ip: [66.170.99.95] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5aea3997-e24a-4d5f-255b-08d730aacb23 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BY5PR05MB7026; x-ms-traffictypediagnostic: BY5PR05MB7026: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 01494FA7F7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(39860400002)(346002)(376002)(366004)(199004)(189003)(13464003)(6486002)(76116006)(478600001)(14454004)(66066001)(2906002)(476003)(5660300002)(58126008)(66476007)(66946007)(229853002)(305945005)(53936002)(11346002)(186003)(6916009)(2616005)(86362001)(7736002)(8676002)(66556008)(64756008)(66446008)(446003)(36756003)(256004)(14444005)(8936002)(4326008)(25786009)(71190400001)(71200400001)(316002)(102836004)(81166006)(81156014)(76176011)(6246003)(53546011)(3846002)(6512007)(99286004)(6436002)(33656002)(26005)(486006)(6506007)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY5PR05MB7026; H:BY5PR05MB6820.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: u2BkPyrdY9LTApx0IdR8NiusRBkHesxZtkzTGKCPPjy8NL96s3RoCrIJXhCaVXryIHjqZffIBxZNlvuEINUz5vdi2y6eCNgVzqzjMd+2KBOIUjYeBBKlu5zvGxHHIobKCZyN6sbY+MISKsLsHUIUUSa5UjhGZI7pg0GWapnX3N40xiMgWbYLN3S+mwcWGHiov+HhY0qgCAww15zNdeG4IEpAKsAKkO1fZ+hh4DMFDBYQyQKpTloFR0pM8PFyuSx1KIqBWUMtfFxgNqqfBFFYeZL3/igI51MdBiQFBwcFKfRWefnuCk8Ap1HKaNMSCPaG1F+duxM92pQ2HdID1JfqdTlg4kaiLWzvOdT7UYND0gk6Xjr527zeETsGmx7ftItqX2NCzj6+jVqQuv9Tt5urToeUAgLjrGUaOHi5ycUa/Fk= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <2CD3E2C7D3E10E4B8FE6CC040F8ADF03@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5aea3997-e24a-4d5f-255b-08d730aacb23 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2019 20:10:40.5207 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6N7VCTixtQXkZnGdhpIaC4JCKP6y6cMUx0OyD32zsja9bUHroI6x0omXJ98czoAid512aDsSTRsoCDZQnldfCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR05MB7026 Subject: Re: [dpdk-dev] [PATCH v2] net/vmxnet3: Added mtu_set() function to allow setting MTU. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: ,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NlIGhlcmUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJICoganVzdCB0byBwYXNzIHRo ZSBtdHUgaW5mbyB0byB0aGUgYmFja2VuZC4gKi8gICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgDQoJdm14bmV0M19kZXZfc3RvcChkZXYpOyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJdm14bmV0M19k ZXZfc3RhcnQoZGV2KTsgICAgICANCg0KICAgICsJcmV0dXJuIDA7DQogICAgK30NCiAgICArDQog ICAgK3N0YXRpYyBpbnQNCiAgICAgdm14bmV0M19tYWNfYWRkcl9zZXQoc3RydWN0IHJ0ZV9ldGhf ZGV2ICpkZXYsIHN0cnVjdCBydGVfZXRoZXJfYWRkciAqbWFjX2FkZHIpDQogICAgIHsNCiAgICAg CXN0cnVjdCB2bXhuZXQzX2h3ICpodyA9IGRldi0+ZGF0YS0+ZGV2X3ByaXZhdGU7DQogICAgLS0g DQogICAgMi43LjQNCiAgICANCiAgICANCg0K