View | Details | Raw Unified | Return to bug 277286
Collapse All | Expand All

(-)b/sys/compat/linux/linux.c (-2 / +2 lines)
Lines 253-266 ifname_bsd_to_linux_name(const char *bsdname, char *lxname, size_t len) Link Here
253
	struct ifnet *ifp;
253
	struct ifnet *ifp;
254
	int ret;
254
	int ret;
255
255
256
	CURVNET_ASSERT_SET();
257
256
	ret = 0;
258
	ret = 0;
257
	CURVNET_SET(TD_TO_VNET(curthread));
258
	NET_EPOCH_ENTER(et);
259
	NET_EPOCH_ENTER(et);
259
	ifp = ifunit(bsdname);
260
	ifp = ifunit(bsdname);
260
	if (ifp != NULL)
261
	if (ifp != NULL)
261
		ret = ifname_bsd_to_linux_ifp(ifp, lxname, len);
262
		ret = ifname_bsd_to_linux_ifp(ifp, lxname, len);
262
	NET_EPOCH_EXIT(et);
263
	NET_EPOCH_EXIT(et);
263
	CURVNET_RESTORE();
264
	return (ret);
264
	return (ret);
265
}
265
}
266
266

Return to bug 277286