All of lore.kernel.org
 help / color / mirror / Atom feed
* EoGRE sends undersized frames without padding
@ 2019-05-30  8:35 Steinar H. Gunderson
  2019-05-30 22:38 ` Steinar H. Gunderson
  2019-06-05  4:31 ` Cong Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Steinar H. Gunderson @ 2019-05-30  8:35 UTC (permalink / raw)
  To: Alexey Kuznetsov; +Cc: netdev

Hi,

I'm trying to connect some VMs over EoGRE (using gretap on my side):

  ip link add foo type gretap remote <remote> local <local>

This works fine for large packets, but the system in the other end
drops smaller packets, such as ARP requests and small ICMP pings.

After looking at the GRE packets in Wireshark, it turns out the Ethernet
packets within the EoGRE packet is undersized (under 60 bytes), and Linux
doesn't pad them. I haven't found anything in RFC 7637 that says anything
about padding, so I would assume it should conform to the usual Ethernet
padding rules, ie., pad to at least ETH_ZLEN. However, nothing in Linux' IP
stack seems to actually do this, which means that when the packet is
decapsulated in the other end and put on the (potentially virtual) wire,
it gets dropped. The other system properly pads its small frames when sending
them.

Is there a way to get around this, short of looping the packets out through a
physical wire to get the padding? Is it simply a bug? I've been testing with
4.19.28, but it doesn't look like git master has any changes in this area.

/* Steinar */
-- 
Homepage: https://www.sesse.net/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-07 23:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30  8:35 EoGRE sends undersized frames without padding Steinar H. Gunderson
2019-05-30 22:38 ` Steinar H. Gunderson
2019-06-04 16:15   ` Steinar H. Gunderson
2019-06-05  4:31 ` Cong Wang
2019-06-05  7:27   ` Steinar H. Gunderson
2019-06-06  1:17     ` Cong Wang
2019-06-06  7:36       ` Steinar H. Gunderson
2019-06-07 19:57         ` Cong Wang
2019-06-07 20:31           ` Steinar H. Gunderson
2019-06-07 23:25           ` Gregory Rose

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.