Tested-by: Waterman Cao <waterman.cao at intel.com> This patch is used to fix bug, and has been tested by Intel. We verified API by testpmd, it passed. Please see test steps as the following: 1. In the host machine, set the DPDK environment as usual and start testpmd: ./app/test-pmd/testpmd -c f -n 4 -- -i 2. Start packet forwarding on both ports. 3. In the tester/traffic generator, send the packet with destine MAC to any port on host. 4. Then launch testpmd on host, use the following command to set link up/down to the port: testpmd> set link-up port 0(or 1) testpmd> set link-down port 0(or 1) 5. Then check port status
See test environment information as the following: Fedora 20 x86_64, Linux Kernel 3.13.9-200, GCC 4.8.2 Intel Xeon CPU E5-2680 v2 @ 2.80GHz NIC: Intel Niantic 82599, Intel i350, Intel 82580 and Intel 82576