diff options
| author | Shenwei Wang <shenwei.wang@nxp.com> | 2025-09-10 13:52:09 -0500 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-14 14:20:01 -0700 |
| commit | 5b14ed3ac5133a1f7a5fe760451e645524b6c34e (patch) | |
| tree | 1060cc853204b6d494113d1979baed366de5be70 /rust/helpers/build_bug.c | |
| parent | 62b5bb7be7bc3dcf87a2ab6ceced88164a626397 (diff) | |
net: fec: add rx_frame_size to support configurable RX length
Add a new rx_frame_size member in the fec_enet_private structure to
track the RX buffer size. On the Jumbo frame enabled system, the value
will be recalculated whenever the MTU is updated, allowing the driver
to allocate RX buffer efficiently.
Configure the TRUNC_FL (Frame Truncation Length) based on the smaller
value between max_buf_size and the rx_frame_size to maintain consistent
RX error behavior, regardless of whether Jumbo frames are enabled.
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Link: https://patch.msgid.link/20250910185211.721341-5-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
