All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Mi <cmi@nvidia.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, <jiri@nvidia.com>, <saeedm@nvidia.com>,
	"kernel test robot" <lkp@intel.com>
Subject: Re: [PATCH net-next v3] net: psample: Introduce stubs to remove NIC driver dependency
Date: Thu, 28 Jan 2021 09:45:59 +0800	[thread overview]
Message-ID: <39607ec0-feab-2f0f-c13f-f106676e9a7a@nvidia.com> (raw)
In-Reply-To: <20210127154934.2afbadda@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>

On 1/28/2021 7:49 AM, Jakub Kicinski wrote:
> On Wed, 27 Jan 2021 18:16:48 +0800 Chris Mi wrote:
>> @@ -35,4 +45,21 @@ static inline void psample_sample_packet(struct psample_group *group,
>>   
>>   #endif
>>   
>> +static void
> static inline
Done.
>
>> +psample_nic_sample_packet(struct psample_group *group,
>> +			  struct sk_buff *skb, u32 trunc_size,
>> +			  int in_ifindex, int out_ifindex,
>> +			  u32 sample_rate)
>> +{
>> +	const struct psample_ops *ops;
>> +
>> +	rcu_read_lock();
>> +	ops = rcu_dereference(psample_ops);
>> +	if (ops)
>> +		ops->sample_packet(group, skb, trunc_size,
>> +				   in_ifindex, out_ifindex,
>> +				   sample_rate);
>> +	rcu_read_unlock();
>> +}


      reply	other threads:[~2021-01-28  1:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 10:16 [PATCH net-next v3] net: psample: Introduce stubs to remove NIC driver dependency Chris Mi
2021-01-27 23:49 ` Jakub Kicinski
2021-01-28  1:45   ` Chris Mi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39607ec0-feab-2f0f-c13f-f106676e9a7a@nvidia.com \
    --to=cmi@nvidia.com \
    --cc=jiri@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=lkp@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=saeedm@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.