netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Alexander Lobakin <alobakin@marvell.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Igor Russkikh <irusskikh@marvell.com>,
	Michal Kalderon <michal.kalderon@marvell.com>,
	Ariel Elior <aelior@marvell.com>,
	Denis Bolotin <denis.bolotin@marvell.com>,
	Doug Ledford <dledford@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Martin KaFai Lau <kafai@fb.com>, Song Liu <songliubraving@fb.com>,
	Yonghong Song <yhs@fb.com>, Andrii Nakryiko <andriin@fb.com>,
	KP Singh <kpsingh@chromium.org>,
	GR-everest-linux-l2@marvell.com, netdev@vger.kernel.org,
	bpf@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 net-next 01/15] qed: reformat "qed_chain.h" a bit
Date: Wed, 22 Jul 2020 19:33:11 -0300	[thread overview]
Message-ID: <20200722223311.GK25301@ziepe.ca> (raw)
In-Reply-To: <20200722221045.5436-2-alobakin@marvell.com>

On Thu, Jul 23, 2020 at 01:10:31AM +0300, Alexander Lobakin wrote:
> Reformat structs and macros definitions a bit prior to making functional
> changes.
> 
> Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
>  include/linux/qed/qed_chain.h | 126 ++++++++++++++++++----------------
>  1 file changed, 66 insertions(+), 60 deletions(-)
> 
> diff --git a/include/linux/qed/qed_chain.h b/include/linux/qed/qed_chain.h
> index 7071dc92b4e2..087073517c09 100644
> +++ b/include/linux/qed/qed_chain.h
> @@ -26,9 +26,9 @@ enum qed_chain_mode {
>  };
>  
>  enum qed_chain_use_mode {
> -	QED_CHAIN_USE_TO_PRODUCE,		/* Chain starts empty */
> -	QED_CHAIN_USE_TO_CONSUME,		/* Chain starts full */
> -	QED_CHAIN_USE_TO_CONSUME_PRODUCE,	/* Chain starts empty */
> +	QED_CHAIN_USE_TO_PRODUCE,			/* Chain starts empty */
> +	QED_CHAIN_USE_TO_CONSUME,			/* Chain starts full */
> +	QED_CHAIN_USE_TO_CONSUME_PRODUCE,		/* Chain starts empty */
>  };
>  
>  enum qed_chain_cnt_type {
> @@ -40,84 +40,86 @@ enum qed_chain_cnt_type {
>  };
>  
>  struct qed_chain_next {
> -	struct regpair	next_phys;
> -	void		*next_virt;
> +	struct regpair					next_phys;
> +	void						*next_virt;
>  };

I'm surprised this is considered an improvement??

I've been encouring people to go the other way, maintaining vertical alignment is
harmful to backporting..

Jason

  reply	other threads:[~2020-07-22 22:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 22:10 [PATCH v2 net-next 00/15] qed, qede: improve chain API and add XDP_REDIRECT support Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 01/15] qed: reformat "qed_chain.h" a bit Alexander Lobakin
2020-07-22 22:33   ` Jason Gunthorpe [this message]
2020-07-22 22:10 ` [PATCH v2 net-next 02/15] qed: reformat Makefile Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 03/15] qed: move chain methods to a separate file Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 04/15] qed: prevent possible double-frees of the chains Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 05/15] qed: sanitize PBL chains allocation Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 06/15] qed: move chain initialization inlines next to allocation functions Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 07/15] qed: simplify initialization of the chains with an external PBL Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 08/15] qed: simplify chain allocation with init params struct Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 09/15] qed: add support for different page sizes for chains Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 10/15] qed: optimize common chain accessors Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 11/15] qed: introduce qed_chain_get_elem_used{,u32}() Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 12/15] qede: reformat several structures in "qede.h" Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 13/15] qede: reformat net_device_ops declarations Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 14/15] qede: refactor XDP Tx processing Alexander Lobakin
2020-07-22 22:10 ` [PATCH v2 net-next 15/15] qede: add .ndo_xdp_xmit() and XDP_REDIRECT support Alexander Lobakin
2020-07-22 22:35 ` [PATCH v2 net-next 00/15] qed, qede: improve chain API and add " Jason Gunthorpe
2020-07-23  1:19 ` David Miller

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=20200722223311.GK25301@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=GR-everest-linux-l2@marvell.com \
    --cc=aelior@marvell.com \
    --cc=alobakin@marvell.com \
    --cc=andriin@fb.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=denis.bolotin@marvell.com \
    --cc=dledford@redhat.com \
    --cc=hawk@kernel.org \
    --cc=irusskikh@marvell.com \
    --cc=john.fastabend@gmail.com \
    --cc=kafai@fb.com \
    --cc=kpsingh@chromium.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=michal.kalderon@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=songliubraving@fb.com \
    --cc=yhs@fb.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).