Skip to content

Commit 1a8b6d7

Browse files
Mao Wenandavem330
authored andcommitted
net:add one common config ARCH_WANT_RELAX_ORDER to support relax ordering
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 <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1e48aac commit 1a8b6d7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

arch/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,4 +781,7 @@ config VMAP_STACK
781781
the stack to map directly to the KASAN shadow map using a formula
782782
that is incorrect if the stack is in vmalloc space.
783783

784+
config ARCH_WANT_RELAX_ORDER
785+
bool
786+
784787
source "kernel/gcov/Kconfig"

arch/sparc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ config SPARC
4444
select CPU_NO_EFFICIENT_FFS
4545
select HAVE_ARCH_HARDENED_USERCOPY
4646
select PROVE_LOCKING_SMALL if PROVE_LOCKING
47+
select ARCH_WANT_RELAX_ORDER
4748

4849
config SPARC32
4950
def_bool !64BIT

drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw)
350350
}
351351
IXGBE_WRITE_FLUSH(hw);
352352

353-
#ifndef CONFIG_SPARC
353+
#ifndef CONFIG_ARCH_WANT_RELAX_ORDER
354354
/* Disable relaxed ordering */
355355
for (i = 0; i < hw->mac.max_tx_queues; i++) {
356356
u32 regval;

0 commit comments

Comments
 (0)