diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-09-17 17:11:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-18 08:32:15 +0300 |
commit | 9dc2ad1008c9f91f55ec6c89ec0f8639dfc91596 (patch) | |
tree | e487f939350690a11d37b015efc9118a15cc9413 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |
parent | c38f6ac74c99801360705d97244ff222ae18dc97 (diff) | |
download | linux-9dc2ad1008c9f91f55ec6c89ec0f8639dfc91596.tar.xz |
vxlan: set needed headroom correctly
vxlan_setup is called when allocating the net_device, i.e. way before
vxlan_newlink (or vxlan_dev_configure) is called. This means
vxlan->default_dst is actually unset in vxlan_setup and the condition that
sets needed_headroom always takes the else branch.
Set the needed_headrom at the point when we have the information about
the address family available.
Fixes: e4c7ed415387c ("vxlan: add ipv6 support")
Fixes: 2853af6a2ea1a ("vxlan: use dev->needed_headroom instead of dev->hard_header_len")
CC: Cong Wang <cwang@twopensource.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c')
0 files changed, 0 insertions, 0 deletions