From patchwork Fri Nov 1 16:11:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Fourcot X-Patchwork-Id: 287871 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6CE672C0090 for ; Sat, 2 Nov 2013 03:18:22 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754693Ab3KAQSG (ORCPT ); Fri, 1 Nov 2013 12:18:06 -0400 Received: from fourcot.fr ([217.70.191.14]:60489 "EHLO olfflo.fourcot.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753429Ab3KAQSF (ORCPT ); Fri, 1 Nov 2013 12:18:05 -0400 X-Greylist: delayed 384 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Nov 2013 12:18:05 EDT Received: from reglisse.fourcot.fr (unknown [IPv6:2001:470:51a3:666::1]) (Authenticated sender: reglisse) by olfflo.fourcot.fr (Postfix) with ESMTPSA id 378032DFDF; Fri, 1 Nov 2013 17:11:40 +0100 (CET) Received: by reglisse.fourcot.fr (Postfix, from userid 1000) id 752AC7515E6; Fri, 1 Nov 2013 17:11:38 +0100 (CET) From: Florent Fourcot To: netdev@vger.kernel.org Cc: Florent Fourcot Subject: [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing Date: Fri, 1 Nov 2013 17:11:26 +0100 Message-Id: <1383322286-21464-1-git-send-email-florent.fourcot@enst-bretagne.fr> X-Mailer: git-send-email 1.8.4.rc3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In case of label sharing, it should be possible to use one label to more than one destination. This old restriction is not mandatory, so we can remove it. Signed-off-by: Florent Fourcot --- net/ipv6/ip6_flowlabel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.8.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index 46e8843..f8102d0 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c @@ -604,8 +604,7 @@ recheck: goto release; err = -EINVAL; - if (!ipv6_addr_equal(&fl1->dst, &fl->dst) || - ipv6_opt_cmp(fl1->opt, fl->opt)) + if (ipv6_opt_cmp(fl1->opt, fl->opt)) goto release; err = -ENOMEM;