From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0134.outbound.protection.outlook.com [104.47.32.134]) by dpdk.org (Postfix) with ESMTP id 53C4C2B88 for ; Wed, 22 Feb 2017 08:16:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=IMPERVA.onmicrosoft.com; s=selector1-imperva-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=R4N+VX5sN1X1wW+35pUIaMXgnjpWUD78seRvlFC7ZYI=; b=X+hepINlLpPcwvjJBFsEN82PjMn74vpmfKkcew57oFB4ET7j55Bg1Qbnv+N1ofxU2BZnw2T63qVrn4wzBlklSmcmUB8z2QpgmwMgcx38TqFYV/LH7LZR+/0qRBv3X82YA893LDOzK63pCPhjXZdTi29IrPGLIoa1PCdlmvAq3mg= Received: from DM5PR06MB2842.namprd06.prod.outlook.com (10.175.108.12) by DM5PR06MB2841.namprd06.prod.outlook.com (10.175.108.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Wed, 22 Feb 2017 07:16:57 +0000 Received: from DM5PR06MB2842.namprd06.prod.outlook.com ([10.175.108.12]) by DM5PR06MB2842.namprd06.prod.outlook.com ([10.175.108.12]) with mapi id 15.01.0919.018; Wed, 22 Feb 2017 07:16:57 +0000 From: Eyal Leshem To: "users@dpdk.org" Thread-Topic: Checksum offloading on gre outer-ip in dpdk-16.11 Thread-Index: AQHSjNuHdsiJJadxREqEOJfFrj21/w== Date: Wed, 22 Feb 2017 07:16:57 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Eyal.Leshem@imperva.com; x-originating-ip: [2603:10b6:300:ad:cafe::aa] x-ms-office365-filtering-correlation-id: 4047eb48-5288-47c9-7900-08d45af2c9af x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DM5PR06MB2841; x-microsoft-exchange-diagnostics: 1; DM5PR06MB2841; 7:3sBUvDLnunnrDzGLb0qI7AzWuPPwkE2gt8kMcLlgLq4K5QrgKF1kof6b7qDpPOep3TnQM7kPoMeqH2j45j+dI4gtXOGOpJzolqku5sqki4n2k9VLinqF7deWJLfCtZYVkJZJpZOfxqfun/Y3cV1O+uCBxNPtWwph920u3bFWpVobjFXCxKgnhbKzpy6j4AEvi9euOxbE274hEO+CTzD8GnnIIV6q1Qwp0YG7vgI4TIp59xp2XgXOXmkDlfTiD8IkZPAywsygKCfORUl4nxX0MpJcj0fyNQdqxC3frnNLgNArdsNJyQaIms8mb7I3L/1kKxAls0pUZn7QdCFPoC1hNw== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123558025)(20161123564025)(20161123560025)(20161123562025)(6072148); SRVR:DM5PR06MB2841; BCL:0; PCL:0; RULEID:; SRVR:DM5PR06MB2841; x-forefront-prvs: 022649CC2C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39840400002)(39850400002)(39410400002)(39860400002)(51874003)(53754006)(189002)(199003)(97736004)(106116001)(101416001)(122556002)(102836003)(450100001)(50986999)(2351001)(6116002)(68736007)(54356999)(105586002)(7736002)(1730700003)(74316002)(33656002)(7696004)(92566002)(2501003)(6916009)(106356001)(6606003)(81156014)(53336002)(3660700001)(189998001)(8676002)(2906002)(5660300001)(3280700002)(6436002)(54896002)(99286003)(77096006)(110136004)(9686003)(6506006)(25786008)(5640700003)(55016002)(38730400002)(81166006)(2900100001)(53936002)(86362001)(8936002)(19627405001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR06MB2841; H:DM5PR06MB2842.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: imperva.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: imperva.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2017 07:16:57.7887 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bd878493-8917-4c2b-9a2e-f80e639f649a X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR06MB2841 X-Mailman-Approved-At: Thu, 23 Feb 2017 09:51:14 +0100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Checksum offloading on gre outer-ip in dpdk-16.11 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 07:16:59 -0000 Hi all, I use checksum-offloading for calculating the checksum of packets that i ch= ange/create inside my app. I use it for regular packets and for gre packets (on gre - the checksum is = calculated on the outer-header). On dpdk-16.07 everything works fine , But when i try to use that with DPDK-= 16.11 it seems that the offloading on GRE packets does not work (while on t= he regular packets it still works fine). In dpdk-16.07 I use the following flags on my mbuf to mark to the NIC that = the packets need checksum calculation (m is the "struct rte_mbuf"): "m->ol_flags |=3D PKT_TX_OUTER_IPV4|PKT_TX_OUTER_IP_CKSUM;" On 16.11 I tried to add also the PKT_TX_TUNNEL_GRE (As i saw that addition = in "csumonly.c" in the 16.11 version in the "pmd-test" app) - but that also= didn't help. My NIC is : "Intel Corporation Ethernet Controller X710 for 10Gbe backplane= " And i run my app in Ubuntu-14.0.4. Any Ideas? Thanks in advance - Eyal