All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Chris Mi <cmi@nvidia.com>
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: Wed, 27 Jan 2021 15:49:34 -0800	[thread overview]
Message-ID: <20210127154934.2afbadda@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> (raw)
In-Reply-To: <20210127101648.513562-1-cmi@nvidia.com>

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

> +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-27 23:50 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 [this message]
2021-01-28  1:45   ` Chris Mi

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=20210127154934.2afbadda@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com \
    --to=kuba@kernel.org \
    --cc=cmi@nvidia.com \
    --cc=jiri@nvidia.com \
    --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.