From mboxrd@z Thu Jan 1 00:00:00 1970 From: Venkat Venkatsubra Subject: RE: Performance problem with bond interface Date: Tue, 22 Apr 2014 10:04:25 -0700 (PDT) Message-ID: References: <5e9e32bb-b60e-44d1-82be-28c4d6ec82d5@default> <1398095238.19600.36.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: netdev@vger.kernel.org, davem@davemloft.net, Rama Nichanamatlu , Sergey Linetskiy , Vadim Makhervaks , Guangyu Sun To: Eric Dumazet , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:26474 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932737AbaDVREf convert rfc822-to-8bit (ORCPT ); Tue, 22 Apr 2014 13:04:35 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: What is the purpose of initializing "features" with NETIF_F_HW_CSUM in bond_setup() ? [drivers/net/bonding/bond_main.c] bond-setup(): bond_dev->hw_features &= ~(NETIF_F_ALL_CSUM & ~NETIF_F_HW_CSUM); bond_dev->features |= bond_dev->hw_features; If netdev_increment_features() adds features in incremental fashion then shouldn't bond let the features such as NETIF_F_HW_CSUM be added when netdev_increment_features() is called for each slave in bond_compute_features() if the slave supports it ? Thanks. Venkat