[dts] [PATCH V1] tests/virtio_user_for_container_networking:make mac take effect

Wang, Yinan yinan.wang at intel.com
Thu Sep 19 08:52:55 CEST 2019


Acked-by: Wang, Yinan <yinan.wang at intel.com>

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Zhu, ShuaiX
> Sent: 2019年9月17日 16:45
> To: Zhu, WenhuiX <wenhuix.zhu at intel.com>; dts at dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>; Zhu, ShuaiX
> <shuaix.zhu at intel.com>
> Subject: Re: [dts] [PATCH V1] tests/virtio_user_for_container_networking:make
> mac take effect
> 
> Tested-by: Zhu, ShuaiX <shuaix.zhu at intel.com>
> 
> > -----Original Message-----
> > From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhuwenhui
> > Sent: Tuesday, September 17, 2019 4:36 PM
> > To: dts at dpdk.org
> > Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>
> > Subject: [dts] [PATCH V1]
> > tests/virtio_user_for_container_networking:make
> > mac take effect
> >
> > Specify the mac address to make the receiving packet normal.
> >
> > Signed-off-by: zhuwenhui <wenhuix.zhu at intel.com>
> > ---
> >  tests/TestSuite_virtio_user_for_container_networking.py | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/tests/TestSuite_virtio_user_for_container_networking.py
> > b/tests/TestSuite_virtio_user_for_container_networking.py
> > index 241d5b0..034587e 100644
> > --- a/tests/TestSuite_virtio_user_for_container_networking.py
> > +++ b/tests/TestSuite_virtio_user_for_container_networking.py
> > @@ -117,8 +117,9 @@ class TestVirtioUserForContainer(TestCase):
> >
> >              self.tester.scapy_execute()
> >              self.tester.pktgen.clear_streams()
> > +            vm_config = {'mac':{'dst':{'range': 1, 'step': 1,
> > + 'action': 'inc'},},}
> >              streams =
> > self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100,
> > -                        None, self.tester.pktgen)
> > +                        vm_config, self.tester.pktgen)
> >              _, pps =
> > self.tester.pktgen.measure_throughput(stream_ids=streams)
> >              Mpps = pps / 1000000.0
> >              self.verify(Mpps > 0, '%s can not receive packets of
> > frame size %d' % (self.running_case, frame_size))
> > --
> > 2.17.2



More information about the dts mailing list