Skip to content

Commit 4a0a12d

Browse files
Jisheng Zhangdavem330
authored andcommitted
net: mvpp2: 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 d82b0c2 commit 4a0a12d

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/mvpp2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376

377377
#define MVPP2_RX_PKT_SIZE(mtu) \
378378
ALIGN((mtu) + MVPP2_MH_SIZE + MVPP2_VLAN_TAG_LEN + \
379-
ETH_HLEN + ETH_FCS_LEN, L1_CACHE_BYTES)
379+
ETH_HLEN + ETH_FCS_LEN, cache_line_size())
380380

381381
#define MVPP2_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD)
382382
#define MVPP2_RX_TOTAL_SIZE(buf_size) ((buf_size) + MVPP2_SKB_SHINFO_SIZE)

0 commit comments

Comments
 (0)