diff options
author | Tom Rini <trini@konsulko.com> | 2021-02-16 15:14:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-16 15:14:34 -0500 |
commit | 496f49464d90b564da5f1a2f4eecb5553e01edf9 (patch) | |
tree | e084452c2b7e9f2d0ede789aa840e9e3ae2338ed /include/net.h | |
parent | 767582cd4c755c52bce3e1813bc462f37047cb5c (diff) | |
parent | d003434525767145d152b54573ef8e030b63a6fe (diff) |
Merge branch '2021-02-16-assorted-improvements'
- DSA switch support (Layerscape platforms)
- IOMUX cleanup / fixes
- i2c OP-TEE trampoline driver
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 13da69b7c14..b95d6a6f60e 100644 --- a/include/net.h +++ b/include/net.h @@ -499,7 +499,13 @@ struct icmp_hdr { * maximum packet size and multiple of 32 bytes = 1536 */ #define PKTSIZE 1522 +#ifndef CONFIG_DM_DSA #define PKTSIZE_ALIGN 1536 +#else +/* Maximum DSA tagging overhead (headroom and/or tailroom) */ +#define DSA_MAX_OVR 256 +#define PKTSIZE_ALIGN (1536 + DSA_MAX_OVR) +#endif /* * Maximum receive ring size; that is, the number of packets |