net: mvneta: use cache_line_size() to get cacheline size
authorJisheng Zhang <jszhang@marvell.com>
Fri, 1 Apr 2016 09:12:49 +0000 (17:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Apr 2016 18:36:47 +0000 (14:36 -0400)
L1_CACHE_BYTES may not be the real cacheline size, use cache_line_size
to determine the cacheline size in runtime.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Suggested-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index 58808718d11454a63fa2bb32b5a0499dc595bf66..b1db000f19272ae47b42199e5e74171338a741cb 100644 (file)
 #define MVNETA_RX_PKT_SIZE(mtu) \
        ALIGN((mtu) + MVNETA_MH_SIZE + MVNETA_VLAN_TAG_LEN + \
              ETH_HLEN + ETH_FCS_LEN,                        \
-             L1_CACHE_BYTES)
+             cache_line_size())
 
 #define IS_TSO_HEADER(txq, addr) \
        ((addr >= txq->tso_hdrs_phys) && \