X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Fvpp%2Fdevice%2Finterfaces%2Feth2p-ethipv4-l2bdbasemaclrn-eth-2tap-dev.robot;h=5a1b6a68b8fb59ab62cbee8ea6730644afb78f72;hb=14a71b74b414df7616ccb5ada3d50ecb90d96bae;hp=dd6b15b8459cac5628432a48de7fb80867efe1fb;hpb=a4cad14b7e0b7e94f9e80b1a45cd86b3bc09d0a0;p=csit.git diff --git a/tests/vpp/device/interfaces/eth2p-ethipv4-l2bdbasemaclrn-eth-2tap-dev.robot b/tests/vpp/device/interfaces/eth2p-ethipv4-l2bdbasemaclrn-eth-2tap-dev.robot index dd6b15b845..5a1b6a68b8 100644 --- a/tests/vpp/device/interfaces/eth2p-ethipv4-l2bdbasemaclrn-eth-2tap-dev.robot +++ b/tests/vpp/device/interfaces/eth2p-ethipv4-l2bdbasemaclrn-eth-2tap-dev.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2020 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -13,18 +13,20 @@ *** Settings *** | Resource | resources/libraries/robot/shared/default.robot -| ... +| | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY | ... | NIC_Virtual | ETH | L2BD | BASE | 2TAP | DRV_VFIO_PCI -| ... -| Suite Setup | Setup suite single link | scapy +| ... | RXQ_SIZE_0 | TXQ_SIZE_0 +| ... | ethipv4-l2bdbasemaclrn-eth-2tap +| +| Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test | namespace | Test Teardown | Tear down test | packet_trace | namespace | linux_bridge -| ... +| | Test Template | Local Template -| ... +| | Documentation | *Tap Interface Traffic Tests* -| ... +| | ... | *[Top] Network Topologies:* TG=DUT1 2-node topology with two links | ... | between nodes. | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of @@ -43,6 +45,10 @@ | ${crypto_type}= | ${None} | ${nic_name}= | virtual | ${nic_driver}= | vfio-pci +| ${nic_rxq_size}= | 0 +| ${nic_txq_size}= | 0 +| ${nic_pfs}= | 2 +| ${nic_vfs}= | 0 | ${overhead}= | ${0} | ${bid_TAP}= | tapBr @@ -51,16 +57,16 @@ | | [Documentation] | | ... | [Ver] Packet sent from TG is passed through all L2BD and received\ | | ... | back on TG. Then src_ip, dst_ip and MAC are checked. -| | ... +| | | | ... | *Arguments:* | | ... | - frame_size - Framesize in Bytes in integer. Type: integer | | ... | - phy_cores - Number of physical cores. Type: integer | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer -| | ... +| | | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None} -| | ... +| | | | Set Test Variable | \${frame_size} -| | ... +| | | | Given Set Max Rate And Jumbo | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} @@ -71,15 +77,15 @@ | | ${int2}= | And Add Tap Interface | ${dut1} | tap1 | | And Set Interface State | ${dut1} | ${int1} | up | | And Set Interface State | ${dut1} | ${int2} | up -| | And Create bridge domain | ${dut1} | 19 | learn=${TRUE} -| | And Create bridge domain | ${dut1} | 20 | learn=${TRUE} +| | And Create L2 BD | ${dut1} | 19 | learn=${TRUE} +| | And Create L2 BD | ${dut1} | 20 | learn=${TRUE} | | And Linux Add Bridge | ${dut1} | ${bid_TAP} | tap0 | tap1 | | And Add interface to bridge domain | ${dut1} | ${int1} | 20 | 0 -| | And Add interface to bridge domain | ${dut1} | ${dut1_if1} | 20 | 0 +| | And Add interface to bridge domain | ${dut1} | ${DUT1_${int}1}[0] | 20 | 0 | | And Add interface to bridge domain | ${dut1} | ${int2} | 19 | 0 -| | And Add interface to bridge domain | ${dut1} | ${dut1_if2} | 19 | 0 +| | And Add interface to bridge domain | ${dut1} | ${DUT1_${int}2}[0] | 19 | 0 | | Then Send IP packet and verify received packet -| | ... | ${tg} | ${tg_if1} | ${tg_if2} +| | ... | ${tg} | ${TG_pf1}[0] | ${TG_pf2}[0] *** Test Cases *** | tc01-64B-ethipv4-l2bdbasemaclrn-eth-2tap-dev