Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp88220lqb; Thu, 14 Mar 2024 06:18:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRSkrYHVWWUxk9xprJkrpv/6JXz1y+PJRE2W3S8ssfIMPCFwt8XvTAchGUHlxbuCoVlf9hHBna44V2nY/fzJbH9E1gvXmPZ3cirHfWmg== X-Google-Smtp-Source: AGHT+IHHimYNCgnPD0OIe2UmQhIdPjrewIdLGhw7Pll0AU1+MkePz44r4BCCzfwBruvEmbsA2Omp X-Received: by 2002:a17:90a:d254:b0:29b:cc7d:6a9 with SMTP id o20-20020a17090ad25400b0029bcc7d06a9mr1581187pjw.3.1710422301416; Thu, 14 Mar 2024 06:18:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710422301; cv=pass; d=google.com; s=arc-20160816; b=RGaG+5/TDloteElV9vDEUyCDC1MswAEIi3j9SoaztrzcRij9raJLDmlcAYYjBpaN4D fGx6uvCbbpr4BEdjis/M6uTR5ghT66QzdDYJVxWolGgNewAh9yvplC3s6oHRWh/SCxx3 g/amlTV1JgxHn+W+wkEmgubACAu8kw3LTwZJWKvwXRHFo4oECNWU9yGth6Pf1Crf6qjl 5Y1RR6rEvRE/j+6MDrg28BwNH1RjyBsTOgYp+d6tbn2TCZY50UGyY4Fd6HfckQU8qq4A dOvrTq2RE385hV0H6+U9S76wBu56YfLwUZ7iPnREYj9J2m05/MnuhLsRVngOzme29d+x c0Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:to:from:dkim-signature; bh=WxLutTnRoPbq6saJpMDkQW7pepYVttH65771Wfq4fM4=; fh=ziJ9AMJmxm9qBq8o20h5tsFgTfoGPvNXEcYaxQSiHkw=; b=YLSRZPGmVQPIwx1EZfeoqCHVK9lV8rQk6nfil62npAvJXrpPxo3hrN2dAcPf+kUo9f IQTZms4xLl/HB7xw8Jj+niXpkBPRfpMUOi5JwBA6K1IMqu0pdWcQBTXpBDAIyMi52EWm kNFSwLrCfNKI2Sf/RwcYevZiP9dBSFEWrE42Rv2YLMtA0r2X71aQrSdORHFQFMqMi+V3 dnuTZ4JnTh2i2HJxZSz4/GTPwZBxNCSWI9tEfmpts8fs7cFP9l5RyXVSzAYJfGREK3lq 4tXII/j0uas0CFaokMj7WqvoV8wjqSpHohiyh1kqHnk47R5S8739UWS/O0PtnSxJnciT N4SA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=mnqlVAWL; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o19-20020a17090ac71300b0029b80d93d0asi590640pjt.128.2024.03.14.06.18.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=mnqlVAWL; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E245C2879A5 for ; Thu, 14 Mar 2024 13:09:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 314855B68F; Thu, 14 Mar 2024 13:09:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="mnqlVAWL" Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FE4C5A7AE; Thu, 14 Mar 2024 13:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710421781; cv=none; b=QvxRrcJZ/SgQNHxakITvAUGnGpdQDaliOrU6yvxg0HAKOKQpF4gvbyWWoAxbq+ZP+JfcJgs6hcjo0uaKTek7GlxIl757dc15dnfUnEjR2UiS+3fMY/rx1mK1Q3sa3/MgcxLU6U4ryih4VVll0N85b5nMLzHzcfukS8EZDVPZ77o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710421781; c=relaxed/simple; bh=X+C4Lb37uB9McXdaw6/uGad+ij/t1LeB2+QKiBogxVY=; h=From:To:Subject:Date:Message-Id; b=p2XeQ7+jw6DuNybROGmMbKipy/UIrohotLtTxP4tegjCSmlGR5LjZNZZQeM9//zc6J43qe5lP/xuKGMbEiT6GWnyjvNtx4e95XMk/hAdRo4KJg8QqY4HmCyZM8+yt0HrPYiFrdg88zaEqToPzNoCBuF8FlKsqmP93nhhEB3DVwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=mnqlVAWL; arc=none smtp.client-ip=115.124.30.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1710421776; h=From:To:Subject:Date:Message-Id; bh=WxLutTnRoPbq6saJpMDkQW7pepYVttH65771Wfq4fM4=; b=mnqlVAWLDZUq15xD+cThmjVa8ct/lrY+3d/59w1U1DHSy7JhZYVKvkur4X2BioF3DVNb+PXOBB3ItqHbU47sRzYjZL8QZxpVrNnszx7QYApm+t8SczVXaDfQu8iw0aZM3o6Zrxyn4sve82nMDnc8sllrQqpGwebzkioCzwmLZI4= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=hengqi@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0W2Swf5l_1710421773; Received: from localhost(mailfrom:hengqi@linux.alibaba.com fp:SMTPD_---0W2Swf5l_1710421773) by smtp.aliyun-inc.com; Thu, 14 Mar 2024 21:09:34 +0800 From: Heng Qi To: "David S. Miller" , Tal Gilboa , Eric Dumazet , Paolo Abeni , Jakub Kicinski , Jason Wang , "Michael S. Tsirkin" , Xuan Zhuo , Jonathan Corbet , Randy Dunlap , Bjorn Helgaas , Breno Leitao , Johannes Berg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev Subject: [RFC PATCH 0/2] net: provides dim profile fine-tuning channels Date: Thu, 14 Mar 2024 21:09:31 +0800 Message-Id: <1710421773-61277-1-git-send-email-hengqi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The NetDIM library provides excellent acceleration for many modern network cards. However, the default profiles of DIM limits its maximum capabilities for different NICs, so providing a channel through which the NIC can be custom configured is necessary. Please review, thank you very much! Heng Qi (2): net: add sysfs attributes for customized dim profile management virtio-net: support net sysfs to fine-tune dim profile Documentation/ABI/testing/sysfs-class-net | 17 +++ drivers/net/virtio_net.c | 64 ++++++++++- include/linux/dim.h | 7 ++ include/linux/netdevice.h | 35 ++++++ lib/dim/net_dim.c | 6 -- net/core/net-sysfs.c | 172 ++++++++++++++++++++++++++++++ 6 files changed, 294 insertions(+), 7 deletions(-) -- 1.8.3.1