summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorShenwei Wang <shenwei.wang@nxp.com>2025-09-10 13:52:06 -0500
committerJakub Kicinski <kuba@kernel.org>2025-09-14 14:20:01 -0700
commitec2a1681ed4f0aa74e15e4430e26afff514e4e19 (patch)
tree5485e9b9cf6609ca6fd44707963c44fedb73bf90 /rust/helpers/build_bug.c
parentd586676a2714176bed06cf70467c4e08ac2d4681 (diff)
net: fec: use a member variable for maximum buffer size
Refactor code to support Jumbo frame functionality by adding a member variable in the fec_enet_private structure to store PKT_MAXBUF_SIZE. Remove the OPT_FRAME_SIZE and define a new macro OPT_ARCH_HAS_MAX_FL to indicate architectures that support configurable maximum frame length. And update the MAX_FL register value to max_buf_size when OPT_ARCH_HAS_MAX_FL is defined as 1. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Wei Fang <wei.fang@nxp.com> Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> Link: https://patch.msgid.link/20250910185211.721341-2-shenwei.wang@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions