]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Use ACCES_ONCE macro to read queue's consumer index
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 8 Dec 2015 04:39:13 +0000 (10:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2015 03:43:15 +0000 (22:43 -0500)
commit6c674b66addcc7dabd97c01eead6c01bdbcebccc
tree5537a081738e0002f4346f04aa6cf132d90f2837
parentd9c7b38e95594cbb4e5128702b8ff4159cb2f0f6
cxgb4: Use ACCES_ONCE macro to read queue's consumer index

Use helper macro ACCESS_ONCE() to load from the SGE status page
to prevent the compiler loading multiple times.

Based on original work by Mike Werner <werner@chelsio.com>

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c