From: Dan Smith Subject: [PATCH 2/7] Add checkpoint and collect hooks to net_device_ops Date: Thu, 18 Mar 2010 13:51:47 -0700 Message-ID: <1268945512-18814-3-git-send-email-danms@us.ibm.com> References: <1268945512-18814-1-git-send-email-danms@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1268945512-18814-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org Cc: davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org List-Id: containers.vger.kernel.org These will be implemented per-driver by those that support such operations. Signed-off-by: Dan Smith Acked-by: David S. Miller --- include/linux/netdevice.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a3fccc8..415a791 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -673,6 +673,12 @@ struct net_device_ops { int (*ndo_fcoe_get_wwn)(struct net_device *dev, u64 *wwn, int type); #endif +#ifdef CONFIG_CHECKPOINT + int (*ndo_collect)(struct ckpt_ctx *ctx, + struct net_device *dev); + int (*ndo_checkpoint)(struct ckpt_ctx *ctx, + struct net_device *dev); +#endif }; /* -- 1.6.2.5