I have similar setup with 10GE Intel NIC on bare-metal box running Ubuntu 18.10. I don’t see such an issue in the past up to the current VPP being used which is 19.04 (unless something changed with 19.08 or master). The 10GE port is connected to an IXIA tester and when I set interface state down, the IXIA port also goes to the down state. See the following output from VPP CLI which shows the link in carrier down/up state according to the “set interface state ..” CLI:
vpp# set int state TenGigabitEthernet5/0/0 up vpp# sho hard TenGigabitEthernet5/0/0 Name Idx Link Hardware TenGigabitEthernet5/0/0 1 up TenGigabitEthernet5/0/0 Link speed: 10 Gbps Ethernet address 90:e2:ba:6e:e7:dc Intel 82599 carrier up full duplex mtu 9206 promisc flags: admin-up promisc pmd maybe-multiseg subif rx-ip4-cksum rx: queues 8 (max 128), desc 1024 (min 32 max 4096 align 8) tx: queues 9 (max 64), desc 1024 (min 32 max 4096 align 8) pci: device 8086:10fb subsystem 8086:000c address 0000:05:00.00 numa 0 module: id SFP/SFP+/SFP28, compatibility: vendor: CISCO-TYCO, part 2163675-2 revision: A, serial: TED1614U0UF, date code: 12040200 cable length: 10m max rx packet len: 15872 promiscuous: unicast on all-multicast on vlan offload: strip off filter off qinq off rx offload avail: vlan-strip ipv4-cksum udp-cksum tcp-cksum tcp-lro macsec-strip vlan-filter vlan-extend jumbo-frame scatter security keep-crc rx offload active: ipv4-cksum jumbo-frame scatter tx offload avail: vlan-insert ipv4-cksum udp-cksum tcp-cksum sctp-cksum tcp-tso macsec-insert multi-segs security tx offload active: multi-segs rss avail: ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-tcp-ex ipv6-udp-ex ipv6-ex ipv6-tcp-ex ipv6-udp-ex rss active: ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-tcp-ex ipv6-udp-ex ipv6-ex ipv6-tcp-ex ipv6-udp-ex tx burst function: ixgbe_xmit_pkts rx burst function: ixgbe_recv_scattered_pkts_vec rx frames ok 261001142794 rx bytes ok 207756909187881 extended stats: rx good packets 261001143128 rx good bytes 207756909513739 rx q0packets 261001143128 rx q0bytes 207756909513739 mac local errors 12 mac remote errors 5 rx size 65 to 127 packets 5216652784 rx size 128 to 255 packets 23847555584 rx size 256 to 511 packets 47695111168 rx size 512 to 1023 packets 95390221918 rx size 1024 to max packets 88869405466 rx total packets 261018946914 rx total bytes 207771081309219 vpp# set int state TenGigabitEthernet5/0/0 down vpp# sho hard TenGigabitEthernet5/0/0 Name Idx Link Hardware TenGigabitEthernet5/0/0 1 down TenGigabitEthernet5/0/0 Link speed: 10 Gbps Ethernet address 90:e2:ba:6e:e7:dc Intel 82599 carrier down flags: promisc pmd maybe-multiseg subif rx-ip4-cksum rx: queues 8 (max 128), desc 1024 (min 32 max 4096 align 8) tx: queues 9 (max 64), desc 1024 (min 32 max 4096 align 8) pci: device 8086:10fb subsystem 8086:000c address 0000:05:00.00 numa 0 module: id SFP/SFP+/SFP28, compatibility: vendor: CISCO-TYCO, part 2163675-2 revision: A, serial: TED1614U0UF, date code: 12040200 cable length: 10m max rx packet len: 15872 promiscuous: unicast on all-multicast off vlan offload: strip off filter off qinq off rx offload avail: vlan-strip ipv4-cksum udp-cksum tcp-cksum tcp-lro macsec-strip vlan-filter vlan-extend jumbo-frame scatter security keep-crc rx offload active: ipv4-cksum jumbo-frame scatter tx offload avail: vlan-insert ipv4-cksum udp-cksum tcp-cksum sctp-cksum tcp-tso macsec-insert multi-segs security tx offload active: multi-segs rss avail: ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-tcp-ex ipv6-udp-ex ipv6-ex ipv6-tcp-ex ipv6-udp-ex rss active: none tx burst function: ixgbe_xmit_pkts rx burst function: ixgbe_recv_scattered_pkts_vec rx frames ok 261033254872 rx bytes ok 207782470519777 rx missed 4196707 extended stats: rx good packets 261033254872 rx good bytes 207782470519777 rx missed errors 4196707 rx q0packets 261033254872 rx q0bytes 207782470519777 mac local errors 12 mac remote errors 5 rx size 65 to 127 packets 5217378432 rx size 128 to 255 packets 23850872832 rx size 256 to 511 packets 47701745664 rx size 512 to 1023 packets 95403490910 rx size 1024 to max packets 88881767539 rx total packets 261055255372 rx total bytes 207799982891558 rx priority0 dropped 4196707 Regards, John From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of milan...@gmail.com Sent: Saturday, September 14, 2019 1:31 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding "set interface state down" Hello, For a physical interface , say 1 Gig or 10 Gig, it looks like the command "set interface state TenGig0/x down", does not bring down the physical link as well, apart from the interface admin-state, so the remote peer does not actually sense a link down. This is for IXGBE driver, and bare-metal box. (not a VM) Is it fair to be surprised, what is the expected way to handle this. Should it be always be via link-state advertisement protocols. Thanks, Milan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13982): https://lists.fd.io/g/vpp-dev/message/13982 Mute This Topic: https://lists.fd.io/mt/34145205/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-