Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27872468rwd; Tue, 4 Jul 2023 09:02:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4KlpVPeHMmnmWYe+cJaW4OfRxDLBen7fyHhgDlXizld4v0enZtL02Gw1bM3OqmpIOImIX X-Received: by 2002:a05:6a00:2e22:b0:66e:fd84:c96d with SMTP id fc34-20020a056a002e2200b0066efd84c96dmr14282209pfb.13.1688486565301; Tue, 04 Jul 2023 09:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688486565; cv=none; d=google.com; s=arc-20160816; b=miswPAnm5xJnFyEQ2032jJnzqEAzqRC70h9t0h2w7IeavNygXStWzbksCkmpyXRgVZ C7XX5Vb8zbCrGRoeER/dK6A265Iel6GG3Yr3+RqHW3MX1Nyv3e72c1ZBqhlidEFol3vX k+jAry6tG1HE7g4vD3lBzYpLUq7WgJG8kKLjco7qGUPm55s2aD8IwlJb6h95TZ+cj6Vb 14AbyzmsQiWo6tekSq42tZA2n+CBJqjpuGxSdiDq5VKBtTL2xLiGiHG0cToLu9dERI+K I2xRAcuXNW2BlhkSZVmoAJpeXeJVg5DHe4aJ+PeMbDwuUQaoIbmBI0GyTGLph3RNqChM GPDg== 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=SU5Ch7ZyFPAWmV2R4i+//IDVV+8rAbsYSxN4PN94SKo=; fh=L5NCn16mBGzekOWDq1gJzPyB1SwbPAyiwBWJVefVfT4=; b=Hgasqz0eaPJk92rOwmrgQdHbNAldSd8JwZ3dUgV9ARYOmHgQwYvyy6/iqWoqHysqft HX5gd67YzwnanW764iOFU5Jj97TtwMsj4P53hn9kqBteE5+rK329AGrQ+WAyYSVPohJ+ QJ5ZwSGQJB6qIimBvk53e3cJs7zlM0uu88RFtKbQtQwdMJTIt/sTIx0VzSIKAbZAfheL WIK3KMRvHRGAWZiSXSmH13rpyKyybwsSup/0VKj7g9yBhWNyYy9srnUbyKTzWJCBQTED 5aj3s8d6GYBpl/2+dJbaw1fyXHlkjiX8caFw/LNvUd+TLgsciKEV+J+GNJ6VeD9k8plI 8JwA== 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 fa39-20020a056a002d2700b0068131db9c6esi14022742pfb.138.2023.07.04.09.01.58; Tue, 04 Jul 2023 09:02:45 -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 S231575AbjGDPyC (ORCPT + 99 others); Tue, 4 Jul 2023 11:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbjGDPyB (ORCPT ); Tue, 4 Jul 2023 11:54:01 -0400 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A73C8E76; Tue, 4 Jul 2023 08:54:00 -0700 (PDT) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3094910b150so6553988f8f.0; Tue, 04 Jul 2023 08:54:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688486039; x=1691078039; 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=SU5Ch7ZyFPAWmV2R4i+//IDVV+8rAbsYSxN4PN94SKo=; b=KGVkCWZEIfkiANksVsSTWgoF+RjRl1BInStoOm76wz4Tyvgwo1jQ6rYMhZVofTpwyt k72Fd+GVx3POSvxhDyqTr048lZywYJ3rrAGxinYeqngYZDDc/lUjNRoboZl4s5GqpBk/ MGabKjulr9mz3b503FHf4lrwFcnIAzZ7Clm2GQ+PbBbc9bDTGC7z9TpkqgV4ld3qX94S zjYp+Zh+JA5sDIL7vxxOjBcdb9wAI48oFPu72jDbS4I7IpnoOOxDbMzAcQ5k+ipvEdvj S0bMW1+wIzXjqPUe0SYJPi3BKT0/ockcSNIRULCaim5V7BKCDS/02hWA7HZ5ejgglHQu aJJg== X-Gm-Message-State: ABy/qLbBM/R56adU2D7XBDX9eBCb5Pdf6puv5IrluZxhYVBUFVIowkxy XF0sWBdFQKIm5CuLuJHJiMk= X-Received: by 2002:adf:e806:0:b0:314:1e99:32fd with SMTP id o6-20020adfe806000000b003141e9932fdmr10582861wrm.58.1688486038924; Tue, 04 Jul 2023 08:53:58 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-010.fbsv.net. [2a03:2880:31ff:a::face:b00c]) by smtp.gmail.com with ESMTPSA id c8-20020a056000104800b003143ba62cf4sm3738843wrx.86.2023.07.04.08.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 08:53:58 -0700 (PDT) Date: Tue, 4 Jul 2023 08:53:56 -0700 From: Breno Leitao To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , sergey.senozhatsky@gmail.com, pmladek@suse.com, 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> <4b2746ad-1835-43e6-a2fc-7063735daa46@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b2746ad-1835-43e6-a2fc-7063735daa46@lunn.ch> 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 Mon, Jul 03, 2023 at 06:46:25PM +0200, Andrew Lunn wrote: > Hi Breno Hello, > Why not just send the message without uname appended. You probably > want to see the OOM messages... > > Also, what context are we in here? Should that be GFP_ATOMIC, which > net/core/netpoll.c is using to allocate the skbs? Maybe this is not necessary anymore, since I might be using the buffer already allocated. > > +static inline void send_msg_udp(struct netconsole_target *nt, > > + const char *msg, unsigned int len) > > +{ > > +#ifdef CONFIG_NETCONSOLE_UNAME > > + send_ext_msg_udp_uname(nt, msg, len); > > +#else > > + send_ext_msg_udp(nt, msg, len); > > +#endif > > Please use > > if (IS_ENABLED(CONFIG_NETCONSOLE_UNAME)) {} else {} > > so the code is compiled and then thrown away. That nakes build testing > more efficient. Makes total sense, I am incorporating it into v2 now. Thanks!