Skip to content
Commit 9125abe7 authored by Andrea Mayer's avatar Andrea Mayer Committed by Jakub Kicinski
Browse files

vrf: handle CONFIG_IPV6 not set for vrf_add_mac_header_if_unset()



The vrf_add_mac_header_if_unset() is defined within a conditional
compilation block which depends on the CONFIG_IPV6 macro.
However, the vrf_add_mac_header_if_unset() needs to be called also by IPv4
related code and when the CONFIG_IPV6 is not set, this function is missing.
As a consequence, the build process stops reporting the error:

 ERROR: implicit declaration of function 'vrf_add_mac_header_if_unset'

The problem is solved by *only* moving functions
vrf_add_mac_header_if_unset() and vrf_prepare_mac_header() out of the
conditional block.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 04893908

 ("vrf: add mac header for tunneled packets when sniffer is attached")
Signed-off-by: default avatarAndrea Mayer <andrea.mayer@uniroma2.it>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20201208175210.8906-1-andrea.mayer@uniroma2.it
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent afae3cc2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment