Skip to content

Commit 368ac79

Browse files
Wei FangNipaLocal
authored andcommitted
net: enetc: correct the value of ENETC_RXB_TRUESIZE
ENETC_RXB_TRUESIZE indicates the size of half a page, but the page size is adjustable, for ARM64 platform, the PAGE_SIZE can be 4K, 16K and 64K, so a fixed value '2048' is not correct when the PAGE_SIZE is 16K or 64K. Fixes: d4fd040 ("enetc: Introduce basic PF and VF ENETC ethernet drivers") Signed-off-by: Wei Fang <wei.fang@nxp.com> Signed-off-by: NipaLocal <nipa@local>
1 parent 89dc836 commit 368ac79

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/freescale/enetc

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/enetc/enetc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct enetc_lso_t {
7676
#define ENETC_LSO_MAX_DATA_LEN SZ_256K
7777

7878
#define ENETC_RX_MAXFRM_SIZE ENETC_MAC_MAXFRM_SIZE
79-
#define ENETC_RXB_TRUESIZE 2048 /* PAGE_SIZE >> 1 */
79+
#define ENETC_RXB_TRUESIZE (PAGE_SIZE >> 1)
8080
#define ENETC_RXB_PAD NET_SKB_PAD /* add extra space if needed */
8181
#define ENETC_RXB_DMA_SIZE \
8282
(SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - ENETC_RXB_PAD)

0 commit comments

Comments
 (0)