+ globinfo = ASTFGlobalInfo()
+ # Ensure correct data frame size.
+ globinfo.tcp.mss = trex_mss
+ # Ensure the whole transaction is a single burst (per direction).
+ globinfo.tcp.initwnd = self.n_data_frames
+ # Ensure buffers are large enough so starting window works.
+ globinfo.tcp.txbufsize = data_size
+ globinfo.tcp.rxbufsize = data_size
+ kwargs = dict(
+ default_c_glob_info=globinfo,
+ default_s_glob_info=globinfo,
+ )
+
+ return ip_gen, template, kwargs