diff --git a/internal/vppinit/vppinit.go b/internal/vppinit/vppinit.go index bca8c33..1694ffd 100644 --- a/internal/vppinit/vppinit.go +++ b/internal/vppinit/vppinit.go @@ -252,11 +252,11 @@ func addIPNeighbor(ctx context.Context, vppConn api.Connection, swIfIndex interf func setMtu(ctx context.Context, vppConn api.Connection, link netlink.Link, swIfIndex interface_types.InterfaceIndex) error { now := time.Now() - setMtu := &interfaces.HwInterfaceSetMtu{ + setMtu := &interfaces.SwInterfaceSetMtu{ SwIfIndex: swIfIndex, - Mtu: uint16(link.Attrs().MTU), + Mtu: []uint32{uint32(link.Attrs().MTU)}, } - _, err := interfaces.NewServiceClient(vppConn).HwInterfaceSetMtu(ctx, setMtu) + _, err := interfaces.NewServiceClient(vppConn).SwInterfaceSetMtu(ctx, setMtu) if err != nil { return err } @@ -264,7 +264,7 @@ func setMtu(ctx context.Context, vppConn api.Connection, link netlink.Link, swIf WithField("swIfIndex", setMtu.SwIfIndex). WithField("MTU", setMtu.Mtu). WithField("duration", time.Since(now)). - WithField("vppapi", "HwInterfaceSetMtu").Debug("completed") + WithField("vppapi", "SwInterfaceSetMtu").Debug("completed") return nil }