• Manish Chopra's avatar
    qede: Fix barrier usage after tx doorbell write. · b9fc828d
    Manish Chopra authored
    Since commit c5ad119f
    ("net: sched: pfifo_fast use skb_array") driver is exposed
    to an issue where it is hitting NULL skbs while handling TX
    completions. Driver uses mmiowb() to flush the writes to the
    doorbell bar which is a write-combined bar, however on x86
    mmiowb() does not flush the write combined buffer.
    
    This patch fixes this problem by replacing mmiowb() with wmb()
    after the write combined doorbell write so that writes are
    flushed and synchronized from more than one processor.
    
    V1->V2:
    -------
    This patch was marked as "superseded" in patchwork.
    (Not really sure for what reason).Resending it as v2.
    Signed-off-by: default avatarAriel Elior <ariel.elior@cavium.com>
    Signed-off-by: default avatarManish Chopra <manish.chopra@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b9fc828d
qede_fp.c 48.1 KB