All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <rdreier@cisco.com>
To: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Cc: jgarzik@pobox.com, netdev@vger.kernel.org,
	Liran Liss <liranl@mellanox.co.il>,
	tziporet@mellanox.co.il
Subject: Re: [Patch RFC 01/10 v2] mlx4_en: mlx4_en header file
Date: Wed, 20 Aug 2008 09:46:00 -0700	[thread overview]
Message-ID: <adabpznprcn.fsf@cisco.com> (raw)
In-Reply-To: <48AC1556.20801@mellanox.co.il> (Yevgeny Petrilin's message of "Wed, 20 Aug 2008 16:00:06 +0300")

 > +enum {
 > +	MLX4_EN_FLAG_MSI_X      = 1 << 1,
 > +	MLX4_EN_FLAG_HIGH_DMA   = 1 << 2,
 > +	MLX4_EN_FLAG_FW_RUNNING = 1 << 3
 > +};

I can't find anywhere that any of these flags are used?

 > +#ifdef MLX4_EN_PREFETCH
 > +	#define PREFETCH(x)	prefetch(x)
 > +#else
 > +	#define PREFETCH(x)	do {} while (0)
 > +#endif

Probably better to figure out if you want to prefetch or not rather than
having this compile-time option.  Probably not, given that HW
prefetchers keep getting better.

 > +#define ROUNDUP_LOG2(x)		ilog2(roundup_pow_of_two(x))

<linux/log2.h> calls this order_base_2()

 > +#define XNOR(x, y)		(!(x) == !(y))

I think I said this before, but given that you only use this once, it
would be clearer to just open-code it there.



 - R.

      reply	other threads:[~2008-08-20 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 13:00 [Patch RFC 01/10 v2] mlx4_en: mlx4_en header file Yevgeny Petrilin
2008-08-20 16:46 ` Roland Dreier [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=adabpznprcn.fsf@cisco.com \
    --to=rdreier@cisco.com \
    --cc=jgarzik@pobox.com \
    --cc=liranl@mellanox.co.il \
    --cc=netdev@vger.kernel.org \
    --cc=tziporet@mellanox.co.il \
    --cc=yevgenyp@mellanox.co.il \
    /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.