cadence_gem: Fix Rx buffer size field mask
PATCH 1/1 cadence_gem: Fix Rx buffer size field mask
This patch corrects the Rx buffer size field mask to mask bits 23 to 16
Signed-off-by Sai Pavan Boddu <[email protected]>
Reviewed-by Alistair Francis <[email protected]>
--- hw/net/cadence_gem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/net/cadence_gem.c +1 -1
@@ -155,7 +155,7 @@#define GEM_NWCFG_BCAST_REJ 0x00000020/* Reject broadcast packets */ #define GEM_NWCFG_PROMISC 0x00000010/* Accept all packets */ -#define GEM_DMACFG_RBUFSZ_M 0x007F0000/* DMA RX Buffer Size mask */ +#define GEM_DMACFG_RBUFSZ_M 0x00FF0000/* DMA RX Buffer Size mask */ #define GEM_DMACFG_RBUFSZ_S 16/* DMA RX Buffer Size shift */ #define GEM_DMACFG_RBUFSZ_MUL 64/* DMA RX Buffer Size multiplier */ #define GEM_DMACFG_TXCSUM_OFFL 0x00000800/* Transmit checksum offload */
Signature · 1 line
1.7.4
Quoted 4 lines · Sai Pavan Boddu
This patch corrects the Rx buffer size field mask to mask bits 23 to 16
Signed-off-by Sai Pavan Boddu <[email protected]>Reviewed-by Alistair Francis <[email protected]>
Matches Xilinx UG585 documentation.
Reviewed-by Peter Crosthwaite <[email protected]>
Can this go via the trivial queue?
Regards,
Peter
Quoted 21 lines
--- hw/net/cadence_gem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)hw/net/cadence_gem.c +1
-2@@ -155,7 +155,7 @@#define GEM_NWCFG_BCAST_REJ 0x00000020/* Reject broadcast packets */ #define GEM_NWCFG_PROMISC 0x00000010/* Accept all packets */ -#define GEM_DMACFG_RBUFSZ_M 0x007F0000/* DMA RX Buffer Size mask */ +#define GEM_DMACFG_RBUFSZ_M 0x00FF0000/* DMA RX Buffer Size mask */ #define GEM_DMACFG_RBUFSZ_S 16/* DMA RX Buffer Size shift */ #define GEM_DMACFG_RBUFSZ_MUL 64/* DMA RX Buffer Size multiplier */ #define GEM_DMACFG_TXCSUM_OFFL 0x00000800/* Transmit checksum offload */ --1.7.4
Michael Tokarev
AppliedQuoted 4 lines · Peter Crosthwaite
Quoted 2 lines · Sai Pavan Boddu
This patch corrects the Rx buffer size field mask to mask bits 23 to 16
Quoted 8 lines
Quoted 2 lines
Signed-off-by Sai Pavan Boddu <[email protected]>Reviewed-by Alistair Francis <[email protected]>Matches Xilinx UG585 documentation.
Reviewed-by Peter Crosthwaite <[email protected]>Can this go via the trivial queue?
Applied to -trivial, with tiny comment change (combining the two comments, by Sai Pavan Boddy and Peter Crosthwaite, together).
Thanks,
/mjt