if (keyAttrs[OVS_KEY_ATTR_TUNNEL]) {
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]) {
- destKey->tunKey.tunnelId = NlAttrGetU64
- (tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]);
+ destKey->tunKey.tunnelId =
+ NlAttrGetU64(tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]);
destKey->tunKey.flags |= OVS_TNL_F_KEY;
}
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]) {
- destKey->tunKey.dst = NlAttrGetU32
- (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]);
+ destKey->tunKey.dst =
+ NlAttrGetU32(tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]);
}
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]) {
- destKey->tunKey.src = NlAttrGetU32
- (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]);
+ destKey->tunKey.src =
+ NlAttrGetU32(tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]);
}
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT]) {
}
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]) {
- destKey->tunKey.tos = NlAttrGetU8
- (tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]);
+ destKey->tunKey.tos =
+ NlAttrGetU8(tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]);
}
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]) {
- destKey->tunKey.ttl = NlAttrGetU8
- (tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]);
+ destKey->tunKey.ttl =
+ NlAttrGetU8(tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]);
}
destKey->tunKey.pad = 0;
ULONG mss = 0;
NDIS_TCP_IP_CHECKSUM_NET_BUFFER_LIST_INFO csumInfo;
- /*
- * XXX: the assumption currently is that the NBL is owned by OVS, and
- * headroom has already been allocated as part of allocating the NBL and
- * MDL.
- */
curNb = NET_BUFFER_LIST_FIRST_NB(curNbl);
packetLength = NET_BUFFER_DATA_LENGTH(curNb);