Commit 4974d5f
net: ip6_gre: initialize erspan_ver just for erspan tunnels
After commit c706863 ("net: ip6_gre: always reports o_key to
userspace"), ip6gre and ip6gretap tunnels started reporting TUNNEL_KEY
output flag even if it is not configured.
ip6gre_fill_info checks erspan_ver value to add TUNNEL_KEY for
erspan tunnels, however in commit 84581bd ("erspan: set
erspan_ver to 1 by default when adding an erspan dev")
erspan_ver is initialized to 1 even for ip6gre or ip6gretap
Fix the issue moving erspan_ver initialization in a dedicated routine
Fixes: c706863 ("net: ip6_gre: always reports o_key to userspace")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent a31687e commit 4974d5f
1 file changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1722 | 1740 | | |
1723 | 1741 | | |
1724 | 1742 | | |
| |||
1767 | 1785 | | |
1768 | 1786 | | |
1769 | 1787 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | 1788 | | |
1785 | 1789 | | |
1786 | 1790 | | |
| |||
2203 | 2207 | | |
2204 | 2208 | | |
2205 | 2209 | | |
| 2210 | + | |
2206 | 2211 | | |
2207 | 2212 | | |
2208 | 2213 | | |
| |||
2248 | 2253 | | |
2249 | 2254 | | |
2250 | 2255 | | |
| 2256 | + | |
2251 | 2257 | | |
2252 | 2258 | | |
2253 | 2259 | | |
| |||
0 commit comments