Re: [PATCH net-next v2 10/10] net: ethernet: adi: Add a driver for the ADIN1140 MACPHY
From: Andrew Lunn
Date: Wed May 27 2026 - 23:11:03 EST
> +static netdev_tx_t adin1140_start_xmit(struct sk_buff *skb,
> + struct net_device *netdev)
> +{
> + struct adin1140_priv *priv = netdev_priv(netdev);
> +
> + /* Pad frames to minimum Ethernet frame size (60 bytes without FCS).
> + * The MAC will append the FCS, but we need to ensure the frame is
> + * at least ETH_ZLEN bytes.
> + */
> + if (skb_put_padto(skb, ETH_ZLEN))
> + return NETDEV_TX_OK;
Does the standard say anything about this? It seems like something
which could be moved into the core.
Andrew