From patchwork Tue Oct 20 09:46:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kumar X-Patchwork-Id: 36456 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.176.167]) by ozlabs.org (Postfix) with ESMTP id B7E9EB7B91 for ; Tue, 20 Oct 2009 20:46:43 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbZJTJqe (ORCPT ); Tue, 20 Oct 2009 05:46:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751763AbZJTJqe (ORCPT ); Tue, 20 Oct 2009 05:46:34 -0400 Received: from e28smtp03.in.ibm.com ([59.145.155.3]:56846 "EHLO e28smtp03.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbZJTJqd (ORCPT ); Tue, 20 Oct 2009 05:46:33 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp03.in.ibm.com (8.14.3/8.13.1) with ESMTP id n9K9kaHt007456 for ; Tue, 20 Oct 2009 15:16:36 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9K9kaSp2478162 for ; Tue, 20 Oct 2009 15:16:36 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n9K9kZJY014737 for ; Tue, 20 Oct 2009 15:16:36 +0530 Received: from localhost.localdomain ([9.77.70.34]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n9K9kYbk014698; Tue, 20 Oct 2009 15:16:34 +0530 From: Krishna Kumar To: davem@davemloft.net Cc: netdev@vger.kernel.org, herbert@gondor.apana.org.au, Krishna Kumar , dada1@cosmosbay.com Date: Tue, 20 Oct 2009 15:16:32 +0530 Message-Id: <20091020094632.10404.32941.sendpatchset@localhost.localdomain> In-Reply-To: <20091020094607.10404.81794.sendpatchset@localhost.localdomain> References: <20091020094607.10404.81794.sendpatchset@localhost.localdomain> Subject: [PATCH 2/4 v4] net: IPv6 changes Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Krishna Kumar IPv6: Reset sk_tx_queue_mapping when dst_cache is reset. Use existing macro to do the work. Signed-off-by: Krishna Kumar --- net/ipv6/inet6_connection_sock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 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 -ruNp org/net/ipv6/inet6_connection_sock.c new/net/ipv6/inet6_connection_sock.c --- org/net/ipv6/inet6_connection_sock.c 2009-10-16 21:29:19.000000000 +0530 +++ new/net/ipv6/inet6_connection_sock.c 2009-10-16 21:31:00.000000000 +0530 @@ -168,8 +168,7 @@ struct dst_entry *__inet6_csk_dst_check( if (dst) { struct rt6_info *rt = (struct rt6_info *)dst; if (rt->rt6i_flow_cache_genid != atomic_read(&flow_cache_genid)) { - sk->sk_dst_cache = NULL; - dst_release(dst); + __sk_dst_reset(sk); dst = NULL; } }