* [PATCH net-next v2 0/2] bonding: ensure that the TSO being set on bond master
@ 2014-01-14 9:00 Ding Tianhong
2014-01-14 9:47 ` Veaceslav Falico
0 siblings, 1 reply; 3+ messages in thread
From: Ding Tianhong @ 2014-01-14 9:00 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.
v2: If the slave hw did not support SG features, the SG should not
be forced open on master, otherwise error will occur, so modify it.
Some slave may support SG but not open it yet, so the bond master
could try to open it when adding the salve and make sure the TSO
could be open on master.
Ding Tianhong (2):
bonding: move the netdev_add_tso_features() to bonding
bonding: try to enable SG features when adding a new slave
drivers/net/bonding/bond_main.c | 27 ++++++++++++++++++++++++++-
include/linux/netdevice.h | 10 ----------
2 files changed, 26 insertions(+), 11 deletions(-)
--
1.8.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2 0/2] bonding: ensure that the TSO being set on bond master
2014-01-14 9:00 [PATCH net-next v2 0/2] bonding: ensure that the TSO being set on bond master Ding Tianhong
@ 2014-01-14 9:47 ` Veaceslav Falico
2014-01-14 10:38 ` Ding Tianhong
0 siblings, 1 reply; 3+ messages in thread
From: Veaceslav Falico @ 2014-01-14 9:47 UTC (permalink / raw)
To: Ding Tianhong; +Cc: Jay Vosburgh, Eric Dumazet, David S. Miller, Netdev
On Tue, Jan 14, 2014 at 05:00:07PM +0800, Ding Tianhong wrote:
>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.
>
>v2: If the slave hw did not support SG features, the SG should not
> be forced open on master, otherwise error will occur, so modify it.
> Some slave may support SG but not open it yet, so the bond master
> could try to open it when adding the salve and make sure the TSO
> could be open on master.
So you're forcibly enabling SG on a slave? Usually SG is always enabled,
unless there's a very specific reason for that - like a bug in hw/sw/fw,
like performance improvement on specific use-cases etc. etc.
So that's a wrong thing to do - to try to enable it, if it was disabled.
Nacked-by: Veaceslav Falico <vfalico@redhat.com>
>
>Ding Tianhong (2):
> bonding: move the netdev_add_tso_features() to bonding
> bonding: try to enable SG features when adding a new slave
>
> drivers/net/bonding/bond_main.c | 27 ++++++++++++++++++++++++++-
> include/linux/netdevice.h | 10 ----------
> 2 files changed, 26 insertions(+), 11 deletions(-)
>
>--
>1.8.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2 0/2] bonding: ensure that the TSO being set on bond master
2014-01-14 9:47 ` Veaceslav Falico
@ 2014-01-14 10:38 ` Ding Tianhong
0 siblings, 0 replies; 3+ messages in thread
From: Ding Tianhong @ 2014-01-14 10:38 UTC (permalink / raw)
To: Veaceslav Falico; +Cc: Jay Vosburgh, Eric Dumazet, David S. Miller, Netdev
On 2014/1/14 17:47, Veaceslav Falico wrote:
> On Tue, Jan 14, 2014 at 05:00:07PM +0800, Ding Tianhong wrote:
>> 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.
>>
>> v2: If the slave hw did not support SG features, the SG should not
>> be forced open on master, otherwise error will occur, so modify it.
>> Some slave may support SG but not open it yet, so the bond master
>> could try to open it when adding the salve and make sure the TSO
>> could be open on master.
>
> So you're forcibly enabling SG on a slave? Usually SG is always enabled,
> unless there's a very specific reason for that - like a bug in hw/sw/fw,
> like performance improvement on specific use-cases etc. etc.
>
> So that's a wrong thing to do - to try to enable it, if it was disabled.
>
I don't think it is a wrong thing, just a slight changes of use, but your word
is reasonable, I will miss it.
> Nacked-by: Veaceslav Falico <vfalico@redhat.com>
>
>>
>> Ding Tianhong (2):
>> bonding: move the netdev_add_tso_features() to bonding
>> bonding: try to enable SG features when adding a new slave
>>
>> drivers/net/bonding/bond_main.c | 27 ++++++++++++++++++++++++++-
>> include/linux/netdevice.h | 10 ----------
>> 2 files changed, 26 insertions(+), 11 deletions(-)
>>
>> --
>> 1.8.0
>>
>>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-14 10:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 9:00 [PATCH net-next v2 0/2] bonding: ensure that the TSO being set on bond master Ding Tianhong
2014-01-14 9:47 ` Veaceslav Falico
2014-01-14 10:38 ` 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).