Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 11:14:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353548 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201910151114.x9FBEFF2094037@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Oct 15 11:14:14 2019
New Revision: 353548
URL: https://svnweb.freebsd.org/changeset/base/353548

Log:
  Fix missing epochification of the LinuxKPI after r353292.
  
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/netdevice.h

Modified: head/sys/compat/linuxkpi/common/include/linux/netdevice.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/netdevice.h	Tue Oct 15 11:12:31 2019	(r353547)
+++ head/sys/compat/linuxkpi/common/include/linux/netdevice.h	Tue Oct 15 11:14:14 2019	(r353548)
@@ -2,7 +2,7 @@
  * Copyright (c) 2010 Isilon Systems, Inc.
  * Copyright (c) 2010 iX Systems, Inc.
  * Copyright (c) 2010 Panasas, Inc.
- * Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
+ * Copyright (c) 2013-2019 Mellanox Technologies, Ltd.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -60,11 +60,14 @@
 static inline struct ifnet *
 dev_get_by_index(struct vnet *vnet, int if_index)
 {
+	struct epoch_tracker et;
 	struct ifnet *retval;
 
+	NET_EPOCH_ENTER(et);
 	CURVNET_SET(vnet);
 	retval = ifnet_byindex_ref(if_index);
 	CURVNET_RESTORE();
+	NET_EPOCH_EXIT(et);
 
 	return (retval);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151114.x9FBEFF2094037>