Bug 285532 - ure driver needs a stop/init when changing the mtu
Summary: ure driver needs a stop/init when changing the mtu
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 13.4-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-19 17:38 UTC by Mike Belanger
Modified: 2025-03-19 17:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Belanger 2025-03-19 17:38:18 UTC
In ure_ioctl, the handling of SIOCSIFMTU should be changed from

		if (if_getmtu(ifp) != ifr->ifr_mtu)
			if_setmtu(ifp, ifr->ifr_mtu);

to 

		if (if_getmtu(ifp) != ifr->ifr_mtu) {
			/* call stop/init as the mtu is written to the HW */
			ure_stop(ue);
			if_setmtu(ifp, ifr->ifr_mtu);
			ure_init(ue);
		}

There are HW registers that need to be updated when the MTU is changed.