mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-afxdp: Sync and clean {get, set}_config() callbacks.
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 also moves key-value pairs which are not valid options from get_config() to the get_status() callback. The documentation in vswitchd/vswitch.xml for status columns has been updated accordingly. Reported-at: https://bugzilla.redhat.com/1949855 Signed-off-by: Jakob Meng <code@jakobmeng.de> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
This commit is contained in:
committed by
Kevin Traynor
parent
169c6b2d4a
commit
d614f2863f
@@ -3493,7 +3493,7 @@ netdev_linux_get_next_hop(const struct in_addr *host, struct in_addr *next_hop,
|
||||
return ENXIO;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
netdev_linux_get_status(const struct netdev *netdev_, struct smap *smap)
|
||||
{
|
||||
struct netdev_linux *netdev = netdev_linux_cast(netdev_);
|
||||
@@ -3759,7 +3759,7 @@ const struct netdev_class netdev_internal_class = {
|
||||
.destruct = netdev_afxdp_destruct, \
|
||||
.get_stats = netdev_afxdp_get_stats, \
|
||||
.get_custom_stats = netdev_afxdp_get_custom_stats, \
|
||||
.get_status = netdev_linux_get_status, \
|
||||
.get_status = netdev_afxdp_get_status, \
|
||||
.set_config = netdev_afxdp_set_config, \
|
||||
.get_config = netdev_afxdp_get_config, \
|
||||
.reconfigure = netdev_afxdp_reconfigure, \
|
||||
|
Reference in New Issue
Block a user