diff options
author | Flavio Leitner <fbl@sysclose.org> | 2020-02-14 10:03:36 -0300 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2020-02-26 15:24:15 +0100 |
commit | 35b5586ba7ab2d7f53decb978df6bfea4600f6d4 (patch) | |
tree | 20405cf429d942ad6338477e47266091bf674f64 /lib/netdev-provider.h | |
parent | 8c5163fe81ea05313eaefcd61cf036dd3fd2ae07 (diff) | |
download | openvswitch-35b5586ba7ab2d7f53decb978df6bfea4600f6d4.tar.gz |
userspace TSO: SCTP checksum offload optional.
Ideally SCTP checksum offload needs be advertised by the
NIC when userspace TSO is enabled. However, very few drivers
do that and it's not a widely used protocol. So, this patch
enables SCTP checksum offload if available, otherwise userspace
TSO can still be enabled but SCTP packets will be dropped on
NICs without support.
Fixes: 29cf9c1b3b9c ("userspace: Add TCP Segmentation Offload support")
Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r-- | lib/netdev-provider.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 00677dc9d..6f509424b 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -41,7 +41,8 @@ enum netdev_ol_flags { NETDEV_TX_OFFLOAD_IPV4_CKSUM = 1 << 0, NETDEV_TX_OFFLOAD_TCP_CKSUM = 1 << 1, NETDEV_TX_OFFLOAD_UDP_CKSUM = 1 << 2, - NETDEV_TX_OFFLOAD_TCP_TSO = 1 << 3, + NETDEV_TX_OFFLOAD_SCTP_CKSUM = 1 << 3, + NETDEV_TX_OFFLOAD_TCP_TSO = 1 << 4, }; /* A network device (e.g. an Ethernet device). |