From patchwork Thu Dec 8 14:38:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 13068505 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 481EBC4332F for ; Thu, 8 Dec 2022 14:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbiLHOiv (ORCPT ); Thu, 8 Dec 2022 09:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiLHOit (ORCPT ); Thu, 8 Dec 2022 09:38:49 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EED827B17 for ; Thu, 8 Dec 2022 06:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yd0YSLw1rCzSc3j1nlWLrYBymy18QDiY6LYxgvNBN6sWFX5K4SqMov9RlY2QvvvC2Keralz9HrZWLdHFGNvaqK9tALFnzfMN5tmDODXChhq4AgaM0a5TCHk/NsSZxrD+xqkrBXxwBGbKUcoFzzgB1GVJNjmUNszxniS3Kn7WTcFOLSwH62Ih5/f4F2ooNthJLRQstidBZWKjoNVtij3rDiLY6CwQaldibLJHvrt4lqKUB+7k67rhzRsOLDFSQgVIsUgSPqdgrM1xrRFotAv/2CyGrxN9FWU/rvACVgaDcfjxjDHNndtuzYTaJOEeiLqJ4VpR1wN8VJfq/xEYxRYusQ== 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=+dvxQeRdcbgvXX0VdNWYQO/9Lwj2sQORP9KCUhhf2dI=; b=aHCd0tqiiJNJSA/4/VwOID+vU+zsPQo/rPlVrG675cco8JwAjCALfWzBpiuAhrlMCQcaJrtG6y6fg1ChkCN1JM6V54EBbXpAe4oh0FpUxvOIewOxdJDaVfSXOLhjC1lV8W5MMA8n9E7oVUafetqG3UEt20wmtRi3Wh0014kDXCgUytQmuYTfzgEi3qlZByILRxULzW8xBIaNIAVZJohYMqWw2jugNahNUSXLVEJHqP/GZtreuZZo9ETFnXDpJ3iSjYCPq3opB9v0Ib8M7ubH1fzYGy6wRncY/wpDZ36eX56x0IJneXMLVcniQR1InWxMhJmO2gVmEpDrrqTldvItLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dvxQeRdcbgvXX0VdNWYQO/9Lwj2sQORP9KCUhhf2dI=; b=if1Ib5j5+jsP5SG7ySUfeWiNFXnfYIGgd8IDvQ1lTS6AeAHPW7fYlpIwh5AzzGXpupf0JJ5w7qN1/nT9uYIOlZ5bzRObfL3RmVDD56y3heiaeDJiSaVl+6zf60ROlHnWfSM0x35kXhE0MLnmh7GufvBH6AwfFYHj1vSIJCbcBJ+U4uM+ivgFnTjC2/Hfp7qwo3w2IyVgUWAmJL4UOXhgcxM6FpzFSconTkF/upfoM6pR+UybhAFFnJk+yfVxvIzX8/Y4tPpVv66X+QfINrggEP1vwKYkh7Aza4HH2x57Zw9S9XSYlesyu+oFqpuLneY8ASuupb0/ICNAcKbArZa+3A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) by CH3PR12MB8282.namprd12.prod.outlook.com (2603:10b6:610:124::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.16; Thu, 8 Dec 2022 14:38:47 +0000 Received: from CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::a600:9252:615:d31a]) by CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::a600:9252:615:d31a%3]) with mapi id 15.20.5880.014; Thu, 8 Dec 2022 14:38:46 +0000 From: Ido Schimmel To: netdev@vger.kernel.org Cc: dsahern@gmail.com, stephen@networkplumber.org, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement Date: Thu, 8 Dec 2022 16:38:16 +0200 Message-Id: <20221208143816.936498-1-idosch@nvidia.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: VI1P193CA0020.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:bd::30) To CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6179:EE_|CH3PR12MB8282:EE_ X-MS-Office365-Filtering-Correlation-Id: 72a31d74-c0a9-4617-21be-08dad929e9db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KWR8Y1aQKq+oH4gkvQiyLaPQVyLUsFDkn1Z6T3K24TqGvvhMg3nPC6HJNx6JJd3jNxjFlyKfDyuWI/oZjhS+7aWY3JXHOHyZM1PYSfS8GT+S6xqLZDqLO/yWmFXg48rrmgJ54YdEt+USZOsXUEoTRlXxiBSfPCT4TK5HASpYoVr3+UXVI5obP4PbHmSWrfXrKVCjCAvErL5s9f3wd+szsCueID7WUBNbO2vvMI45ESXyL+dxE/3JXowGtGIdWVCwi6AyVWaPUx6gvnuhL/17lvEN0qHDFbWPLCyJ3+5+ynvyx64bvQDvSbNuO2nv8z50L/TpCsQnasyACWY+1v+zwkErke2v7mDaeieJnWLoG+DLDSyofZ6rRG1ERFM5KLXSCatGdfl72OLX/EZV4BgPy6qpG09CxMo82gtFOfvOQbX+G3pn08o3+bA1j/fPbMxUBFb/DnQe3+u0qD5p9j4Xs68APjtD91XP+6eo0pK2sNYr8GsHI4aFUJxb23a81vOyRwkRPVQlEAznaI2326lw7XkBBGSe06zQDj0yOkXyxz81NJYC+Dcz7/kNVd0WOekwoY0KSJ+Q5RPz01FIaBbNGwhT/XRN73uO9AAtoyPIE2Skp7xPIXN4mfiWhi9n4a7LKJsYw4lrdp6uHgZkLcbBgA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR12MB6179.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199015)(5660300002)(6506007)(316002)(8936002)(8676002)(66476007)(4326008)(66556008)(2616005)(38100700002)(6916009)(66946007)(6512007)(26005)(186003)(86362001)(36756003)(1076003)(41300700001)(107886003)(83380400001)(6666004)(2906002)(478600001)(4744005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1pOlk0JOj1aQxrqk9U/GLixAGII07H25dy1tp7UhYsV+yD1FbmXEKW6GsfI2zOgReVyJ3Sr5EL61Qcww7R4cvoPxgdxbmGJzyR0uWK+dUPtF7U2OpVeWpwtuVCxVAWDI3gWilv+5Axh+4l8/v22sf85EYkeFkbjYdgOMpktXIv/swj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ju1HMYvf7lnVglx78QI5hbHz+dziwio+tC4KgnK3oCsKibPJU+6HEQxPZWEcA9wS1hU/h8rKvES+PZkdbroyVCCwN77Lk9QYXB+pB3BQUzPNX8snSn0vbjhGj1L6p31o4/tEJHAevyhAe/X6KvHvC2bWBT9pzxtIfNYhkKhFIDFllKFzw4BqYVrYkUF5VIkk8ScAFGRS/6qyXyvAEMLa6es3BuAYLu8KxvS5QnM3CQMjaKVwd5Z79920m9FXrYNfvoft/kw7/d5KcfSSJM7XojuOHg2oYCgWb2M9c+wD+DyrYcXrYs8BzRoAb4jJHcTjHpdMzClW1Z+4f9ZfXVLkM/ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72a31d74-c0a9-4617-21be-08dad929e9db X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6179.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2022 14:38:46.8416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QSlLKxDBtEFszfoiBlPyC4xz7Ef7144+88kVG0EY8paGsAGdr++wfBQu3s+c9kru+vL7jBpdKgd8y/ry6dF+5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8282 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com The netlink header must be first in the netlink message, so move it there. Fixes: fee4a56f0191 ("Update kernel headers") Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- include/libnetlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libnetlink.h b/include/libnetlink.h index 4d9696efa253..c91a22314548 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@ -38,9 +38,9 @@ struct nlmsg_chain { }; struct ipstats_req { + struct nlmsghdr nlh; struct if_stats_msg ifsm; char buf[128]; - struct nlmsghdr nlh; }; extern int rcvbuf;