Date: Thu, 22 Oct 2020 17:05:55 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366941 - head/sys/net Message-ID: <202010221705.09MH5tXh024746@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Thu Oct 22 17:05:55 2020 New Revision: 366941 URL: https://svnweb.freebsd.org/changeset/base/366941 Log: if_vxlan(4): csum_flags_to_inner_flags takes the tunnel protocol as a parameter. No functional change. Modified: head/sys/net/if_vxlan.c Modified: head/sys/net/if_vxlan.c ============================================================================== --- head/sys/net/if_vxlan.c Thu Oct 22 16:41:13 2020 (r366940) +++ head/sys/net/if_vxlan.c Thu Oct 22 17:05:55 2020 (r366941) @@ -2423,9 +2423,9 @@ vxlan_encap_header(struct vxlan_softc *sc, struct mbuf * Return the CSUM_INNER_* equivalent of CSUM_* caps. */ static uint32_t -csum_flags_to_inner_flags(uint32_t csum_flags_in, uint32_t encap) +csum_flags_to_inner_flags(uint32_t csum_flags_in, const uint32_t encap) { - uint32_t csum_flags = CSUM_ENCAP_VXLAN; + uint32_t csum_flags = encap; const uint32_t v4 = CSUM_IP | CSUM_IP_UDP | CSUM_IP_TCP; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010221705.09MH5tXh024746>