Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6D35C43381 for ; Fri, 22 Mar 2019 15:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E819218FE for ; Fri, 22 Mar 2019 15:20:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fVFfiIrP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726472AbfCVPUE (ORCPT ); Fri, 22 Mar 2019 11:20:04 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34669 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfCVPUE (ORCPT ); Fri, 22 Mar 2019 11:20:04 -0400 Received: by mail-wr1-f65.google.com with SMTP id p10so2814181wrq.1 for ; Fri, 22 Mar 2019 08:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XqmGbSWQgSEIaXqrzdq/YrOWOtkrTJY+q4kR+YaofxY=; b=fVFfiIrPNlp9pyMPGYqaPGsHpFOh9e6QyQc9Fr4Llgc63tEgf93JmiqWiy9CXuqWxC Ka0uoccIsCY2tk2C9V4gShUkGM6OR/E4/+XFsVyS6mE6E+B46aMjb+oWaXQMwLZf8cWR e2u2hwfO0oZUk/bYEEsdPgJQ4/Yh2gblYMxHQx7+ybidIocP8RrwA/iV8BF3+E58TwPE Bco6xd5QNmk3U5cuBDzAjce7bxM+vC/8qm7wynsAK7gV5hlzxuJMPbHvE8nI9mva+5C9 7V9JneS0WoZjA7EVpAiG0aJ9i0fSXBgwN/mBTe0cBxshGxebhgDT0F4It5+bqngMfIac KLRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XqmGbSWQgSEIaXqrzdq/YrOWOtkrTJY+q4kR+YaofxY=; b=dm5SoUYxdaf9FxkKmu5dqyon+nFgpR6MAwgnLqnJvu0KpL7AUvOlxt0/XGh0+8M6L6 UKurruDhH3YSvwxETUjoc/jtAFCXObkmL0g3UeFupHpCtgIo7uO7T6YkP6XyqtN3jQzU tTOrMnAqxbu9zPPDpw05NL/M808K2BiqdR0RSit2UDjdGzPrQafNLvRdUE5Py/G0KPTK 6Xo9gnHHmESphFDoHCqNFtuWYNx4LUcQpT7ZtnEJbIxheHWXK2mJpkVf8Jbq4tp7vX3C bt7wl2R444mcY+LJJw/vXnDoxkRd9hGJHNzIR1aBN77rL58SZjiABTLPNrVS0iYObWQi 3RYA== X-Gm-Message-State: APjAAAVJlLNyRGuDyCOJcdmOxPK/fQXIX3H1nr6k2YKrRTwcrmnYjtDS fldwdBCax5T/IF9bkpekL6E= X-Google-Smtp-Source: APXvYqw69JM8r+PbB9N1U8H4CPDdFspoiVfv6tZnyKhgS8IT1yCu4BdgvvvvxgBbjDwq9BSgeRaqDQ== X-Received: by 2002:adf:ea0b:: with SMTP id q11mr5593550wrm.233.1553268002388; Fri, 22 Mar 2019 08:20:02 -0700 (PDT) Received: from [172.31.96.190] ([195.39.71.253]) by smtp.gmail.com with ESMTPSA id r12sm13941684wrr.71.2019.03.22.08.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 08:20:01 -0700 (PDT) Subject: Re: [PATCH v2 net-next 3/3] tcp: add one skb cache for rx To: kbuild test robot , Eric Dumazet Cc: kbuild-all@01.org, "David S . Miller" , netdev , Soheil Hassas Yeganeh , Willem de Bruijn , Florian Westphal , Tom Herbert , Eric Dumazet References: <20190322001444.182463-4-edumazet@google.com> <201903222212.cZw1cpG1%lkp@intel.com> From: Eric Dumazet Message-ID: <23f989f7-0cbd-c0dd-4591-ff452a0fc32a@gmail.com> Date: Fri, 22 Mar 2019 08:20:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <201903222212.cZw1cpG1%lkp@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 03/22/2019 08:00 AM, kbuild test robot wrote: > Hi Eric, > > I love your patch! Yet something to improve: > > [auto build test ERROR on net-next/master] > > url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/tcp-add-rx-tx-cache-to-reduce-lock-contention/20190322-215506 > config: x86_64-randconfig-x016-201911 (attached as .config) > compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All errors (new ones prefixed by >>): > > In file included from include/linux/dynamic_debug.h:6:0, > from include/linux/printk.h:330, > from include/linux/kernel.h:15, > from include/linux/list.h:9, > from include/linux/module.h:9, > from drivers//net/ethernet/intel/e1000/e1000.h:10, > from drivers//net/ethernet/intel/e1000/e1000_main.c:4: > include/net/sock.h: In function 'sk_eat_skb': >>> include/net/sock.h:2442:31: error: 'rps_needed' undeclared (first use in this function); did you mean 'free_netdev'? > if (!static_branch_unlikely(&rps_needed) && !sk->sk_rx_skb_cache) { > ^ > include/linux/jump_label.h:466:43: note: in definition of macro 'static_branch_unlikely' > if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ > ^ > include/net/sock.h:2442:31: note: each undeclared identifier is reported only once for each function it appears in > if (!static_branch_unlikely(&rps_needed) && !sk->sk_rx_skb_cache) { > ^ > include/linux/jump_label.h:466:43: note: in definition of macro 'static_branch_unlikely' > if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ > ^ > > vim +2442 include/net/sock.h > > 2430 > 2431 /** > 2432 * sk_eat_skb - Release a skb if it is no longer needed > 2433 * @sk: socket to eat this skb from > 2434 * @skb: socket buffer to eat > 2435 * > 2436 * This routine must be called with interrupts disabled or with the socket > 2437 * locked so that the sk_buff queue operation is ok. > 2438 */ > 2439 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) > 2440 { > 2441 __skb_unlink(skb, &sk->sk_receive_queue); I guess all this makes sense on SMP systems only :) >> 2442 if (!static_branch_unlikely(&rps_needed) && !sk->sk_rx_skb_cache) { > 2443 sk->sk_rx_skb_cache = skb; > 2444 skb_orphan(skb); > 2445 return; > 2446 } > 2447 __kfree_skb(skb); > 2448 } > 2449 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation >