[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6c586e9a-b672-6e60-613b-4fb6e6db8c9a@nvidia.com>
Date: Fri, 29 Jan 2021 14:08:39 +0800
From: Chris Mi <cmi@...dia.com>
To: Cong Wang <xiyou.wangcong@...il.com>
CC: Linux Kernel Network Developers <netdev@...r.kernel.org>,
Jakub Kicinski <kuba@...nel.org>, <jiri@...dia.com>,
Saeed Mahameed <saeedm@...dia.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH net-next v4] net: psample: Introduce stubs to remove NIC
driver dependency
On 1/29/2021 1:14 PM, Cong Wang wrote:
> On Wed, Jan 27, 2021 at 5:48 PM Chris Mi <cmi@...dia.com> wrote:
>> In order to send sampled packets to userspace, NIC driver calls
>> psample api directly. But it creates a hard dependency on module
>> psample. Introduce psample_ops to remove the hard dependency.
>> It is initialized when psample module is loaded and set to NULL
>> when the module is unloaded.
> Is it too crazy to just make CONFIG_PSAMPLE a bool so that it
> won't be a module?
>
> Thanks.
That's a crazy and simple solution. But adding such a stub is a common
method to
remove the NIC driver dependency for modules. And comparing with other
act_xxx
modules, psample is not small now.
Instead of discussing it several days, maybe it's better to review
current patch, so that
we can move forward :)
Thanks.
Powered by blists - more mailing lists