From 5e9c3a0b934f0dd7513e21372b3fd8593b87525b Mon Sep 17 00:00:00 2001 From: Bhasker Hariharan Date: Thu, 9 Sep 2021 11:01:29 -0700 Subject: Add EthernetHeader only if underlying NIC has a mac address. Fixes #6532 PiperOrigin-RevId: 395741741 --- runsc/boot/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runsc/boot/network.go') diff --git a/runsc/boot/network.go b/runsc/boot/network.go index 5c6879198..534242551 100644 --- a/runsc/boot/network.go +++ b/runsc/boot/network.go @@ -210,7 +210,7 @@ func (n *Network) CreateLinksAndRoutes(args *CreateLinksAndRoutesArgs, _ *struct linkEP, err := fdbased.New(&fdbased.Options{ FDs: FDs, MTU: uint32(link.MTU), - EthernetHeader: true, + EthernetHeader: mac != "", Address: mac, PacketDispatchMode: fdbased.RecvMMsg, GSOMaxSize: link.GSOMaxSize, -- cgit v1.2.3