Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1369121 > unrolled thread
| Started by | Jisheng Zhang <jszhang@marvell.com> |
|---|---|
| First post | 2016-04-01 11:20 +0200 |
| Last post | 2016-04-01 20:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net: mvneta: use cache_line_size() to get cacheline size Jisheng Zhang <jszhang@marvell.com> - 2016-04-01 11:20 +0200
Re: [PATCH] net: mvneta: use cache_line_size() to get cacheline size David Miller <davem@davemloft.net> - 2016-04-01 20:50 +0200
| From | Jisheng Zhang <jszhang@marvell.com> |
|---|---|
| Date | 2016-04-01 11:20 +0200 |
| Subject | [PATCH] net: mvneta: use cache_line_size() to get cacheline size |
| Message-ID | <rj3pg-2eA-5@gated-at.bofh.it> |
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> --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 5880871..b1db000 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -299,7 +299,7 @@ #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) && \ -- 2.8.0.rc3
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-04-01 20:50 +0200 |
| Subject | Re: [PATCH] net: mvneta: use cache_line_size() to get cacheline size |
| Message-ID | <rjciR-8u7-9@gated-at.bofh.it> |
| In reply to | #1369121 |
From: Jisheng Zhang <jszhang@marvell.com> Date: Fri, 1 Apr 2016 17:12:49 +0800 > 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> Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web