From: David Ahern <dsah...@kernel.org> Date: Tue, 23 Apr 2019 08:23:41 -0700
> From: David Ahern <dsah...@gmail.com> > > Currently, lwtunnel_fill_encap hardcodes the encap and encap type > attributes as RTA_ENCAP and RTA_ENCAP_TYPE, respectively. The nexthop > objects want to re-use this code but the encap attributes passed to > userspace as NHA_ENCAP and NHA_ENCAP_TYPE. Since that is the only > difference, change lwtunnel_fill_encap to take the attribute type as > an input. > > Signed-off-by: David Ahern <dsah...@gmail.com> Looks great, applied.