History

vxlan: Use checksum partial with remote checksum offload

Change remote checksum handling to set checksum partial as default behavior. Added an iflink parameter to configure not using checksum partial (calling csum_partial to update checksum).

Tom Herbert committed 11 years ago

Commit 0ace2ca1 parent 15e23963 files · +23 −7Browse files

Showing the changes to include/net (1 of 3 files). Show all

Unified · Split

include/net/vxlan.h+3−1
@@ -128,13 +128,15 @@ struct vxlan_sock { · 127 unmodified lines
128128 #define VXLAN_F_REMCSUM_TX 0x200
129129 #define VXLAN_F_REMCSUM_RX 0x400
130130 #define VXLAN_F_GBP 0x800
131+#define VXLAN_F_REMCSUM_NOPARTIAL 0x1000
131132
132133 /* Flags that are used in the receive patch. These flags must match in
133134 * order for a socket to be shareable
134135 */
135136 #define VXLAN_F_RCV_FLAGS (VXLAN_F_GBP | \
136137 VXLAN_F_UDP_ZERO_CSUM6_RX | \
137− VXLAN_F_REMCSUM_RX)
138+ VXLAN_F_REMCSUM_RX | \
139+ VXLAN_F_REMCSUM_NOPARTIAL)
138140
139141 struct vxlan_sock *vxlan_sock_add(struct net *net, __be16 port,
140142 vxlan_rcv_t *rcv, void *data,