From: "resa, Renata Saiakhova" <[email protected]>

This series introduces support for configuring link speed, duplex mode,
and autonegotiation for DPDK-backed interfaces in Open vSwitch.

Motivation
---------
Operators using DPDK ports may need to pin a specific speed/duplex or
toggle autoneg for interoperability and performance tuning. Today this
is not configurable via OVSDB/OVS.

What’s included (1 patch)
-------------------------
  1/1 netdev-dpdk, vswitchd: Add OVSDB schema + netdev-dpdk plumbing to
      set speed, duplex, and autoneg on DPDK interfaces. The values can
      be configured in the Interface table and are applied to the
      underlying DPDK device during interface setup and reconfiguration
      (netdev_dpdk_reconfigure and dpdk_eth_dev_init).

User-visible behavior
---------------------
- New Interface options (DPDK ports only):
  * options:speed          : Integer Mbps (e.g., 10000)
  * options:duplex         : "full" | "half"
  * options:autoneg        : "true" | "false"

Implementation notes
--------------------
- netdev-dpdk.c parses the new options and calls the corresponding DPDK
  APIs during port initialization and reconfigure paths.
- If a NIC/PMD does not support a requested setting, the operation
  fails with an error logged to help troubleshooting.
- Defaults: if options are unset, behavior remains unchanged.

Testing
-------
- Tested with DPDK 23.11

Compatibility / Upgrade
-----------------------
- This patch updates vswitchd/vswitch.xml (OVSDB schema). Normal
  service startup will upgrade the database schema automatically.
- No behavior change for non-DPDK interfaces.

resa, Renata Saiakhova (1):
  netdev-dpdk, vswitchd: Support configuring Speed/Duplex/Autoneg on
    DPDK interfaces

 lib/netdev-dpdk.c    | 322 ++++++++++++++++++++++++++++++++++++++++++-
 vswitchd/vswitch.xml |  21 +++
 2 files changed, 342 insertions(+), 1 deletion(-)

-- 
2.34.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to