Re: [PATCH net-next v3 2/2] net: Adding support for Cavium ThunderX network controller

From: David Miller
Date: Mon May 18 2015 - 19:52:40 EST


From: David Daney <ddaney@xxxxxxxxxxxxxxxxxx>
Date: Mon, 18 May 2015 14:52:30 -0700

> As I see it there are two options:
>
> 1) Keep the writeq_relaxed()/readq_relaxed(), but add a comment about
> why they are safe.
>
> 2) Change the patch so that we are using writeq()/readq() and suffer a
> decrease in performance.

I want a detailed comment added, so #1 would be my choice.

There are more than one set of register accessors, so make sure you
annotate them all.

Thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/