netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] bonding: ensure that the TSO being set on bond master
@ 2014-01-08  7:28 Ding Tianhong
  2014-01-13 19:15 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Ding Tianhong @ 2014-01-08  7:28 UTC (permalink / raw)
  To: Jay Vosburgh, Veaceslav Falico, Eric Dumazet, David S. Miller,
	Netdev

The commit b0ce3508(bonding: allow TSO being set on bonding master)
has make the TSO being set for bond dev, but in some situation, if
the slave did not have the NETIF_F_SG features, the bond master will
miss the TSO features in netdev_fix_features because the TSO is
depended on SG. So I have to add SG and TSO features on bond master
together.

The function netdev_add_tso_features() was only be used for bonding,
so no need to export it in netdevice.h, remove it and add it to bonding.

Ding Tianhong (2):
  bonding: ensure that the TSO being set on bond master
  net: remove the unused function netdev_add_tso_features()

 drivers/net/bonding/bond_main.c | 16 +++++++++++++++-
 include/linux/netdevice.h       | 10 ----------
 2 files changed, 15 insertions(+), 11 deletions(-)

-- 
1.8.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net 0/2] bonding: ensure that the TSO being set on bond master
  2014-01-08  7:28 [PATCH net 0/2] bonding: ensure that the TSO being set on bond master Ding Tianhong
@ 2014-01-13 19:15 ` David Miller
  2014-01-14  2:06   ` Ding Tianhong
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2014-01-13 19:15 UTC (permalink / raw)
  To: dingtianhong; +Cc: fubar, vfalico, edumazet, netdev

From: Ding Tianhong <dingtianhong@huawei.com>
Date: Wed, 8 Jan 2014 15:28:21 +0800

> The commit b0ce3508(bonding: allow TSO being set on bonding master)
> has make the TSO being set for bond dev, but in some situation, if
> the slave did not have the NETIF_F_SG features, the bond master will
> miss the TSO features in netdev_fix_features because the TSO is
> depended on SG. So I have to add SG and TSO features on bond master
> together.
> 
> The function netdev_add_tso_features() was only be used for bonding,
> so no need to export it in netdevice.h, remove it and add it to bonding.

As far as I can tell from the discussion, there is some issue wrt. TSO
about what happens if SG is not supported by some of the slaves.

>From my perspective it appears that some changes to these patches are
necessary to handle that correctly.

So I am going to mark them as "Changes Requested" in patchwork.

If this is not the case, please resubmit these changes with appropriate
explanations added to the commit message(s).

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net 0/2] bonding: ensure that the TSO being set on bond master
  2014-01-13 19:15 ` David Miller
@ 2014-01-14  2:06   ` Ding Tianhong
  0 siblings, 0 replies; 3+ messages in thread
From: Ding Tianhong @ 2014-01-14  2:06 UTC (permalink / raw)
  To: David Miller; +Cc: fubar, vfalico, edumazet, netdev

On 2014/1/14 3:15, David Miller wrote:
> From: Ding Tianhong <dingtianhong@huawei.com>
> Date: Wed, 8 Jan 2014 15:28:21 +0800
> 
>> The commit b0ce3508(bonding: allow TSO being set on bonding master)
>> has make the TSO being set for bond dev, but in some situation, if
>> the slave did not have the NETIF_F_SG features, the bond master will
>> miss the TSO features in netdev_fix_features because the TSO is
>> depended on SG. So I have to add SG and TSO features on bond master
>> together.
>>
>> The function netdev_add_tso_features() was only be used for bonding,
>> so no need to export it in netdevice.h, remove it and add it to bonding.
> 
> As far as I can tell from the discussion, there is some issue wrt. TSO
> about what happens if SG is not supported by some of the slaves.
> 
>>From my perspective it appears that some changes to these patches are
> necessary to handle that correctly.
> 
> So I am going to mark them as "Changes Requested" in patchwork.
> 
> If this is not the case, please resubmit these changes with appropriate
> explanations added to the commit message(s).
> 
> Thanks.
> 
> 

Ok, thanks.

Regards
Ding

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-14  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08  7:28 [PATCH net 0/2] bonding: ensure that the TSO being set on bond master Ding Tianhong
2014-01-13 19:15 ` David Miller
2014-01-14  2:06   ` Ding Tianhong

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).