Skip to content

Commit

Permalink
openvswitch: Remove incorrect WARN_ONCE().
Browse files Browse the repository at this point in the history
ovs_ct_find_existing() issues a warning if an existing conntrack entry
classified as IP_CT_NEW is found, with the premise that this should
not happen.  However, a newly confirmed, non-expected conntrack entry
remains IP_CT_NEW as long as no reply direction traffic is seen.  This
has resulted into somewhat confusing kernel log messages.  This patch
removes this check and warning.

Fixes: 289f225 ("openvswitch: Find existing conntrack entry after upcall.")
Suggested-by: Joe Stringer <[email protected]>
Signed-off-by: Jarno Rajahalme <[email protected]>
Acked-by: Joe Stringer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jarno Rajahalme authored and davem330 committed Aug 3, 2016
1 parent bf0f500 commit bce91f8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions net/openvswitch/conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ ovs_ct_find_existing(struct net *net, const struct nf_conntrack_zone *zone,
struct nf_conntrack_l4proto *l4proto;
struct nf_conntrack_tuple tuple;
struct nf_conntrack_tuple_hash *h;
enum ip_conntrack_info ctinfo;
struct nf_conn *ct;
unsigned int dataoff;
u8 protonum;
Expand All @@ -458,13 +457,8 @@ ovs_ct_find_existing(struct net *net, const struct nf_conntrack_zone *zone,

ct = nf_ct_tuplehash_to_ctrack(h);

ctinfo = ovs_ct_get_info(h);
if (ctinfo == IP_CT_NEW) {
/* This should not happen. */
WARN_ONCE(1, "ovs_ct_find_existing: new packet for %p\n", ct);
}
skb->nfct = &ct->ct_general;
skb->nfctinfo = ctinfo;
skb->nfctinfo = ovs_ct_get_info(h);
return ct;
}

Expand Down

0 comments on commit bce91f8

Please sign in to comment.