<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#C0C0C0">
    <p>Hi Alexey<br>
      <br>
          I find a error about ltp vlan01 test case, but I not sure
      whether I think is right. and the author of this case is your, if
      possible I hope you <br>
    </p>
    <p>  revise this case.</p>
    <p>  error info "RTNETLINK answers: Numerical result out of range"
      will see when exec vlan01 testcase , and I debug this case. I find<br>
      <br>
        this error info cause by vlanID, because the range of vlanID is 
      "0-4095", so when exec "ip link add link eth1 name ltp_v4095<br>
      <br>
        type vlan id 4095 protocol 802.1Q loose_binding off reorder_hdr
      on"  the error will happen.<br>
      <br>
        whether  can revise the virt_multiple_add_test() function, let
      the vlanid range is fixed  "1-2000".<br>
      <br>
      <br>
      the path of error file: ltp/testcases/network/virt/virt_lib.sh<br>
      <br>
      144 virt_multiple_add_test()<br>
      145 {<br>
      146         local opt="$@"<br>
      147         local max=$(($start_id + $NS_TIMES - 1))<br>
      148<br>
      149         tst_resm TINFO "add $NS_TIMES $virt_type, then delete"<br>
      150<br>
      151         for i in $(seq $start_id $max); do<br>
      152                 virt_add ltp_v$i id $i $opt || \<br>
      153                         tst_brkm TFAIL "failed to create
      'ltp_v0 $opt'"<br>
      154                 ROD_SILENT "ip link set ltp_v$i up"<br>
      155         done<br>
      156<br>
      157         for i in $(seq $start_id $max); do<br>
      158                 ROD_SILENT "ip link set ltp_v$i down"<br>
      159                 ROD_SILENT "ip link delete ltp_v$i"<br>
      160         done<br>
      161<br>
      162         tst_resm TPASS "done"<br>
      163 }<br>
      <br>
      file path: iproute-4.11.0-0.el7/ip/iplink_vlan.c<br>
      <br>
      21 static void print_explain(FILE *f)<br>
       22 {<br>
       23         fprintf(f,<br>
       24                 "Usage: ... vlan id VLANID\n"<br>
       25                 "                [ protocol VLANPROTO ]\n"<br>
       26                 "                [ reorder_hdr { on | off }
      ]\n"<br>
       27                 "                [ gvrp { on | off } ]\n"<br>
       28                 "                [ mvrp { on | off } ]\n"<br>
       29                 "                [ loose_binding { on | off }
      ]\n"<br>
       30                 "                [ ingress-qos-map QOS-MAP
      ]\n"<br>
       31                 "                [ egress-qos-map QOS-MAP ]\n"<br>
       32                 "\n"<br>
       33              "VLANID := 0-4095\n"<br>
       34                 "VLANPROTO: [ 802.1Q / 802.1ad ]\n"<br>
       35                 "QOS-MAP := [ QOS-MAP ] QOS-MAPPING\n"<br>
       36                 "QOS-MAPPING := FROM:TO\n"<br>
       37         );<br>
       38 }</p>
    <p>line 33 ,we can know, the range of VlANID is 0-4095<br>
    </p>
    <p><br>
      the  vlan01 test result is below<br>
      <br>
      <<<test_output>>><br>
      incrementing stop<br>
      vlan01 1 TINFO: Network config (local -- remote):<br>
      vlan01 1 TINFO: eth1 -- eth1<br>
      vlan01 1 TINFO: 192.168.122.44/24 -- 192.168.122.46/24<br>
      vlan01 1 TINFO: fec0:0:0:1::1/64 -- fec0:0:0:1::2/64<br>
      vlan01 1 TINFO: add vlan with ''<br>
      vlan01 1 TINFO: add 2000 vlan, then delete<br>
      vlan01 1 TPASS: done<br>
      vlan01 2 TINFO: add vlan with 'protocol 802.1Q loose_binding off
      reorder_hdr off'<br>
      vlan01 2 TINFO: add 2000 vlan, then delete<br>
      vlan01 2 TPASS: done<br>
      vlan01 3 TINFO: add vlan with 'protocol 802.1Q loose_binding off
      reorder_hdr on'<br>
      vlan01 3 TINFO: add 2000 vlan, then delete<br>
      <b>RTNETLINK answers: Numerical result out of range</b><b><br>
      </b><b>vlan01 3 TFAIL: failed to create 'ltp_v0 protocol 802.1Q
        loose_binding off reorder_hdr on'</b><br>
      vlan01 4 TINFO: cleanup virtual interfaces...<br>
      <<<execution_status>>><br>
      initiation_status="ok"<br>
      duration=85 termination_type=exited termination_id=1 corefile=no<br>
      cutime=1322 cstime=2449<br>
      <<<test_end>>><br>
      INFO: ltp-pan reported some tests FAIL<br>
      LTP Version: 20180118<br>
      <br>
            
      ###############################################################<br>
      <br>
                  Done executing testcases.<br>
                  LTP Version:  20180118<br>
            
      ###############################################################<br>
      <br>
      That is all  ,thanks very much.<br>
    </p>
  </body>
</html>