From patchwork Sun Oct 18 13:08:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kumar X-Patchwork-Id: 36334 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 4748CB7BAA for ; Mon, 19 Oct 2009 00:08:18 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754580AbZJRNIF (ORCPT ); Sun, 18 Oct 2009 09:08:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754571AbZJRNIF (ORCPT ); Sun, 18 Oct 2009 09:08:05 -0400 Received: from e28smtp02.in.ibm.com ([59.145.155.2]:37349 "EHLO e28smtp02.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbZJRNIE (ORCPT ); Sun, 18 Oct 2009 09:08:04 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp02.in.ibm.com (8.14.3/8.13.1) with ESMTP id n9ID87RU017787 for ; Sun, 18 Oct 2009 18:38:07 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9ID87R22506826 for ; Sun, 18 Oct 2009 18:38:07 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n9ID86f3028770 for ; Mon, 19 Oct 2009 00:08:06 +1100 Received: from localhost.localdomain ([9.77.70.169]) by d28av02.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n9ID85fw028765; Mon, 19 Oct 2009 00:08:05 +1100 From: Krishna Kumar To: davem@davemloft.net Cc: netdev@vger.kernel.org, herbert@gondor.apana.org.au, Krishna Kumar , dada1@cosmosbay.com Date: Sun, 18 Oct 2009 18:38:04 +0530 Message-Id: <20091018130804.3960.28321.sendpatchset@localhost.localdomain> In-Reply-To: <20091018130727.3960.32107.sendpatchset@localhost.localdomain> References: <20091018130727.3960.32107.sendpatchset@localhost.localdomain> Subject: [PATCH 3/4 v3] 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; } }