From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=intel.com (client-ip=134.134.136.126; helo=mgamail.intel.com; envelope-from=aleksander.lobakin@intel.com; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ZMQXUglD Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mail.toke.dk (Postfix) with ESMTPS id 0F0FAA2A214 for ; Thu, 14 Sep 2023 18:35:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694709340; x=1726245340; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=lJPo84E1WW+SYt0NlVVk4y94Vm3D33w5hmMKH5sjhKI=; b=ZMQXUglDAIeOFXE2Mc8pkyRe35wZ+GNjauZSqits40vw3iIO1lU07PxH gryeeosFUPlF5nr/5JFCTgALVmkDtMosRLiZje5beOCZURJ1RaVA3bfAg UFnF3V9hJgLdy+f2PDYKIx2IfMmPIQPmDkOhbrsQenG1MokLSnORt9iNs mdkz7kHPcc1hGW/4IbmtIdzpmDUUJYd9pN4LdT1VvI95TOW4XVYwePxSd kaud1JHvwccOOFTc8IHdhm5FTU+e9mdfahtBCg4AzvygLsgBbHN0GpxDm 0lPCc+fW8zPC844dPkEkU3H5P4D4kInz82/2B/myT9rQVQar3KSxjNX0L Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="364053977" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="364053977" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 09:35:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="747816419" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="747816419" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Sep 2023 09:35:37 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 14 Sep 2023 09:35:37 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Thu, 14 Sep 2023 09:35:37 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Thu, 14 Sep 2023 09:35:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EATznK2plfhl6iRcJQzIEMa13HlHXHktR7KRa9OThgfaOc/ZKc8YFoSLSjEvFpS4WJX0bU+Y0B/x6mitM/RQuskbGEZDUUldvKSHmkWnByVCDr7hPbfwbIOpJYxGYX2rc4DnNTRpwWdqaBozKUEd9Zcbm5fMYUemx9sMIrmJCAUMId5UHkS5iwPSWzgB9NJzSePahCPA9zS351vOZFKhYhn0WcUsdSFr6zbN3wNHUqFSaAT0Awzj3DphiM+UAswPvyDQVSn+BmT3vJJCXxIVObuAxXXYaRRJ6EurfTeZw/OupGDQw/aBBsh9wGheN/DxEJ1SeR1I2JUHAFcUTowyUw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=drZunxVgKDQ2G0X4I3S94m2qXbvxmkYqY/ZjPh2NJEk=; b=aYeJ+XWdmVpALfEBHfkOaKmE4KUYTbbGXs+OH1v1q2uTCQ42BWVAIwgxs2gFQi8qx/eqI5sGxQGtX1OAXLItUogvDuuqpASeMc49qeiTSmxwXDn1BY9KQTTIvSGD2Fg1yRn5oBh4S/RRQyfK9er0nzrrXaO5vuhEDZhkQkvxvP7dFkIAH5yjMuw4pgxXzk+3ffm4kuwAnxZHG/5jysBRMD3G53ZIKm74FEktCMDInQNz9eow85D9NduyVAYVPrpxQyx8s7WNHXBuZ4hwxZFtyRpLHj+EhV64HJT9Uv9zBHhlyuJLzHswL3HV+1rL9xJ4FUYfaUw7EXGGNcqDj/v7mA== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by SA0PR11MB4669.namprd11.prod.outlook.com (2603:10b6:806:99::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Thu, 14 Sep 2023 16:35:34 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::bede:bd20:31e9:fcb4]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::bede:bd20:31e9:fcb4%7]) with mapi id 15.20.6768.029; Thu, 14 Sep 2023 16:35:34 +0000 Message-ID: <280ca32f-4c69-dd5b-fd9b-e69a7685a60a@intel.com> Date: Thu, 14 Sep 2023 18:34:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Larysa Zaremba , References: <20230824192703.712881-1-larysa.zaremba@intel.com> <20230824192703.712881-13-larysa.zaremba@intel.com> From: Alexander Lobakin In-Reply-To: <20230824192703.712881-13-larysa.zaremba@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BE1P281CA0081.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:78::19) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|SA0PR11MB4669:EE_ X-MS-Office365-Filtering-Correlation-Id: cc99989d-a72c-452d-cbf9-08dbb5409e4c X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +4en7oIe7dfdx4RIqhilVu/CrP2E9HGz5PvOrDSKzISymiwRH8gqOT8NGwxL2Uk3MImp3Jo1KBx0jz2pjL2UmlJOcqC5FAZNj55yWa9MOn/WA4crdk8lBo8pxRQ3NyQZKTzQEyGBicGxJ2cRYRq9Gm/ho+x8LM61HOZCXkgB5UwI+zdKtUvqsRGLz6WJmbA/N6aUpLm9JuBx+oN8uWdQrGzm0zBUXjqVm0s7r62nV0m8E1w7EYUKVbnXZe4DiYlpXtsQ0IjBYnNL5BzPav943KkAYf+uK6/ff2KNMCQTiWaSaZ2/geBSZo3oLA6v04XtX1Jx+QpPNn6viqAlyq10UPJbnXE3rkhXRPxQe2i1zyy7DIWYAgAbVLM2PYsYWkg1NaNz+BUm6QYsxGZpmh3Y5AV2qGV5SemE5oJRiCxC5+qMtuq7GYxxkxRXZ3gtsDxJFP3bidm4qg2aNu6a4kXCFlMRUscK/xE0Oph40j12MnoMifhnsz3VwPv9/opdzvYn8ST/oKMQz7jBXNAXTsPgMWwTJtkPYvVDxiSU1hJT88uy+3UZsC1T+0sg5pl3do+PRHqcqyXerxsLVmsuBMAYjGO0phws73801m+L32HA7ooWIgSRzzi3+1Poaxi9QnlkogjOl9WwgyJWf/0ThLd19w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(136003)(366004)(39860400002)(346002)(186009)(1800799009)(451199024)(6512007)(82960400001)(2616005)(38100700002)(86362001)(6486002)(6506007)(31696002)(478600001)(6666004)(26005)(66946007)(8936002)(8676002)(4326008)(5660300002)(316002)(66476007)(54906003)(41300700001)(66556008)(2906002)(7416002)(36756003)(31686004)(83380400001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a2d4T21rdEI5a2VzUTRPTEJZdTdvUVBVcmZiOTMrSGl0UUQ1SlZhb1QzS3Bo?= =?utf-8?B?QkFQZWV0ZlVubVhmSkUwNFJWZjUwTjRuQmhMbElxdVp1cm5LSlVCUXNiNTRL?= =?utf-8?B?SGtldy9iZnlzRG50T2hwc0prbjRDMzA5SGxvdWE1c2VWZUI1dGt4aHdXcnNv?= =?utf-8?B?NWdMZVBDN0YzNG5ERjdoWkRsekFMOFlUWHNVQXF0VHhpYTh3ZnBlZ0k5VlVN?= =?utf-8?B?Z0tJbkdHNWZjTlorY3BudFU3c0dxamJMRFJtV3hubDhlVlJxbUZMak5NUEE5?= =?utf-8?B?bHhCR3VmRDBWN2lPQUxUTGRleStoZ01hQWh3TkJ0YUZBcFNlWDJEaXFLWDRB?= =?utf-8?B?NE9BZW5RRFBEelNMUmtEekJXNU1UZjRmdE5sSFFkWjkvbDljcEZCckFqVkpV?= =?utf-8?B?Zlh2M205N3Uz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d-a72c-452d-cbf9-08dbb5409e4c X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 16:35:34.3983 (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: IX2X6El4B3VuDb+nK57VC7wsTm1sfeB219LWZ4cF60YUdjpumHRll+6C9sMOepeOld/7qqSR3+tUOSvEl8rGt7my6wWaEiPPDVkzkXFW/Lg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4669 X-OriginatorOrg: intel.com Message-ID-Hash: QEWTL6WI2COZNXLPW5A6RK2KV4OJNPQ3 X-Message-ID-Hash: QEWTL6WI2COZNXLPW5A6RK2KV4OJNPQ3 X-MailFrom: aleksander.lobakin@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, Willem de Bruijn , Alexei Starovoitov , Simon Horman , Tariq Toukan , Saeed Mahameed X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [RFC bpf-next 12/23] xdp: Add checksum hint List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Larysa Zaremba Date: Thu, 24 Aug 2023 21:26:51 +0200 > Implement functionality that enables drivers to expose to XDP code checksum > information that consists of: > > - Checksum status - 2 non-exlusive flags: > - XDP_CHECKSUM_VERIFIED indicating HW has validated the checksum > (corresponding to CHECKSUM_UNNECESSARY in sk_buff) > - XDP_CHECKSUM_COMPLETE signifies the validity of the second argument > (corresponding to CHECKSUM_COMPLETE in sk_buff) > - Checksum, calculated over the entire packet, valid if the second flag is > set > > Signed-off-by: Larysa Zaremba Reviewed-by: Alexander Lobakin Only one stupid thing from me: when a line starts from '-' in the commit message, some editors/viewers paint it red thinking it's a diff already :z (same for '+') Not something important, you just may want to prefer "neutral" '*', up to you :D > --- > Documentation/networking/xdp-rx-metadata.rst | 3 +++ > include/net/xdp.h | 15 +++++++++++++ > kernel/bpf/offload.c | 2 ++ > net/core/xdp.c | 23 ++++++++++++++++++++ > 4 files changed, 43 insertions(+) [...] Thanks, Olek