Justin Pettit | 7 May 00:29 2015

[ovn] match: Fix compile of match initializer on GCC 4.6.1.

GCC 4.6.1 complained about the match structure not being properly
initialzed when using MATCH_CATCHALL_INITIALIZER macro.

Signed-off-by: Justin Pettit <jpettit <at> nicira.com>
---
 lib/match.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/match.h b/lib/match.h
index 638c49d..10aa0af 100644
--- a/lib/match.h
+++ b/lib/match.h
 <at>  <at>  -36,7 +36,7  <at>  <at>  struct match {
 };

 /* Initializer for a "struct match" that matches every packet. */
-#define MATCH_CATCHALL_INITIALIZER { .flow.dl_type = 0 }
+#define MATCH_CATCHALL_INITIALIZER { .flow = { .dl_type = 0 } }

 void match_init(struct match *,
                 const struct flow *, const struct flow_wildcards *);
--

-- 
1.7.5.4

_______________________________________________
dev mailing list
dev <at> openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Joe Stringer | 6 May 23:41 2015

[PATCH] lldp: Fix clang warning.

Clang-3.7 generates warnings such as the following:
../lib/ovs-lldp.c:394:19: error: address of array 'hardware->h_ifname'
will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]

This value is fetched from a netdev, which as far as I can tell must
always have a non-NULL name. Simplify this code.

Signed-off-by: Joe Stringer <joestringer <at> nicira.com>
---
 lib/ovs-lldp.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/lib/ovs-lldp.c b/lib/ovs-lldp.c
index b2fb143..54c70c5 100644
--- a/lib/ovs-lldp.c
+++ b/lib/ovs-lldp.c
 <at>  <at>  -391,9 +391,7  <at>  <at>  update_mapping_on_lldp(struct lldp *lldp, struct lldpd_hardware *hardware,
 {
     struct lldpd_aa_isid_vlan_maps_tlv *lm = xzalloc(sizeof *lm);

-    if (hardware->h_ifname) {
-        VLOG_INFO("\t\t hardware->h_ifname=%s", hardware->h_ifname);
-    }
+    VLOG_INFO("\t\t hardware->h_ifname=%s", hardware->h_ifname);

     lm->isid_vlan_data.isid = m->isid;
     lm->isid_vlan_data.vlan = m->vlan;
 <at>  <at>  -622,10 +620,7  <at>  <at>  aa_mapping_unregister(void *aux)

             /* Remove from all the lldp instances */
(Continue reading)

Daniele Di Proietto | 6 May 20:00 2015

[PATCH 1/3] dpctl: Add OVS_PRINTF_FORMAT annotation to dpctl_* functions.

Signed-off-by: Daniele Di Proietto <diproiettod <at> vmware.com>
---
 lib/dpctl.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/dpctl.c b/lib/dpctl.c
index a9a56ff..0f21a51 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
 <at>  <at>  -60,6 +60,11  <at>  <at>  struct dpctl_command {
     dpctl_command_handler *handler;
 };
 static const struct dpctl_command *get_all_dpctl_commands(void);
+static void dpctl_print(struct dpctl_params *dpctl_p, const char *fmt, ...)
+    OVS_PRINTF_FORMAT(2, 3);
+static void dpctl_error(struct dpctl_params* dpctl_p, int err_no,
+                        const char *fmt, ...)
+    OVS_PRINTF_FORMAT(3, 4);

 static void
 dpctl_puts(struct dpctl_params *dpctl_p, bool error, const char *string)
 <at>  <at>  -402,7 +407,7  <at>  <at>  dpctl_set_if(int argc, const char *argv[], struct dpctl_params *dpctl_p)
         char *err_s = NULL;
         error = netdev_set_config(netdev, &args, &err_s);
         if (err_s || error) {
-            dpctl_error(dpctl_p, error,
+            dpctl_error(dpctl_p, error, "%s",
                         err_s ? err_s : "Error updating configuration");
             free(err_s);
         }
(Continue reading)

Jo | 6 May 14:36 2015

Natural aphrodisiacs have helped hundreds of people solve their problems!

Once again you’ll be sporting massive boners in your pants 
You won’t believe how big your boner gets now 
Everything you need is on our site! 

Free pills right now! 

http://zzb.bz/lwaLN

Buy discount medications

_______________________________________________
dev mailing list
dev <at> openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Becky | 5 May 22:56 2015

My libido suffered greatly as I got older but I know how to restore it! Check out the medicine!

Make your sex life new and fun again with ED medicine 
Your ED will disappear and youll be a man again 
Our pharmacy will for sure help you! 

Free tablets only this day! 

http://zzb.bz/MDM4Y

World  biggest FDA web-store

_______________________________________________
dev mailing list
dev <at> openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Joe Stringer | 5 May 23:01 2015

[PATCH] datapath: Add support for 4.0 kernel.

Signed-off-by: Joe Stringer <joestringer <at> nicira.com>
---
 acinclude.m4 |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index e9d0ed9..cd2301e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
 <at>  <at>  -133,18 +133,18  <at>  <at>  AC_DEFUN([OVS_CHECK_LINUX], [
     fi
     AC_MSG_RESULT([$kversion])

-    if test "$version" -ge 3; then
-       if test "$version" = 3 && test "$patchlevel" -le 19; then
-          : # Linux 3.x
+    if test "$version" -ge 4; then
+       if test "$version" != 4 || test "$patchlevel" -ge 1; then
+          AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 4.0.x is not supported
(please refer to the FAQ for advice)])
        else
-         AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.19.x is not supported
(please refer to the FAQ for advice)])
+          : # Linux 4.x
        fi
+    elif test "$version" = 3; then
+       : # Linux 3.x
+    elif test "$version" = 2 && test "$patchlevel" -ge 6 && test "$sublevel" -ge 32; then
+       : # Linux 2.6.x
     else
(Continue reading)

Billy O'Mahony | 5 May 18:37 2015
Picon

[PATCH v2] docs: Clarify creation & bonding of DPDK enabled interfaces.

Unlike system interfaces, DPDK enabled interfaces must have their interface
type explicitly set when used to create ports.  Mention this in relevant parts
of the documentation and add references to INTALL.DPDK.md, where there are many
examples.

Signed-off-by: Billy O'Mahony <billy.o.mahony <at> intel.com>
---
 FAQ.md                   |   23 +++++++++++++++++++++++
 INSTALL.DPDK.md          |    8 ++++++++
 utilities/ovs-vsctl.8.in |    4 +++-
 3 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/FAQ.md b/FAQ.md
index 21d4e7a..5b93d8b 100644
--- a/FAQ.md
+++ b/FAQ.md
 <at>  <at>  -350,6 +350,25  <at>  <at>  A: Yes.  How you configure it depends on what you mean by "promiscuous
     SPAN, see "How do I configure a port as a SPAN port, that is,
     enable mirroring of all traffic to that port?"

+### Q: How do I configure a DPDK port as an access port?
+
+A: Firstly, you must have a DPDK-enabled version of Open vSwitch.
+
+   If your version is DPDK-enabled it will support the --dpdk
+   argument on the command line and will display lines with
+   "EAL:..." during startup when --dpdk is supplied.
+
+   Secondly, when adding a DPDK port, unlike a system port, the
+   type for the interface must be specified. For example;
(Continue reading)

Ciara Loftus | 5 May 17:58 2015
Picon

[PATCH] netdev-dpdk: add dpdk vhost-user ports

This patch adds support for a new port type to the userspace
datapath called dpdkvhostuser. It adds to the existing
infrastructure of vhost-cuse, however disables vhost-cuse ports
as the default port type, in favour of vhost-user ports.
vhost-cuse 'dpdkvhost' ports are still available and can be
enabled using a configure flag, steps for which are available
in INSTALL.DPDK.md.

A new dpdkvhostuser port will create a unix domain socket which
when provided to QEMU is used to facilitate communication between
the virtio-net device on the VM and the OVS port on the host.

Signed-off-by: Ciara Loftus <ciara.loftus <at> intel.com>
---
 INSTALL.DPDK.md         | 176 ++++++++++++++++++++++++++++++++++++++----------
 acinclude.m4            |  13 ++++
 configure.ac            |   1 +
 lib/netdev-dpdk.c       | 114 +++++++++++++++++++++++++------
 lib/netdev.c            |   4 ++
 vswitchd/ovs-vswitchd.c |   9 ++-
 6 files changed, 259 insertions(+), 58 deletions(-)

diff --git a/INSTALL.DPDK.md b/INSTALL.DPDK.md
index 899763f..a39645f 100644
--- a/INSTALL.DPDK.md
+++ b/INSTALL.DPDK.md
 <at>  <at>  -16,7 +16,9  <at>  <at>  OVS needs a system with 1GB hugepages support.
 Building and Installing:
 ------------------------

(Continue reading)

Thomas F Herbert | 5 May 17:51 2015
Picon

[PATCH net-next V8 0/2] openvswitch: Add support for 802.1AD

Add support for 802.1AD to the openvswitch kernel module (Version 8.)

Please replace version 7 submitted on April 25, with this patch.
Version 8 has changes based on the review by Pravin Shelar of V7 and a fix
to flow.c to initialize the ctci in the flow key.

There was one recommended change from the review that was not made in this 
patch about a double check for vlan headers. The rationale for not making
that change will be explained separately.

Although the Open Flow specification specified support for 802.1AD (qinq)
as well as push and pop vlan headers, so far Open vSwitch has only
supported a single tag header. This patch addresses adds 802.1ad to the
Linux kernel openvswitch data path.

This patch is version 8 of the patch andccompanies user space version 7 of
the patch previously submitted separately to openvswitch dev list.

For discussion, history  and previous versions, of the kernel patch,
see the OVS dev mailing list, openvswitch.org/pipermail/dev/..
Thomas F Herbert (2):
  Add flow key field for ctag
  Flow handling, actions and vlan parsing for 8021AD

 include/uapi/linux/openvswitch.h | 17 ++++----
 net/openvswitch/actions.c        |  6 ++-
 net/openvswitch/flow.c           | 83 ++++++++++++++++++++++++++++++-----
 net/openvswitch/flow.h           |  1 +
 net/openvswitch/flow_netlink.c   | 94 +++++++++++++++++++++++++++++++++++++---
 5 files changed, 174 insertions(+), 27 deletions(-)
(Continue reading)

Russell Bryant | 5 May 15:59 2015
Picon

[PATCH ovn] controller: Set chassis for container port.

ovn-controller updates the chassis column of the Bindings table in
OVN_Southbound when a logical port appears on the local switch.  A
logical port that has a parent will never appear on a switch managed
by ovn-controller.  When a parent port appears, all child container
ports should be updated as being on that chassis, as well.

Signed-off-by: Russell Bryant <rbryant <at> redhat.com>
---
 ovn/controller/bindings.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/ovn/controller/bindings.c b/ovn/controller/bindings.c
index ef233c0..65054c9 100644
--- a/ovn/controller/bindings.c
+++ b/ovn/controller/bindings.c
 <at>  <at>  -76,11 +76,12  <at>  <at>  bindings_run(struct controller_ctx *ctx)
 {
     const struct sbrec_bindings *bindings_rec;
     struct ovsdb_idl_txn *txn;
-    struct sset lports;
+    struct sset lports, found_lports;
     const char *name;
     int retval;

     sset_init(&lports);
+    sset_init(&found_lports);
     get_local_iface_ids(ctx, &lports);

     txn = ovsdb_idl_txn_create(ctx->ovnsb_idl);
 <at>  <at>  -90,6 +91,7  <at>  <at>  bindings_run(struct controller_ctx *ctx)
(Continue reading)

陈燕明 | 5 May 04:40 2015

How to set the ovs bridge MAC address

Hi,
I have a topology as the following:
br0(bridge):
 eth0(MAC0),eth1(MAC1),eth2(MAC2)
I have the three NIC added to br0,Now I want to know the exactly mac address of the br0. I have read some books
and do some experiments. But I can't get the right answer.Please help me to figure it out!
Thank u very much !
sincerely!
_______________________________________________
dev mailing list
dev <at> openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Gmane