summaryrefslogtreecommitdiff
path: root/lib/netdev-bsd.c
diff options
context:
space:
mode:
authorDaniele Di Proietto <diproiettod@vmware.com>2016-02-24 17:25:11 -0800
committerDaniele Di Proietto <diproiettod@vmware.com>2016-05-23 10:27:42 -0700
commit790fb3b745d039ec904000a6c64cfc6e16508d9c (patch)
treecea622e12629872c3122523bf5e388d035ed5007 /lib/netdev-bsd.c
parentdc36593cf43690004004b3ec72b01ae26dab017f (diff)
downloadopenvswitch-790fb3b745d039ec904000a6c64cfc6e16508d9c.tar.gz
netdev: Add reconfigure request mechanism.
A netdev provider, especially a PMD provider (like netdev DPDK) might not be able to change some of its parameters (such as MTU, or number of queues) without stopping everything and restarting. This commit introduces a mechanism that allows a netdev provider to request a restart (netdev_request_reconfigure()). The upper layer can be notified via netdev_wait_reconf_required() and netdev_is_reconf_required(). After closing all the rxqs the upper layer can finally call netdev_reconfigure(), to make sure that the new configuration is in place. This will be used by next commit to reconfigure rx and tx queues in netdev-dpdk. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Tested-by: Ilya Maximets <i.maximets@samsung.com> Acked-by: Ilya Maximets <i.maximets@samsung.com> Acked-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Diffstat (limited to 'lib/netdev-bsd.c')
-rw-r--r--lib/netdev-bsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c
index 49c05f499..32e8f744b 100644
--- a/lib/netdev-bsd.c
+++ b/lib/netdev-bsd.c
@@ -1536,6 +1536,7 @@ netdev_bsd_update_flags(struct netdev *netdev_, enum netdev_flags off,
netdev_bsd_arp_lookup, /* arp_lookup */ \
\
netdev_bsd_update_flags, \
+ NULL, /* reconfigure */ \
\
netdev_bsd_rxq_alloc, \
netdev_bsd_rxq_construct, \