freebsd-skq/sys/arm/ti
mmacy 7aeac9ef18 ifnet: Replace if_addr_lock rwlock with epoch + mutex
Run on LLNW canaries and tested by pho@

gallatin:
Using a 14-core, 28-HTT single socket E5-2697 v3 with a 40GbE MLX5
based ConnectX 4-LX NIC, I see an almost 12% improvement in received
packet rate, and a larger improvement in bytes delivered all the way
to userspace.

When the host receiving 64 streams of netperf -H $DUT -t UDP_STREAM -- -m 1,
I see, using nstat -I mce0 1 before the patch:

InMpps OMpps  InGbs  OGbs err TCP Est %CPU syscalls csw     irq GBfree
4.98   0.00   4.42   0.00 4235592     33   83.80 4720653 2149771   1235 247.32
4.73   0.00   4.20   0.00 4025260     33   82.99 4724900 2139833   1204 247.32
4.72   0.00   4.20   0.00 4035252     33   82.14 4719162 2132023   1264 247.32
4.71   0.00   4.21   0.00 4073206     33   83.68 4744973 2123317   1347 247.32
4.72   0.00   4.21   0.00 4061118     33   80.82 4713615 2188091   1490 247.32
4.72   0.00   4.21   0.00 4051675     33   85.29 4727399 2109011   1205 247.32
4.73   0.00   4.21   0.00 4039056     33   84.65 4724735 2102603   1053 247.32

After the patch

InMpps OMpps  InGbs  OGbs err TCP Est %CPU syscalls csw     irq GBfree
5.43   0.00   4.20   0.00 3313143     33   84.96 5434214 1900162   2656 245.51
5.43   0.00   4.20   0.00 3308527     33   85.24 5439695 1809382   2521 245.51
5.42   0.00   4.19   0.00 3316778     33   87.54 5416028 1805835   2256 245.51
5.42   0.00   4.19   0.00 3317673     33   90.44 5426044 1763056   2332 245.51
5.42   0.00   4.19   0.00 3314839     33   88.11 5435732 1792218   2499 245.52
5.44   0.00   4.19   0.00 3293228     33   91.84 5426301 1668597   2121 245.52

Similarly, netperf reports 230Mb/s before the patch, and 270Mb/s after the patch

Reviewed by:	gallatin
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D15366
2018-05-18 20:13:34 +00:00
..
am335x am335x_prcm: Delay the frequencies read check 2018-05-06 14:37:11 +00:00
cpsw ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
omap4 Make kernel option KERNVIRTADDR optional, remove it from std.<platform> 2017-12-30 00:20:49 +00:00
twl sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
usb arm: Fix duplicate ehci DRIVER_MODULE 2018-04-27 21:05:58 +00:00
aintc.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
files.ti Revert r327250 as it broke the build for some armv6 kernel and all armv4/5 2017-12-28 07:31:14 +00:00
std.ti Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
ti_adc.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
ti_adcreg.h Add evdev support to TI ADC/touchscreen driver 2016-09-11 19:08:21 +00:00
ti_adcvar.h Modularize evdev 2016-10-02 03:20:31 +00:00
ti_cpuid.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_cpuid.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_edma3.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ti_edma3.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_gpio_if.m
ti_gpio.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_gpio.h Start to remove the old pre-INTRNG code from the arm platforms. These have 2016-11-08 12:15:57 +00:00
ti_hwmods.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
ti_hwmods.h Add a routine to return the hardware instance/unit number from ti,hwmods, 2015-08-12 17:23:15 +00:00
ti_i2c.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_i2c.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_machdep.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_mbox.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_mbox.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_pinmux.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
ti_pinmux.h
ti_prcm.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_prcm.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_pruss.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_pruss.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_scm.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_scm.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_sdhci.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_sdma.c sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_sdma.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_sdmareg.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_smc.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
ti_smc.S Fix the order of includes so machine/asm.h is first. 2016-11-07 11:56:18 +00:00
ti_spi.c ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
ti_spireg.h Add the SPI driver for am335x. 2016-03-29 19:11:04 +00:00
ti_spivar.h Add the SPI driver for am335x. 2016-03-29 19:11:04 +00:00
ti_wdt.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_wdt.h
tivar.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00