]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2: Add missing memory barrier in bnx2_start_xmit()
authorJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 06:00:24 +0000 (14:00 +0800)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 06:00:24 +0000 (14:00 +0800)
commit84911f593a6509aae18820839bf2413441d1b593
treeae675e86e2cddfd708d7deef533fbc8c8f4d9f13
parent6400d176da514b195b4cc1ec2f72ceee052e5d4a
bnx2: Add missing memory barrier in bnx2_start_xmit()

Sync DMA descriptor before hitting the TX mailbox for weak memory model
CPUs.

There has been discussions several years ago about this.  Some believe
that writel() should guarantee ordering.  Others want explicit barriers
if necessary.  Today writel() does not have the ordering guarantee and
many other drivers use explicit barriers.

(backported from commit 94bf91baf3a16ec274de3cd913be3033c029f853)
Signed-off-by: Vlad Zolotarov <vlad@scalemp.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2.c