From: John Fastabend <john.fastabend@gmail.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH v2 2/3] i40e: Add XDP_TX support
Date: Fri, 9 Dec 2016 10:06:41 -0800 [thread overview]
Message-ID: <584AF2B1.1090908@gmail.com> (raw)
In-Reply-To: <20161209082212.29549-3-bjorn.topel@gmail.com>
On 16-12-09 12:22 AM, Bj?rn T?pel wrote:
> From: Bj?rn T?pel <bjorn.topel@intel.com>
>
> This patch adds proper XDP_TX support.
>
> Acked-by: John Fastabend <john.r.fastabend@intel.com>
> Signed-off-by: Bj?rn T?pel <bjorn.topel@intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e.h | 5 +
> drivers/net/ethernet/intel/i40e/i40e_main.c | 273 ++++++++++++++++++++-----
> drivers/net/ethernet/intel/i40e/i40e_txrx.c | 303 +++++++++++++++++++++++-----
> drivers/net/ethernet/intel/i40e/i40e_txrx.h | 5 +
> 4 files changed, 490 insertions(+), 96 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
> index 05d805f439e6..adc1f3f32729 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e.h
> +++ b/drivers/net/ethernet/intel/i40e/i40e.h
> @@ -545,6 +545,10 @@ struct i40e_vsi {
> struct i40e_ring **rx_rings;
> struct i40e_ring **tx_rings;
>
> + /* The XDP rings are Tx only, and follows the count of the
> + * regular rings, i.e. alloc_queue_pairs/num_queue_pairs
> + */
> + struct i40e_ring **xdp_rings;
hmm not really a complaint about your patch but these _rings are using
something like rcu because of the kfree_rcu being called but I don't
see any rcu_dereference_bh() usage or rcu_assign_pointer() :/
I know you just copied the existing pattern. Maybe an i40e dev can
comment.
Thanks,
John
next prev parent reply other threads:[~2016-12-09 18:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 8:22 [Intel-wired-lan] [PATCH v2 0/3] i40e: Support for XDP =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 8:22 ` [Intel-wired-lan] [PATCH v2 1/3] i40e: Initial support " =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 11:56 ` kbuild test robot
2016-12-09 12:35 ` =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 16:41 ` Alexander Duyck
2016-12-09 17:20 ` =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 17:15 ` Alexander Duyck
2016-12-09 17:54 ` John Fastabend
2016-12-12 8:25 ` =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-12 8:08 ` =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 8:22 ` [Intel-wired-lan] [PATCH v2 2/3] i40e: Add XDP_TX support =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2016-12-09 18:06 ` John Fastabend [this message]
2016-12-09 8:22 ` [Intel-wired-lan] [PATCH v2 3/3] i40e: Don't reset/rebuild rings on XDP program swap =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
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=584AF2B1.1090908@gmail.com \
--to=john.fastabend@gmail.com \
--cc=intel-wired-lan@osuosl.org \
/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.