* [PATCH net] openvswitch: Remove incorrect WARN_ONCE().
@ 2016-08-02 2:36 Jarno Rajahalme
2016-08-02 21:12 ` Joe Stringer
2016-08-03 18:51 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jarno Rajahalme @ 2016-08-02 2:36 UTC (permalink / raw)
To: netdev; +Cc: jarno
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: 289f2253 ("openvswitch: Find existing conntrack entry after upcall.")
Suggested-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
---
net/openvswitch/conntrack.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c
index c644c78..e054a74 100644
--- a/net/openvswitch/conntrack.c
+++ b/net/openvswitch/conntrack.c
@@ -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;
@@ -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;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] openvswitch: Remove incorrect WARN_ONCE().
2016-08-02 2:36 [PATCH net] openvswitch: Remove incorrect WARN_ONCE() Jarno Rajahalme
@ 2016-08-02 21:12 ` Joe Stringer
2016-08-03 18:51 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Joe Stringer @ 2016-08-02 21:12 UTC (permalink / raw)
To: Jarno Rajahalme; +Cc: netdev
On 1 August 2016 at 19:36, Jarno Rajahalme <jarno@ovn.org> wrote:
> 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: 289f2253 ("openvswitch: Find existing conntrack entry after upcall.")
> Suggested-by: Joe Stringer <joe@ovn.org>
> Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Thanks for the patch, this will remove a false positive kernel log
from a common case in OVS with stateful processing.
Acked-by: Joe Stringer <joe@ovn.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] openvswitch: Remove incorrect WARN_ONCE().
2016-08-02 2:36 [PATCH net] openvswitch: Remove incorrect WARN_ONCE() Jarno Rajahalme
2016-08-02 21:12 ` Joe Stringer
@ 2016-08-03 18:51 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-08-03 18:51 UTC (permalink / raw)
To: jarno; +Cc: netdev
From: Jarno Rajahalme <jarno@ovn.org>
Date: Mon, 1 Aug 2016 19:36:07 -0700
> 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: 289f2253 ("openvswitch: Find existing conntrack entry after upcall.")
> Suggested-by: Joe Stringer <joe@ovn.org>
> Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-03 18:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 2:36 [PATCH net] openvswitch: Remove incorrect WARN_ONCE() Jarno Rajahalme
2016-08-02 21:12 ` Joe Stringer
2016-08-03 18:51 ` David Miller
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).