<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I am trying to test the link-up and link-down features of Mellanox using this link
<a href="https://dpdk-test-plans.readthedocs.io/en/latest/shutdown_api_test_plan.html" id="LPNoLPOWALinkPreview_1">
https://dpdk-test-plans.readthedocs.io/en/latest/shutdown_api_test_plan.html</a>. But found that even after setting the link-down, NIC is forwarding the traffic. Please check my test setup:</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<b>Server 1:</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
$ sudo ./build/app/dpdk-testpmd -l 0,2 -n 4 --file-prefix=ha -a 0000:04:00.1 -- -i --rxq=1 --txq=1<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
testpmd> set fwd mac<br>
testpmd> start<br>
testpmd> set link-down port 0<br>
Port 0: link state change event<br>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<b>Server 2:</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
>>> sendp(Ether()/IP()/TCP()/Raw('x'*300),iface='enp4s0f1')<br>
$ sudo tcpdump -i enp4s0f1 -vve<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
22:59:52.469337 00:00:00:00:00:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 354: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto TCP (6), length 340)
<div> localhost.ftp-data > localhost.http: Flags [S], cksum 0xf9b9 (correct), seq 0:300, win 8192, length 300: HTTP</div>
<div><br>
</div>
<div>22:59:52.469379 b8:ce:f6:ed:9f:af (oui Unknown) > 02:00:00:00:00:00 (oui Unknown), ethertype IPv4 (0x0800), length 354: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto TCP (6), length 340)</div>
<div> localhost.ftp-data > localhost.http: Flags [S], cksum 0xf9b9 (correct), seq 0:300, win 8192, length 300: HTTP</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
Please correct me if I am doing anything wrong.</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Haider</div>
</div>
</div>
</div>
</body>
</html>