]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ba6c76d4753418d594183fac0156b0f027e85a3
tree3f7035bbec6bcef69441ea6f93c4fcaf15c6f38c
parentbb5178049cdb3a7c10d73abcecb28291df38b122
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: bac3a8667e7b ("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