Skip to content

Commit c66e98c

Browse files
Jisheng Zhangdavem330
authored andcommitted
net: mvneta: use cache_line_size() to get cacheline size
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>
1 parent 4a0a12d commit c66e98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
#define MVNETA_RX_PKT_SIZE(mtu) \
300300
ALIGN((mtu) + MVNETA_MH_SIZE + MVNETA_VLAN_TAG_LEN + \
301301
ETH_HLEN + ETH_FCS_LEN, \
302-
L1_CACHE_BYTES)
302+
cache_line_size())
303303

304304
#define IS_TSO_HEADER(txq, addr) \
305305
((addr >= txq->tso_hdrs_phys) && \

0 commit comments

Comments
 (0)