]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vrf: add CRC32c offload to device features
authorDavide Caratti <dcaratti@redhat.com>
Thu, 24 May 2018 15:49:35 +0000 (17:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 02:55:13 +0000 (22:55 -0400)
commitcb1603948a0b80f27d2525bb7ac0d4bbb3849926
tree310672c31eb9a832f031c10be9067079a3cd6e42
parent29555fa3de865630570b5f53c847b953413daf1a
vrf: add CRC32c offload to device features

SCTP sockets originated in a VRF can improve their performance if CRC32c
computation is delegated to underlying devices: update device features,
setting NETIF_F_SCTP_CRC. Iterating the following command in the topology
proposed with [1],

 # ip vrf exec vrf-h2 netperf -H 192.0.2.1 -t SCTP_STREAM -- -m 10K

the measured throughput in Mbit/s improved from 2395 ± 1% to 2720 ± 1%.

[1] https://www.spinics.net/lists/netdev/msg486007.html

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c