net: ethernet: Define and use Ethernet frame and datagram size
Remove magic numbers from Ethernet drivers and tests by defining NET_ETH_MAX_DATAGRAM_SIZE and NET_ETH_MAX_FRAME_SIZE. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
652efa530f
commit
99403c5b13
22 changed files with 49 additions and 42 deletions
|
@ -774,6 +774,7 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
|
|||
NET_DEVICE_INIT(enc28j60_0, DT_MICROCHIP_ENC28J60_0_LABEL,
|
||||
eth_enc28j60_init, ð_enc28j60_0_runtime,
|
||||
ð_enc28j60_0_config, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
ETHERNET_L2, NET_L2_GET_CTX_TYPE(ETHERNET_L2), 1500);
|
||||
ETHERNET_L2, NET_L2_GET_CTX_TYPE(ETHERNET_L2),
|
||||
NET_ETH_MTU);
|
||||
|
||||
#endif /* CONFIG_ETH_ENC28J60_0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue