[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170526.153552.136103281054991565.davem@redhat.com>
Date: Fri, 26 May 2017 15:35:52 -0400 (EDT)
From: David Miller <davem@...hat.com>
To: tlfalcon@...ux.vnet.ibm.com
Cc: netdev@...r.kernel.org, nfont@...ux.vnet.ibm.com,
jallen@...ux.vnet.ibm.com
Subject: Re: [PATCH net-next v3] ibmvnic: Enable TSO support
From: Thomas Falcon <tlfalcon@...ux.vnet.ibm.com>
Date: Fri, 26 May 2017 11:15:46 -0500
> Enable TSO in the ibmvnic driver. Scatter-gather is also enabled,
> though there currently is no support for scatter-gather in
> vNIC-compatible hardware, resulting in forced linearization
> of all fragmented SKB's. Though not ideal, given the throughput
> improvement gained by enabling TSO, it has been decided
> that this is an acceptable tradeoff.
>
> The feature is also enabled by a module parameter.
> This parameter is necessary because TSO can not easily be
> enabled or disabled in firmware without reinitializing the driver.
>
> CC: Nathan Fontenot <nfont@...ux.vnet.ibm.com>
> CC: John Allen <jallen@...ux.vnet.ibm.com>
> Signed-off-by: Thomas Falcon <tlfalcon@...ux.vnet.ibm.com>
> ---
> v3: Remove module parameter, TSO will be set through ethtool
> include ibmvnic_fix_features to manage scatter-gather
> v2: Fix kbuild robot warning from module parameter init
You're only dealing with half of my feedback.
I stated, explicitly, that you're only probably getting a performance
increase with TSO even though it is being software split up before
being sent by the device, because you don't implement xmit_more.
It makes zero sense, to have the networking stack do such an enormous
amount of wasted work putting the TSO segments together just to then
split them apart and linearize the whole packet before transmit.
That should have been a huge red flag for you, and caused you to
inspect further what the true reason is why performance still
increases with all of that happening.
Please look into this further, because I am quite convinced that
you have TX doorbell and VM exit overhead issues at hand, which
would be more properly and suitable dealt with by xmit_more which
is designed _specifically_ to target that apsect of virtual
networking driver performance.
Thanks.
Powered by blists - more mailing lists