Commit d37136ea authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs: pad frames sent with VLAN tag

The switch is padding short frames sent from the CPU in the nic core.
When the frame is then being sent to an "access" port, the tag is
removed, and thus the frame gets shorter.  The net effect is that
sync/f-up/delay-rep were sent short, and discarded by the recipient.

Greg could move padding to the endpoint, but this extra work is not
really needed, as nobody else is expected to get frames from the CPU
over the SFP ports. So we chose to fix transmission in software and
avoid to change the gateware.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 7f97e9cd
......@@ -493,6 +493,8 @@ int wrs_net_send(struct pp_instance *ppi, void *pkt, int len,
if (t)
ppi->t_ops->get(ppi, t);
if (len < 64)
len = 64;
ret = send(ch->fd, vhdr, len, 0);
poll_tx_timestamp(ppi, pkt, len, s, ch->fd, t);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment