mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 23:50:53 +07:00
5c67bf0ec4
Use page_pool and it's DMA mapping capabilities for Rx buffers instead of netdev/napi_alloc_frag() Although this will result in a slight performance penalty on small sized packets (~10%) the use of the API will allow to easily add XDP support. The penalty won't be visible in network testing i.e ipef/netperf etc, it only happens during raw packet drops. Furthermore we intend to add recycling capabilities on the API in the future. Once the recycling is added the performance penalty will go away. The only 'real' penalty is the slightly increased memory usage, since we now allocate a page per packet instead of the amount of bytes we need + skb metadata (difference is roughly 2kb per packet). With a minimum of 4BG of RAM on the only SoC that has this NIC the extra memory usage is negligible (a bit more on 64K pages) Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config NET_VENDOR_SOCIONEXT
|
|
bool "Socionext ethernet drivers"
|
|
default y
|
|
---help---
|
|
Option to select ethernet drivers for Socionext platforms.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the questions about Socionext devices. If you say Y, you will be asked
|
|
for your specific card in the following questions.
|
|
|
|
if NET_VENDOR_SOCIONEXT
|
|
|
|
config SNI_AVE
|
|
tristate "Socionext AVE ethernet support"
|
|
depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
|
|
depends on HAS_IOMEM
|
|
select MFD_SYSCON
|
|
select PHYLIB
|
|
---help---
|
|
Driver for gigabit ethernet MACs, called AVE, in the
|
|
Socionext UniPhier family.
|
|
|
|
config SNI_NETSEC
|
|
tristate "Socionext NETSEC ethernet support"
|
|
depends on (ARCH_SYNQUACER || COMPILE_TEST) && OF
|
|
select PHYLIB
|
|
select PAGE_POOL
|
|
select MII
|
|
---help---
|
|
Enable to add support for the SocioNext NetSec Gigabit Ethernet
|
|
controller + PHY, as found on the Synquacer SC2A11 SoC
|
|
|
|
To compile this driver as a module, choose M here: the module will be
|
|
called netsec. If unsure, say N.
|
|
|
|
endif #NET_VENDOR_SOCIONEXT
|