[dts] [PATCH] add vlan filter script to VF daemon suite

Liu, Yong yong.liu at intel.com
Thu Apr 20 08:49:14 CEST 2017


Xueqin,
One question about the way calculate wrong vlan id. Why it is generated 
by correct vlan plus 2 and then mod 4095?
I think ( vlan + 1 ) % 4096 will be more suitable.

Thanks,
Marvin

On 04/11/2017 08:09 AM, Xueqin Lin wrote:
> +        for rx_vlan in rx_vlans:
> +            self.dut_testpmd.execute_cmd('rx_vlan add %s port 0 vf 1'% rx_vlan)
> +            time.sleep(1)
> +            out = self.send_and_pmdout(wrong_mac, rx_vlan)
> +            self.verify("dst=%s" % wrong_mac in out,
> +                "Failed to enable vlan filter!!!")
> +            self.verify("VLAN tci=%s" % hex(rx_vlan) in out,
> +                "Failed to receive packet with vlan id!!!")
> +
> +            wrong_rx_vlan = (rx_vlan + 2) % 4095




More information about the dts mailing list