* [PATCH net-next] net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering.
@ 2017-01-06 9:52 Mao Wenan
2017-01-06 15:41 ` Alexander Duyck
0 siblings, 1 reply; 3+ messages in thread
From: Mao Wenan @ 2017-01-06 9:52 UTC (permalink / raw)
To: netdev, jeffrey.t.kirsher, alexander.duyck
Relax ordering(RO) is one feature of 82599 NIC, to enable this feature can
enhance the performance for some cpu architecure, such as SPARC and so on.
Currently it only supports one special cpu architecture(SPARC) in 82599
driver to enable RO feature, this is not very common for other cpu architecture
which really needs RO feature.
This patch add one common config CONFIG_ARCH_WANT_RELAX_ORDER to set RO feature,
and should define CONFIG_ARCH_WANT_RELAX_ORDER in sparc Kconfig firstly.
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
arch/sparc/Kconfig | 1 +
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index cf4034c..68ac5c7 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -44,6 +44,7 @@ config SPARC
select CPU_NO_EFFICIENT_FFS
select HAVE_ARCH_HARDENED_USERCOPY
select PROVE_LOCKING_SMALL if PROVE_LOCKING
+ select ARCH_WANT_RELAX_ORDER
config SPARC32
def_bool !64BIT
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index 094e1d6..c38d50c 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -350,7 +350,7 @@ s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw)
}
IXGBE_WRITE_FLUSH(hw);
-#ifndef CONFIG_SPARC
+#ifndef CONFIG_ARCH_WANT_RELAX_ORDER
/* Disable relaxed ordering */
for (i = 0; i < hw->mac.max_tx_queues; i++) {
u32 regval;
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering.
2017-01-06 9:52 [PATCH net-next] net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering Mao Wenan
@ 2017-01-06 15:41 ` Alexander Duyck
2017-01-09 5:33 ` maowenan
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Duyck @ 2017-01-06 15:41 UTC (permalink / raw)
To: Mao Wenan; +Cc: Netdev, Jeff Kirsher
On Fri, Jan 6, 2017 at 1:52 AM, Mao Wenan <maowenan@huawei.com> wrote:
> Relax ordering(RO) is one feature of 82599 NIC, to enable this feature can
> enhance the performance for some cpu architecure, such as SPARC and so on.
> Currently it only supports one special cpu architecture(SPARC) in 82599
> driver to enable RO feature, this is not very common for other cpu architecture
> which really needs RO feature.
> This patch add one common config CONFIG_ARCH_WANT_RELAX_ORDER to set RO feature,
> and should define CONFIG_ARCH_WANT_RELAX_ORDER in sparc Kconfig firstly.
>
> Signed-off-by: Mao Wenan <maowenan@huawei.com>
> ---
> arch/sparc/Kconfig | 1 +
> drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index cf4034c..68ac5c7 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -44,6 +44,7 @@ config SPARC
> select CPU_NO_EFFICIENT_FFS
> select HAVE_ARCH_HARDENED_USERCOPY
> select PROVE_LOCKING_SMALL if PROVE_LOCKING
> + select ARCH_WANT_RELAX_ORDER
>
> config SPARC32
> def_bool !64BIT
I'm pretty sure this is incomplete. I think you need to add a couple
lines to arch/Kconfig so that the config option itself is listed
somewhere. You might look at using something like HAVE_CMPXCHG_DOUBLE
as an example.
- Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering.
2017-01-06 15:41 ` Alexander Duyck
@ 2017-01-09 5:33 ` maowenan
0 siblings, 0 replies; 3+ messages in thread
From: maowenan @ 2017-01-09 5:33 UTC (permalink / raw)
To: Alexander Duyck; +Cc: Netdev, Jeff Kirsher
On 2017/1/6 23:41, Alexander Duyck wrote:
> On Fri, Jan 6, 2017 at 1:52 AM, Mao Wenan <maowenan@huawei.com> wrote:
>> Relax ordering(RO) is one feature of 82599 NIC, to enable this feature can
>> enhance the performance for some cpu architecure, such as SPARC and so on.
>> Currently it only supports one special cpu architecture(SPARC) in 82599
>> driver to enable RO feature, this is not very common for other cpu architecture
>> which really needs RO feature.
>> This patch add one common config CONFIG_ARCH_WANT_RELAX_ORDER to set RO feature,
>> and should define CONFIG_ARCH_WANT_RELAX_ORDER in sparc Kconfig firstly.
>>
>> Signed-off-by: Mao Wenan <maowenan@huawei.com>
>> ---
>> arch/sparc/Kconfig | 1 +
>> drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +-
>> 2 files changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
>> index cf4034c..68ac5c7 100644
>> --- a/arch/sparc/Kconfig
>> +++ b/arch/sparc/Kconfig
>> @@ -44,6 +44,7 @@ config SPARC
>> select CPU_NO_EFFICIENT_FFS
>> select HAVE_ARCH_HARDENED_USERCOPY
>> select PROVE_LOCKING_SMALL if PROVE_LOCKING
>> + select ARCH_WANT_RELAX_ORDER
>>
>> config SPARC32
>> def_bool !64BIT
>
>
> I'm pretty sure this is incomplete. I think you need to add a couple
> lines to arch/Kconfig so that the config option itself is listed
> somewhere. You might look at using something like HAVE_CMPXCHG_DOUBLE
> as an example.
>
> - Alex
>
>
thank you for comments, i will send v2 patch soon.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-09 5:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06 9:52 [PATCH net-next] net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering Mao Wenan
2017-01-06 15:41 ` Alexander Duyck
2017-01-09 5:33 ` maowenan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox