Bug 783 - Add "interface shutdown" series commands
Review Request #305 — Created July 1, 2024 and submitted — Latest diff uploaded
| Information | |
|---|---|
| luhsuan | |
| AVX2 | |
| rel_avx_2_7_2 | |
| 783 | |
| Reviewers | |
| jasonchou, kdutta, tanya, timlai, weikai | |
Add these
interface shutdownseries commands:
interface shutdown <port number>: shutdown an interface (with dropping its connection) by the port number.no interface shutdown <port number>: bring up an interface (with bringing up its connection) by the port number.
In order to support the link-down-on-close feature on i40e driver with version 1.4.25 (we have difficuity to merely upgrade the driver to at least version 2.0.26 as APV 10.4 encounters some problems on it), we create a patch to i40e driver so that the driver does support such feature.
- (PASSED) The interface should have the following actions after executing
interface shutdown:- The LED does not shine.
- The connection is down (showing messages like
i40e <PCI-E position> <interface name>: NIC Link is Downindmesg).
- (PASSED) The interface should have the following actions after executing
no interface shutdown:- The LED does shine.
- The connection is up (showing message like
i40e <PCI-E position> <interface name>: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Noneindmesg).
