xen-netfront: Update features after registering netdev
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 21 Jun 2018 13:00:21 +0000 (14:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jun 2018 22:54:54 +0000 (07:54 +0900)
commit45c8184c1bed1ca8a7f02918552063a00b909bf5
tree3f7035bbec6bcef69441ea6f93c4fcaf15c6f38c
parentcb257783c2927b73614b20f915a91ff78aa6f3e8
xen-netfront: Update features after registering netdev

Update the features after calling register_netdev() otherwise the
device features are not set up correctly and it not possible to change
the MTU of the device. After this change, the features reported by
ethtool match the device's features before the commit which introduced
the issue and it is possible to change the device's MTU.

Fixes: f599c64fdf7d ("xen-netfront: Fix race between device setup and open")
Reported-by: Liam Shepherd <liam@dancer.es>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c