On 30/10/2023 09:50, [email protected] wrote:
From: Jakob Meng<[email protected]>

For better usability, the function pairs get_config() and
set_config() for netdevs should be symmetric: Options which are
accepted by set_config() should be returned by get_config() and the
latter should output valid options for set_config() only.

This patch moves key-value pairs which are no valid options from
get_config() to the get_status() callback. For example, get_config()
in lib/netdev-dpdk.c returned {configured,requested}_{rx,tx}_queues
previously. For requested rx queues the proper option name is n_rxq,
so requested_rx_queues has been renamed respectively. Tx queues
cannot be changed by the user, hence requested_tx_queues has been
dropped. Both configured_{rx,tx}_queues will be returned as
n_{r,t}xq in the get_status() callback.

The netdev dpdk classes no longer share a common get_config() callback,
instead both the dpdk_class and the dpdk_vhost_client_class define
their own callbacks. The get_config() callback for dpdk_vhost_class has
been dropped because it does not have a set_config() callback.

The documentation in vswitchd/vswitch.xml for status columns as well
as tests have been updated accordingly.

Reported-at:https://bugzilla.redhat.com/1949855
Signed-off-by: Jakob Meng<[email protected]>
---
  Documentation/topics/dpdk/phy.rst |   4 +-
  NEWS                              |   7 ++
  lib/netdev-dpdk.c                 | 113 +++++++++++++++++++++---------
  tests/system-dpdk.at              |  64 ++++++++++-------
  vswitchd/vswitch.xml              |  14 +++-
  5 files changed, 143 insertions(+), 59 deletions(-)

Acked-by: Kevin Traynor <[email protected]>

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

Reply via email to