aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2017-06-02 07:03:31 +0000
committerColin Percival <cperciva@FreeBSD.org>2017-06-02 07:03:31 +0000
commitc74415ed3b84cad5e0f42dc6c7a4c64026fa8cfd (patch)
treea42f30b1c2e8c46630c06b3d1ba51ebaf163ef7b /sys/dev/xen
parent60b67035f2bb1e013dbefc824f08a302f8a07085 (diff)
Notes
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/netfront/netfront.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index ace76808769d..694338b2e528 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -1767,6 +1767,9 @@ xn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
#endif
break;
case SIOCSIFMTU:
+ if (ifp->if_mtu == ifr->ifr_mtu)
+ break;
+
ifp->if_mtu = ifr->ifr_mtu;
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
xn_ifinit(sc);