qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: sfeldma@gmail.com
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, jiri@resnulli.us, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH 1/5] rocker: fix misplaced break statement
Date: Wed,  1 Jul 2015 03:33:08 -0700	[thread overview]
Message-ID: <1435746792-41278-2-git-send-email-sfeldma@gmail.com> (raw)
In-Reply-To: <1435746792-41278-1-git-send-email-sfeldma@gmail.com>

From: Scott Feldman <sfeldma@gmail.com>

Premature break in switch case block.  This particular case (group L2 rewrite)
will be used for L2 LAG and L3 ECMP support, neither of which are enabled in
the guest driver at this time, but are under development.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/net/rocker/rocker_of_dpa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/rocker/rocker_of_dpa.c b/hw/net/rocker/rocker_of_dpa.c
index b25a17d..02b3896 100644
--- a/hw/net/rocker/rocker_of_dpa.c
+++ b/hw/net/rocker/rocker_of_dpa.c
@@ -2525,7 +2525,6 @@ static void of_dpa_group_fill(void *key, void *value, void *user_data)
             ngroup->has_set_vlan_id = true;
             ngroup->set_vlan_id = ntohs(group->l2_rewrite.vlan_id);
         }
-        break;
         if (memcmp(group->l2_rewrite.src_mac.a, zero_mac.a, ETH_ALEN)) {
             ngroup->has_set_eth_src = true;
             ngroup->set_eth_src =
@@ -2536,6 +2535,7 @@ static void of_dpa_group_fill(void *key, void *value, void *user_data)
             ngroup->set_eth_dst =
                 qemu_mac_strdup_printf(group->l2_rewrite.dst_mac.a);
         }
+        break;
     case ROCKER_OF_DPA_GROUP_TYPE_L2_FLOOD:
     case ROCKER_OF_DPA_GROUP_TYPE_L2_MCAST:
         ngroup->has_vlan_id = true;
-- 
1.7.10.4

  reply	other threads:[~2015-07-01 10:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-01 10:33 [Qemu-devel] [PATCH 0/5] rocker device updates sfeldma
2015-07-01 10:33 ` sfeldma [this message]
2015-07-01 10:33 ` [Qemu-devel] [PATCH 2/5] rocker: fix missing break statements sfeldma
2015-07-01 10:33 ` [Qemu-devel] [PATCH 3/5] rocker: return -1 when dropping packet on ingress sfeldma
2015-07-01 10:33 ` [Qemu-devel] [PATCH 4/5] rocker: mark copy-to-cpu pkts as forwarding offloaded sfeldma
2015-07-01 10:33 ` [Qemu-devel] [PATCH 5/5] rocker: tests: don't need to specify master/self when setting vlans sfeldma
2015-07-02 14:27 ` [Qemu-devel] [PATCH 0/5] rocker device updates Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435746792-41278-2-git-send-email-sfeldma@gmail.com \
    --to=sfeldma@gmail.com \
    --cc=jiri@resnulli.us \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).