Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28775778rwd; Wed, 5 Jul 2023 02:30:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuDw7mX79jqNeV7+gEtNl3+/KcQnSGYoDmjGCddV4qHhiQHOEXgJKxxEQGhJrJ3M68N0Dz X-Received: by 2002:a17:902:c404:b0:1b8:6cab:db7f with SMTP id k4-20020a170902c40400b001b86cabdb7fmr16272364plk.53.1688549431334; Wed, 05 Jul 2023 02:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688549431; cv=none; d=google.com; s=arc-20160816; b=SqllP2CwrZzBMA1NCBEP69HyP2zeN2vT07X/ekUeEAG4EqrMCM9VeLgzObKqxeWV4i lHj1CJ7YXRFwRs+vpne9C/TXSLehdyyULDrwqIjA8yBjXn58V2UNJtPB3nhWxi797fiE tKe1TcI8skzPoAJc+HAklLWOcNVdIHvRaoFTaGyXaK7sf+hhaTNl8YxDJOEgvyb5tHaM dWnsw/oL1Q2iKuB8c1B8rv4xWrAeXeFqQpj4Gk4ZTaW1Y96gbO+Wv/iVJvrdGkK2xZI/ Gt32D9eX9G2oZ8Scg9nbH+aTw9lbu37y5sg5d+WETAfGK6h6vKcfVo3025dnC2iHgPAg uhwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FnniEHM75ybllnlQqbnzdBbhL9bJMHbs9XKrfqFwjY8=; fh=MMHDKKgO37mYVuVH+eKG+zvQ90LVdNhR74/v8hoNwe0=; b=jQrIUKHd7aaV55I12vDTunLD1ZCXxYb1M2pszeXDMR8mxhwCyKcGy7qnsATtfIAGjW qSM/nI4Ue/eAdtLoJe7JABkMp9L+znQAkDKGyqonNnRg69GeC370LA6LhVWqhAwDFcg3 BpCeulzETvLnwmLzkNv/2GvhiINI6sXFt4OTkCynuC0ULqTKd5kjaBsUj+nnc3kedAb8 geYYuSzHQICCw1zn9whL4OTAJzP2iBjYaP+nXKnKSFawza4x/8miNUYTQlrJ0xqLyCKG 1srqq9TFo6V+B4QWDK24TWJcM0zK6m7TseQUBj2o2OfODijGAEz+oQIEnanZSqjRSGSW Z0AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902ead100b001b04741042csi17539604pld.93.2023.07.05.02.30.13; Wed, 05 Jul 2023 02:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231202AbjGEJSW (ORCPT + 99 others); Wed, 5 Jul 2023 05:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231561AbjGEJSJ (ORCPT ); Wed, 5 Jul 2023 05:18:09 -0400 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04072A0; Wed, 5 Jul 2023 02:18:08 -0700 (PDT) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-3fbea14706eso1748415e9.2; Wed, 05 Jul 2023 02:18:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688548686; x=1691140686; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FnniEHM75ybllnlQqbnzdBbhL9bJMHbs9XKrfqFwjY8=; b=fjhWXSyj17Eo/rzZLfQHQHcJqBmmgFFrAlRq6XYUbNJ+sehFeBhnz+DcU5xmA/FRbc 2cyLMQAX5hjFFovlWmA4NG5MYzTTVHd+gzsZUbmEDpeLWOxwuCUvMfjTjh2729J1ZrJz C5hNOpDhprPtTwb9EZdF5Ck9Un85r0A1cZ/uD2mu7H6m+1Jbba43GU47IGsQa39l0+59 oWcVAXo99YiRbzUoECTknuIXodjjy71ubJtVa15n4NrkAUTdw+63X1murgLjC5+CpSGN eKiQdWBEBHCiiP0q/dzaNJoy7hF9xWiCst+pLPsklD1iM2/ZIZdSU9UnhVxxbdU4HxWY ntQw== X-Gm-Message-State: AC+VfDwWLJNbVn3eFkCvKuT3/f88w5crFFK8UaLmGcmjBudUGEhCU61N 7pDjKkzDrPPdn1A8GiDds2ns08QN3gwpzg== X-Received: by 2002:a05:600c:2290:b0:3fb:4165:9deb with SMTP id 16-20020a05600c229000b003fb41659debmr12674492wmf.18.1688548686265; Wed, 05 Jul 2023 02:18:06 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-009.fbsv.net. [2a03:2880:31ff:9::face:b00c]) by smtp.gmail.com with ESMTPSA id a21-20020a05600c225500b003fbc681c8d1sm1547389wmm.36.2023.07.05.02.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 02:18:05 -0700 (PDT) Date: Wed, 5 Jul 2023 02:18:03 -0700 From: Breno Leitao To: Stephen Hemminger Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , sergey.senozhatsky@gmail.com, pmladek@suse.com, tj@kernel.org, Dave Jones , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH] netconsole: Append kernel version to message Message-ID: References: <20230703154155.3460313-1-leitao@debian.org> <20230703113410.6352411d@hermes.local> <20230704085800.38f05b56@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230704085800.38f05b56@hermes.local> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 04, 2023 at 08:58:00AM -0700, Stephen Hemminger wrote: > > > This should be runtime configured like other netconsole options. > > > Not enabled at compile time. > > > > Do you mean I should add a new option to netconsole line? This is the > > current line format today: > > > > [+][src-port]@[src-ip]/[],[tgt-port]@/[tgt-macaddr] > > > > If that is the case, I suppose I want to add something at the beginning > > of format, that specify that uname should be sent. What about something > > as? > > > > [u][+][src-port]@[src-ip]/[],[tgt-port]@/[tgt-macaddr] > > > > Thanks! > > Keep it as simple as possible. > What ever program is reading udp socket knows where it is coming from. Right, the server knows from where the package is coming, so, the source address is known at receive time, and that is good. I want to do the same with uname. > The uname is really not needed. The uname is useful if the receiver side is looking (grepping) for specific messages (warnings, oops, etc) affecting specific kernel versions. If the uname is not available, the receiver needs to read boot message and keep a map for source IP to kernel version. This is far from ideal at a hyperscale level. Things get worse when you have VMs using different kernels, and both host and guests are sending traffic to the same receiver. In this case, you have two different kernels versions mapped to the same IP. Thanks!